note 45494 deleted from function.include by aidan
| From: | aidan@php.net | Date: | Thu, 09 Sep 2004 08:27:51 +0000 |
| Subject: | note 45494 deleted from function.include by aidan | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-76279@lists.php.net to get a copy of this message | ||
Note Submitter: rspeyer at NOSPAM dot graffiti dot net
----
As it says above, you cannot include a filename with a query string, e.g.
<?php include "index.php?content=news" ?> won't work.
A simple way around this is to set the GET variable first;
<?php
$_GET["content"] = "news";
include "index.php";
?>