note 53773 rejected from function.include by mazzanet
| From: | mazzanet@php.net | Date: | Sun, 12 Jun 2005 22:43:56 +0000 |
| Subject: | note 53773 rejected from function.include by mazzanet | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-90332@lists.php.net to get a copy of this message | ||
Note Submitter: chesselrode at gmail dot com
----
We are changing our infrastructure to Windows 2003 with IIS 6, PHP 4.3.11.
While we're testing this, the following code we've implemented in our pages to pull
URL's like http://example.com/?prog_id=foo does
not work.
Can anyone give me some hints?
<?
## MAIN CONTENT CELL ##
if($prog_id) {
if(file_exists("C:/Websites/NEIv2/includes/$prog_id.php")) {
include("C:/Websites/NEIv2/includes/$prog_id.php");
}
elseif($prog_id == "403") {include("C:/Websites/NEIv2/includes/403.php"); }
elseif($prog_id == "404") {include("C:/Websites/NEIv2/includes/404.php"); }
else { include("C:/Websites/NEIv2/includes/404.php"); }
} else { include("C:/Websites/NEIv2/includes/main.php");
}
## END MAIN CONTENT CELL ##
?>