SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member SiteViper's Avatar
    Join Date
    Feb 2001
    Location
    USA
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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)

  2. #2
    Dumb PHP codin' cat
    Join Date
    Aug 2000
    Location
    San Diego, CA
    Posts
    5,460
    Mentioned
    0 Post(s)
    Tagged
    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.txt
    Please don't PM me with questions.
    Use the forums, that is what they are here for.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •