SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Guru
    Join Date
    Nov 2002
    Location
    Dubai
    Posts
    714
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    local host leading to a default file on pc

    I have wampserver installed on my local pc. But when I want to test my php files using my localhost, I am always led to one of the php files I have created. It is as if I had set it to act as a default file to be opened whenever I connect to localhost. Due to this I am unable to test any of my files on my locahost. Instead, I am now using a subdomain on my host's server to create files for testing.

    Why is this happening? How do I change it so that whenever I connect to local host, I can see all the php files that I have saved locally on my pc instead of one particular file which is acting as a default file?
    My site|My blog
    The real failure is not the one who doesn't get his goals but
    the one who gives up.

  2. #2
    SitePoint Wizard
    Join Date
    Dec 2003
    Location
    USA
    Posts
    2,582
    Mentioned
    29 Post(s)
    Tagged
    0 Thread(s)
    It sounds like you have an index.* or default.* file that is loading when you go to your localhost root (which is the default action).

    To fix this, go where you store your files and delete/rename any files that are named index or default and this should fix the problem.

  3. #3
    SitePoint Guru
    Join Date
    Nov 2002
    Location
    Dubai
    Posts
    714
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks a lot, samanime. I had indeed named the said file as index and that was causing the problem. As soon as I changed the name of the file, I am now able to view all the files in my localhost.
    My site|My blog
    The real failure is not the one who doesn't get his goals but
    the one who gives up.


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
  •