directories
|htaccess 2
put this in your PHP file without extension (see htaccess snippet)
to get to your $_GET variables
full source of htaccess 2 [ line 1 - 10 ] | download htaccess 2
| 1 | <?php |
| 2 | // if your url looks like this: |
| 3 | // http://yourserver.com/thephpfile/edit/12376 |
| 4 | $expl = explode("/",$HTTP_SERVER_VARS["REQUEST_URI"]); |
| 5 | $action = $expl[2]; |
| 6 | $id = $expl[3]; |
| 7 | // will output : |
| 8 | // $action = "edit"; |
| 9 | // $id = "12376"; |
| 10 | ?> |
| 11 |
9 hits by 5 users in the last 30 minutes.