Page 2 of 4
Posted: Wed Jul 04, 2007 3:54 pm
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.
Posted: Wed Jul 04, 2007 4:05 pm
by JazzyJust
I still can't open php files so I do know what is going on
Posted: Wed Jul 04, 2007 4:14 pm
by volka
Where did you place the file?
What did you type into your webbrowser?
Which webbrowser do you use?
Posted: Wed Jul 04, 2007 4:21 pm
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
Posted: Wed Jul 04, 2007 4:28 pm
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?
Posted: Wed Jul 04, 2007 4:33 pm
by JazzyJust
Yeah I did get the welcome page, then when I click on phpinfo() is a lot of tables with information on.
Posted: Wed Jul 04, 2007 4:36 pm
by volka
On that page there is an entry for DOCUMENT_ROOT. What value is printed for DOCUMENT_ROOT?
Posted: Wed Jul 04, 2007 4:38 pm
by JazzyJust
it has this beside it C:/xampp/htdocs
Posted: Wed Jul 04, 2007 4:40 pm
by volka
Please place a file test_xampp.php in that directory and put
in it.
Then call
http://localhost/test_xampp.php
What happens?
Posted: Wed Jul 04, 2007 4:44 pm
by JazzyJust
how do I do that?
Posted: Wed Jul 04, 2007 4:46 pm
by volka
what

Posted: Wed Jul 04, 2007 4:48 pm
by JazzyJust
The test file, I'm only just started using this because my web guy has not come through for me.
Posted: Wed Jul 04, 2007 4:49 pm
by volka
open a text editor, type the php code, save the file in c:\xampp\htdocs
Posted: Wed Jul 04, 2007 4:51 pm
by JazzyJust
Can I use word or similar? Sorry about all the questions
Posted: Wed Jul 04, 2007 4:53 pm
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