You can't make a file like that and here is why:
You would create a file called "file.php". The question mark and everything after it are called URL parameters and they're not a part of the filename. Basically, parameters are one or more sets of variables and their values transmitted through the URL to send information to "file.php". You can see an example of this whenever you do a search on Google. The 'q' parameter stands for 'query' and is set equal to your search. So if you search for 'dogs', the URL will be http://google.com/search?q=dogs. In PHP, you can access URL parameters through the $_GET array. If Google were using PHP, they would set the variable like this:
$query = $_GET['q'];
If you don't want to send your information in the URL, there are other options like the $_POST, $_SESSION, and $_COOKIE arrays or a database. Note that whatever you use, you should always validate whatever information you collect before you execute the code or you will have serious security issues.
Last edited by VirtuosiMedia; 05-07-2010 at 08:41 PM..
|