note 53773 added to function.include

From: Date: Sun, 12 Jun 2005 22:39:03 +0000
Subject: note 53773 added to function.include
Groups: php.notes 
Request: Send a blank email to php-notes+get-90329@lists.php.net to get a copy of this message
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 ## ?> ---- Manual Page -- http://www.php.net/manual/en/function.include.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+53773 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+53773&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+53773&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+53773&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+53773&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+53773&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+53773&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#90329) next »