Ask Experts Questions for FREE Help !
Ask
    Jbert's Avatar
    Jbert Posts: 56, Reputation: 1
    Junior Member
     
    #1

    Oct 12, 2006, 02:34 PM
    Path to local host
    A new area for me for sure. Some has made a PHP page for me to lookat. The file was index.txt. He said I had to install the apache server to correctly look at it. I did and it says installed correctly. When I type in http://localhost I get the opening page, but for the life of me I can not get the right path to my file.

    Here is the directory in htdocs for the index file.

    C:\Program Files\xampp\htdocs\index.txt

    I realize I had to put the http://localhost/ first. Would someone please school me here. I am anxious to see the php difference
    And I tried a million thigs to get it right.

    Thanks


    Jim
    asterisk_man's Avatar
    asterisk_man Posts: 476, Reputation: 32
    Full Member
     
    #2

    Nov 7, 2006, 11:00 AM
    First, I don't think the default install of apache comes with php. Are you sure you have php installed?

    Second, php files usually look like index.php, not index.txt. Are you sure you shouldn't rename your file to index.php?

    Third, if you have php installed and you're really sure that index.txt is what you want, try http://localhost/index.txt

    Hope this helps!
    ScottGem's Avatar
    ScottGem Posts: 64,966, Reputation: 6056
    Computer Expert and Renaissance Man
     
    #3

    Nov 7, 2006, 11:56 AM
    Not sure about Apache, but generally a folder on the server is designated as the WEB root. If your page file is in that folder you just need to use http://localhost/index.txt.

    However, if the page is in a subfolder, you add the path after localhost. For example:

    http:\\localhost\xampp\htdocs\index.txt
    Jbert's Avatar
    Jbert Posts: 56, Reputation: 1
    Junior Member
     
    #4

    Nov 7, 2006, 02:16 PM
    Thanks for both replies. Here is the correct path to the apache and the .php page

    http://localhost/jbert

    Jbert being the directory name that holds the .php file.
    asterisk_man's Avatar
    asterisk_man Posts: 476, Reputation: 32
    Full Member
     
    #5

    Nov 13, 2006, 01:34 PM
    http://localhost/jbert/index.txt

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

The network path was not found [ 12 Answers ]

I try to connect my laptop to the desktop at home, after connecting all the required wires, the internet sharing is working, I can using the laptop online. The problem is when I clicked "My network place" I could not see both computers, therefore I cannot shares all the files from both...

Is he leading me up the garden path? [ 13 Answers ]

Help!! I'm hoping you can give me some advice and feedback! Some months ago, I wrote about a guy who broke up with me (see link below) Well, he has reappeared in my life, and I'm a little confused. I'll try to keep this simple. Since the amicable breakup (I was upset, but got on with things), we...

Network path not found ! [ 8 Answers ]

Hello, I've installed a fresh windows 2003 server, and created just one user for testing purpose, and shared one directory on a different partion on the same hard disk. The problem is : I can log in with the user administrator from the workstation "WIN-XP running the latest update...

Network Path Not Found [ 1 Answers ]

I setup ADSL modem+router+firewall from one client computer on win 2003 domain server. Internet sharing is working fine within the network with IP class 192.168.16.x But the problem raise when I want to browse the mapping drive that had been set on the client computer I set the ADSL modem. I got...


View more questions Search