PHP Install Help Required

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

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

Post by volka »

no, file:// is not http://
The apache has to serve the request because php is installed as an apache module, not a module for your webbrowser.
JazzyJust
Forum Commoner
Posts: 29
Joined: Wed Jul 04, 2007 11:00 am
Location: Kent

Post by JazzyJust »

I still can't open php files so I do know what is going on
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

Where did you place the file?
What did you type into your webbrowser?
Which webbrowser do you use?
JazzyJust
Forum Commoner
Posts: 29
Joined: Wed Jul 04, 2007 11:00 am
Location: Kent

Post by JazzyJust »

Where did you place the file? I just installed xampp
What did you type into your webbrowser? just used the link on here
Which webbrowser do you use? Firefox
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

JazzyJust wrote:Where did you place the file? I just installed xampp
And which script did you try to "open" then?
JazzyJust wrote:What did you type into your webbrowser? just used the link on here
:?:

When you type http://localhost/ into your webbrowser's location bar you get xampp's welcome page?
And when you click on phpinfo() on the left side you get the phpinfo page?
JazzyJust
Forum Commoner
Posts: 29
Joined: Wed Jul 04, 2007 11:00 am
Location: Kent

Post by JazzyJust »

Yeah I did get the welcome page, then when I click on phpinfo() is a lot of tables with information on.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

On that page there is an entry for DOCUMENT_ROOT. What value is printed for DOCUMENT_ROOT?
JazzyJust
Forum Commoner
Posts: 29
Joined: Wed Jul 04, 2007 11:00 am
Location: Kent

Post by JazzyJust »

it has this beside it C:/xampp/htdocs
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

Please place a file test_xampp.php in that directory and put

Code: Select all

<?php echo phpversion(); ?>
in it.
Then call http://localhost/test_xampp.php
What happens?
JazzyJust
Forum Commoner
Posts: 29
Joined: Wed Jul 04, 2007 11:00 am
Location: Kent

Post by JazzyJust »

how do I do that?
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

what :?:
JazzyJust
Forum Commoner
Posts: 29
Joined: Wed Jul 04, 2007 11:00 am
Location: Kent

Post by JazzyJust »

The test file, I'm only just started using this because my web guy has not come through for me.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

open a text editor, type the php code, save the file in c:\xampp\htdocs
JazzyJust
Forum Commoner
Posts: 29
Joined: Wed Jul 04, 2007 11:00 am
Location: Kent

Post by JazzyJust »

Can I use word or similar? Sorry about all the questions
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

Don't use word.
start->run->notepad.exe if you must...
better download something like http://notepad-plus.sourceforge.net/uk/site.htm
Post Reply