Contents of Your Home Directory


I have register a web hosting account from cpwebhosting.net. What will be the Contents of my Home Directory.
Your home directory contains several default subdirectories.
There are a lot of subdirectories.Their number and names will differ depending on your plan, yet some of them are common for all plans.

Here are some of the directories that are automatically created and may not be deleted:

Directories that contain your sites. Each of your sites is put in a separate directory. The name of the directory is the same as your site’s domain name. If you have more than one site, you will have several such directories. These are the directories where you will upload your .html files or any other files that you want to make accessible from the Internet. Each of these directories may contain their own /webalizer or /modlogan directories. Do not delete either of these directories! Your site is too valuable to lose at a touch of a button.

The Logs directory. It contains directories for every site with transfer log enabled. Each such directory contains its own set of log files that are required to write and read the data about all visits to your sites. Deleting the Logs directory will cause the loss of the web statistics accumulated in the course of your site operation.

The Virtual FTP directory. Its name is the dedicated IP address. This directory is created when you enable Virtual FTP Server and can be accessed by virtual FTP users to list and download its content. There are as many such directories as dedicated IP addresses. Deleting Virtual FTP directories will cause incorrect operation of Virtual FTP. However, you may harmlessly delete individual files in these directories.


The subdomain directories
. When you make a subdomain, a new directory is created with the subdomain name as the directory name. If you delete a subdomain directory, internet visitors will get the 404 “File not found” error when attempting to access the subdomain.

The ssl.conf directory. This directory stores SSL pairs for all encrypted sites. Deleting the ssl.conf directory will result in incorrect SSL operation.

Can i delete these default directories?
Don’t delete ANY default directories in your root directory, as this will cause malfunctions of your acount. As a rule of thumb, you may delete only directories and files you have uploaded yourselves or that have been uploaded by any of your Virtual FTP and Anonymous FTP users.

making variables available to more than one page


I have been using the post method, but that only works for one other page…how do I go about making variables available to more than one page?

U can not do it in ASP.NET but If you’re using ASP 3.0 there is way to do this is to use session variables, which is not too effective in my opinion.

for session variables – use the request.form method like this:

session(“your_session_variable”) = request.form(“your_form_variable”)

then whenever you want to reference that session variable throughout the remainder of the session, just call it like any other… for example

response.write session(“your_session_variable”)

source code of an ASP program


I m running ASP programs on my website. Will anybody be able to view the source code of an ASP program on the website?

How can we make it even more secure?

yes everyone can see your source code, If u want to hide it,use javascript and disable source code view

It is not possible to see the ASP code.

U r right Dolbz,it is Not possible to see the ASP code, but if your IIS configuration is incorrect or your hosting provider takes the right to run ASP on your domain then it’s possible

As long as you instruct the server to parse those files (as is by default), the source will never be available to regular visitors.

code to query active directory


Does anyone have any code to query active directory via an ASP classic application. Basically, I want the application to verify that the user is logged into the network, and simply return the username they are using. This is done on a single signon network, so there is no interaction with the end user.

if you were using .NET 2.0 and Visual Studio 2005 you could generate a managed class from the Active Directory WMI provider to easily access the AD schema.

asp code for footer link


Hi all,

I m newbie in ASP.
I just wanted to add my main page link at the footer of every internal page of the site but couldnt understand the asp code and am stuck in it.
kindly help me

you will either have to edit every page, or put This include code at the bottom of every page.

Code:
<!--#include virtual="pagenamehere.asp"-->
Then create the pagenamehere.asp page with the footer content you require.

modify an XML file in ASP.net


Hey,

Is there any way to modify an XML file in ASP.net?

Sure, look at the XmlDocument class (it is very helpful for modifying XML files).

Namely all the .NET Framework XML classes include innovations that offer convenience, better performance, and a more familiar programming model etc. than the older industry standards such as DOM, XPath, XSD, and XSLT.

picture path into the database


how do i upload a picture path into the databae and display it out ??? pls help me. .

when uploading it you are presumably storing them in a predefined folder and therefore simply store the path relative to the root in the db with the file name or alternatively if they are all in a single location then there is only a need to store the filename as the path will be the same in all cases.

so you need to insert into db pictdure path or actually upload a picture via a form ?

Changing Hosting Plan


Hi,
I am a Reseller and Now I want to change some of my hosting plans. How can i do it? I m using H-Sphere control panel.

Your hosting plan determines the services you get with the account and the prices for these services. Big sites with high hit rates and special services require more expensive plans; cheaper plans are suitable for simpler sites.

To change to a different plan:

1. Select Quick Access in the Account menu.
2. Click the Change icon next to your plan name.
3. Select your new plan and click Submit

Can i change billing period of my customers and how?

Yes, u can do

You need your control panel password to log into the control panel. Initially, this password is the same as your FTP password, but you can make these two passwords different.

To change the control panel password:

1. Select Quick Access in the Account menu.
2. Click Change Password in the Quick Access section.

download/read xml files from another website using asp


Is there any way to download/read xml files from another website using asp??

can be done client-side now with the ever-popular AJAX…

Or you can also write a COM obj to scrape another page/download file, etc..

look up the XMLHTTPRequest Object

Changing FTP Password


How can i change my FTP Password ?

You need your FTP password to upload your site to the server. Initially, this password is the same as your Control Panel password, but you can make these two passwords different.

To change the FTP password:

1. Select FTP User in the FTP/User Account menu.
2. Click the Change icon next to Password.