communication
 databases
 directories
 file handling
 html and code
 image editing
 image listing
 sessions and co
 string handling
 information
 forms
 apple stuff
 image handling
 array handling
 lixlpixel
php - snippets
google search terms detected and highlighted.
remove highlighting | keep highlighting
make snippet in "directories" - download "htaccess 2"
 search
php - snippets

Valid CSS!

php webring logo
prev next
random list
join the Ring!

directories - htaccess 2 was created/last modified on Sat 13 Mar 2004 2:53 PM

put this in your PHP file without extension (see htaccess snippet)
to get to your $_GET variables

<?php
   
   
// if your url looks like this:
   // http://yourserver.com/thephpfile/edit/12376
   
   
$expl = explode("/",$HTTP_SERVER_VARS["REQUEST_URI"]);
   
$action = $expl[2];
   
$id = $expl[3];

   
// will output :
   // $action = "edit";
   // $id = "12376";
  
  
?>
    

learn more about some of the PHP functions used in this snippet: explode, file, var

view the GNU general license - view the GNU library license - search on PHPsnippets - see your code like this

 a lixlpixel.com site

PHParadise.com - PHP-classes.org - your site on safari