SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    Non-Member somendra's Avatar
    Join Date
    Dec 2012
    Location
    Noida, India
    Posts
    57
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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.

  2. #2
    Gre aus'm Pott gold trophysilver trophybronze trophy
    Pullo's Avatar
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    5,861
    Mentioned
    206 Post(s)
    Tagged
    12 Thread(s)
    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.

  3. #3
    SitePoint Wizard
    Join Date
    Jul 2003
    Location
    Kent
    Posts
    1,921
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    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.

  4. #4
    SitePoint Enthusiast
    Join Date
    Dec 2007
    Posts
    52
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.
    IT Rush <my blog


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •