Re: URL Includes in PHP4.3.3
| From: | Gabor Hojtsy | Date: | Sun, 12 Oct 2003 13:20:23 +0000 |
| Subject: | Re: URL Includes in PHP4.3.3 | ||
| References: | 1 | Groups: | php.mirrors |
| Request: | Send a blank email to php-mirrors+get-21484@lists.php.net to get a copy of this message | ||
PHP 4.1.0 introduced the new input mechanism, and 4.2.0 disabled the old one, so you should try to be familiar with the new method. See http://php.net/release_4_1_0 and http://php.net/globals
Goba
I previously had PHP version 4.1.0 and including files from URL's worked, ie. The URL "http://www.mydomain.com/index.php?page=about.php" would include "about.php" in "index.php". But after upgrading to PHP4.3.3 this does not appear to work, I am using this code: <? if(!$page) { if(file_exists($page)) {include($page);} else {include("home.php");} } ?> I am very confused as to why the URL does not transfer to the PHP variable. I have even tried echo($page); but this still brings the same error: Notice: Undefined variable: page in i:\www\index.php on line 149 Please help me.. Steven Wilford