Newbie

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
j9hagop
Forum Newbie
Posts: 3
Joined: Sun Oct 26, 2003 6:35 pm

Newbie

Post by j9hagop »

I can't create any php and view it on my computer. I am going crazy, I installed apache, i installed php, I save my html file with my imbeded php in the file and I place it in the root folder of apache "htdocs"
and I can't get it to work???????????

I call the file phpinfo.php and then in my browser I go too http://127.0.0.1/phpinfo.php

IT CANT FIND IT

Please help!!!!!!!!!!!

Jack Hagopian

j9hagop@yahoo.com
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

do you get a "document not found" or a "server not found" message?
j9hagop
Forum Newbie
Posts: 3
Joined: Sun Oct 26, 2003 6:35 pm

Post by j9hagop »

The page cannot be found
The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.

--------------------------------------------------------------------------------

Please try the following:

If you typed the page address in the Address bar, make sure that it is spelled correctly.

Open the 127.0.0.1 home page, and then look for links to the information you want.
Click the Back button to try another link.
HTTP 404 - File not found
Internet Information Services


--------------------------------------------------------------------------------

Technical Information (for support personnel)

More information:
Microsoft Support



That is what it says on the page!

Can you help??
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

hm, how did you install php?
Can you access files other than php (a simple test.html file at the same location) ?
Nay
Forum Regular
Posts: 951
Joined: Fri Jun 20, 2003 11:03 am
Location: Brisbane, Australia

Post by Nay »

Hit me with a big stick but if it was Apache, then shouldn't it be locahost?

-Nay
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

localhost usually is resolved to 127.0.0.1 ;)
m3rajk
DevNet Resident
Posts: 1191
Joined: Mon Jun 02, 2003 3:37 pm

Post by m3rajk »

nay:

special ips:
10.x.x.x == private network, never go off the network

127.0.0.1 == loopback address

there are someother specials. i belive 192.168 was also set to private addresses
Nay
Forum Regular
Posts: 951
Joined: Fri Jun 20, 2003 11:03 am
Location: Brisbane, Australia

Post by Nay »

Ouch, hey, you hit me :(. You were hiding that big stick behind you! Should have seen that coming *snaps fingers*

Anyhow, getting back. Can you try locahost/test.html. See if Apache or PHP is not working. Then maybe we can find a solution.

-Nay
m3rajk
DevNet Resident
Posts: 1191
Joined: Mon Jun 02, 2003 3:37 pm

Post by m3rajk »

ehh. i just got hte feeling you forgot there's reserved, or forgot which are reserved.
Cruzado_Mainfrm
Forum Contributor
Posts: 346
Joined: Sun Jun 15, 2003 11:22 pm
Location: Miami, FL

Post by Cruzado_Mainfrm »

do you have the apache started (nobody knows...)
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post by JAM »

Cruzado_Mainfrm's post are a qualified guess, and something I first thought of also... It does happen.

Also, check the php.ini/httpd.conf that the document (all paths actually) path actually exists/works and carry the correct syntax. Perhaps some \ are written as / and fubar's it...
j9hagop
Forum Newbie
Posts: 3
Joined: Sun Oct 26, 2003 6:35 pm

Post by j9hagop »

Thank you for everyone that helped me out, I appreciate it.
I don't know what was relly wrong, maybee I needed to reset my computer or something. I came back to check to see if it worked a couple days later and it did, go figure.

Thanks everyone
Post Reply