Results 1 to 2 of 2
Thread: PHP on localhost
Feb 23, 2001, 13:51 #1
I am using PHP, MySQL, Apache on my W98 machine for ease of study.
Question: Why is it that when I move from page to page following actions or links, the command line turns from http://localhost/file.php to http://localhost/php/php.exe/file.php ?
This is a pain in the ****!
Now if I take a link back, or post to a db, the relative url is broken and the browser doesn't know where to look for file.php
Is this a php.ini conf thing? (I didn't set up the conf myself)Viper
Feb 23, 2001, 13:57 #2
- Join Date
- Aug 2000
- San Diego, CA
- 0 Post(s)
- 0 Thread(s)
It is because you are running php in CGI mode so every scripts go through the php interprter, that is why you see the path to the interpreter after clicking on links. It happens when you use $PHP_SELF, Two options
1) put $PHP_SELF = $PATH_INFO; at the top of every script or in one include file.
2) Install PHP as an apache module. See this url for detailed instructions
http://shanx.com/php/install_win32.txtPlease don't PM me with questions.
Use the forums, that is what they are here for.