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
volka
DevNet Evangelist
Posts: 8391 Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger
Post
by volka » Wed Jul 04, 2007 3:54 pm
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 » Wed Jul 04, 2007 4:05 pm
I still can't open php files so I do know what is going on
volka
DevNet Evangelist
Posts: 8391 Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger
Post
by volka » Wed Jul 04, 2007 4:14 pm
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 » Wed Jul 04, 2007 4:21 pm
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
volka
DevNet Evangelist
Posts: 8391 Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger
Post
by volka » Wed Jul 04, 2007 4:28 pm
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 » Wed Jul 04, 2007 4:33 pm
Yeah I did get the welcome page, then when I click on phpinfo() is a lot of tables with information on.
volka
DevNet Evangelist
Posts: 8391 Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger
Post
by volka » Wed Jul 04, 2007 4:36 pm
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 » Wed Jul 04, 2007 4:38 pm
it has this beside it C:/xampp/htdocs
volka
DevNet Evangelist
Posts: 8391 Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger
Post
by volka » Wed Jul 04, 2007 4:40 pm
Please place a file test_xampp.php in that directory and put
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 » Wed Jul 04, 2007 4:44 pm
how do I do that?
volka
DevNet Evangelist
Posts: 8391 Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger
Post
by volka » Wed Jul 04, 2007 4:46 pm
what
JazzyJust
Forum Commoner
Posts: 29 Joined: Wed Jul 04, 2007 11:00 am
Location: Kent
Post
by JazzyJust » Wed Jul 04, 2007 4:48 pm
The test file, I'm only just started using this because my web guy has not come through for me.
volka
DevNet Evangelist
Posts: 8391 Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger
Post
by volka » Wed Jul 04, 2007 4:49 pm
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 » Wed Jul 04, 2007 4:51 pm
Can I use word or similar? Sorry about all the questions