Uploading content to my website

Hii friends,

Can I create other folder to upload content to my website? I used to upload to only root level directory. I am thinking plenty of pages in root level directory result in more page load time for my website. :confused:

Hi,

You can upload files to any directory of your website you have access to.

Or, to be more exact, your average file upload script creates a temporary copy of the uploaded file in the PHP temp folder on the server.
From there you can copy it to any location for which you have the appropriate permissions.

If you want to see a few examples, try Google: http://www.google.com/search?q=PHP+uploader+script

P.S. You posted this in the (X)HTML forum. You need to do something like this using a server-side language.

The number of pages in your root will not affect page load time.
It will make it harder for you to find things and to avoid duplicate or very similar file names. If you have a number of separate topics being covered on your site, it is better to create a sub-folder for each topic. The same way it is better to have a folder for all images and another for all javascripts. It’s simply a good idea to organise your files, the same way you have multiple folders on your hard disk to keep things in categories.

Another thing, if you want to make that file private and don’t want search engines to crawl it then you should consider adding a command to your robots.txt file. Just search ‘how to prevent search engines from indexing a folder’. Hope that helps.