note 45494 added to function.include
| From: | rspeyer at NOSPAM dot graffiti dot net | Date: | Thu, 09 Sep 2004 04:16:17 +0000 |
| Subject: | note 45494 added to function.include | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-76271@lists.php.net to get a copy of this message | ||
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";
?>
----
Manual Page -- http://www.php.net/manual/en/function.include.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+45494
Delete -- http://master.php.net/manage/user-notes.php?action=delete+45494&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+45494&report=yes
Search -- http://master.php.net/manage/user-notes.php