[SOLVED] URL Question
Posted: Tue May 17, 2005 12:51 pm
Hi,
I have a question about URL's. Right now, I'm wondering if it's possible to add some stuff onto the end of a filename. An example:
I have this code, which includes a file.
I was wondering if it's possible to add some data to the end of it, so that the URL that would appear would be:
The blah=1 is what I want to add via the require function.
The goal for this is that I run a site which includes a specific page into the index. I have a blacklist approach, and I want it so that if someone goes to a URL that calls a page that doesn't exist, I want to load the main page, with the extra data on the end of the URL, so that I can run some error routines.
Thanks for any help
Sphen001
I have a question about URL's. Right now, I'm wondering if it's possible to add some stuff onto the end of a filename. An example:
I have this code, which includes a file.
Code: Select all
<?php
require ('./index.php');
?>Code: Select all
http://www.site.tld/index.php?blah=1The goal for this is that I run a site which includes a specific page into the index. I have a blacklist approach, and I want it so that if someone goes to a URL that calls a page that doesn't exist, I want to load the main page, with the extra data on the end of the URL, so that I can run some error routines.
Thanks for any help
Sphen001