Hi. I am trying to learn php and web design in general and i have been trying to install xampp. (apache, php, mysql, etc.). And when ever i run a php file it doesn't get run although html files do. The thing i cant figure out with it is how come the same file works when put in
C:\xampp\htdocs\xampp
but not when run from
C:\xampp\htdocs\gamemakerhelper
All help would be greatly appreciated.
Php only working in some directories while using xampp?
seem that you don't use the right path.
if you installed xampp as you said,check "httpd.conf" file in "c:\xampp\apache\conf" there are 2 options in that file:
(DocumentRoot,Directory), they both must have the value (C:\xampp\htdocs\) so when you type "http://localhost" in addrss bar in your internet browser, it will open the page "index.php" in "c:\xampp\htdocs\axmpp\"
and if you type "http://localhost/game/" you must have "index.php as example" in this path "c:\xampp\htdocs\xampp\game\"
you have touse relative address beginning with "http://localhost/"
Reply:check ur php.ini file on "doc_root", change it to the directory that you want.
flowers for algernon
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment