not able to run simple php program

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
ramakrishnamurthyr
Forum Newbie
Posts: 6
Joined: Wed Mar 11, 2009 10:06 pm

not able to run simple php program

Post by ramakrishnamurthyr »

hi all

pls help me
i have installed wampserver...then i have create simple program and saved as "test.php" in www folder...

then just typed http://localhost/test.php in address bar but it shows error ....


pls help me



regards

ram
jhack
Forum Newbie
Posts: 10
Joined: Wed Mar 11, 2009 9:46 pm

Re: not able to run simple php program

Post by jhack »

what's the error? if it is 404, make sure you have started all the services
ramakrishnamurthyr
Forum Newbie
Posts: 6
Joined: Wed Mar 11, 2009 10:06 pm

Re: not able to run simple php program

Post by ramakrishnamurthyr »

the error is "page cannot be found"
User avatar
susrisha
Forum Contributor
Posts: 439
Joined: Thu Aug 07, 2008 11:43 pm
Location: Hyderabad India

Re: not able to run simple php program

Post by susrisha »

your server is not yet started
ramakrishnamurthyr
Forum Newbie
Posts: 6
Joined: Wed Mar 11, 2009 10:06 pm

Re: not able to run simple php program

Post by ramakrishnamurthyr »

then how to check that server s running........
User avatar
The_Anomaly
Forum Contributor
Posts: 196
Joined: Fri Aug 08, 2008 4:56 pm
Location: Tirana, Albania

Re: not able to run simple php program

Post by The_Anomaly »

susrisha wrote:your server is not yet started
This is very likely. I don't know about WAMP, but does it operate on a port other than 80? At least when I used to use Coldfusion on windows, I had to use port 8500, so the address would be http://localhost:8500/index.php

Make sure your server is on, go through your configs and make sure that www is your webroot, etc.

And get linux ;)
ramakrishnamurthyr
Forum Newbie
Posts: 6
Joined: Wed Mar 11, 2009 10:06 pm

Re: not able to run simple php program

Post by ramakrishnamurthyr »

hi all,


who r al knows about wampserver pls solve my prob....the error is "page cannot be found"...how to check that server s running.........
User avatar
susrisha
Forum Contributor
Posts: 439
Joined: Thu Aug 07, 2008 11:43 pm
Location: Hyderabad India

Re: not able to run simple php program

Post by susrisha »

since its a wamp server, the wamp controller will be able to tell you. or else task manager.. httpd.exe is the process name for apache.
JeffG
Forum Commoner
Posts: 35
Joined: Wed Jan 30, 2008 1:42 pm
Location: Newbury, UK

Re: not able to run simple php program

Post by JeffG »

Start task manager and click on Services button at the bottom (on Vista - you don't say what OS you are running: if XP may be different). In the Services window, do you see "Apache2.2" (or whatever version you are running) at or near the top of the list? In the Status column, does it say "Started"? If so your server is running.

If the server is running, did you copy test.php to C:\Apache\htdocs (if you installed Apache in C:\Apache)?

If you did that, did you edit httpd.conf correctly?
ramakrishnamurthyr
Forum Newbie
Posts: 6
Joined: Wed Mar 11, 2009 10:06 pm

Re: not able to run simple php program

Post by ramakrishnamurthyr »

actually am new for php i never worked before i don no both apache n wampserver are same....i ll tel you in detail....am using win xp...then i installed wampserver2.0 ....after installin wamp i created one simple php n try to execute it but it shows page cannot be displayed.....


then no process s runnin in the name as httpd.conf in the task manager....the only one which s runnin related to wamp, it seems that too wampmanager.exe...... pls tel me now wat to do
User avatar
php_east
Forum Contributor
Posts: 453
Joined: Sun Feb 22, 2009 1:31 pm
Location: Far Far East.

Re: not able to run simple php program

Post by php_east »

dump the wamp and go for this http://www.easyphp.org/
ramakrishnamurthyr
Forum Newbie
Posts: 6
Joined: Wed Mar 11, 2009 10:06 pm

Re: not able to run simple php program

Post by ramakrishnamurthyr »

hey i reinstalled wampserver and trying to clear registry but it shows admin disabled registry but i logged in admin only...am using win xp
Post Reply