Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2000
    Location
    Lowlands
    Posts
    717
    Hello,

    On some site I see this as a url;
    http://www.domain.com/?op=new

    It's a php3 script working but my question is how this can be parsed by php ?

    I have the script but with the same url I get to see the directory content.

    php4 is installed and working with other

    Thank you

  2. #2
    Join Date
    Feb 2001
    Location
    Coventry, UK
    Posts
    23
    Just add the following line to your .htaccess file:

    << Cut Here >>
    DirectoryIndex somescript.php
    << Stop Cut >>

    Where somescript.php is the script name.

    Rgds.

    Gareth C. Fowler

  3. #3
    Join Date
    Oct 2000
    Posts
    279
    http://www.domain.com/?op=new goes to the default document in that directory and sends it the CGI parameters (op=new). So if the default document in that directory is index.php, then http://www.domain.com/?op=new is the same as http://www.domain.com/index.php?op=new

    Gareth's suggestion allows you to change the default document for the directory in which you place the .htaccess file.

  4. Newsletters

    Subscribe Now & Get The WHT Quick Start Guide!

Posting Permissions

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