note 37581 rejected from function.include by didou

From: Date: Thu, 20 Nov 2003 09:57:16 +0000
Subject: note 37581 rejected from function.include by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-60667@lists.php.net to get a copy of this message
Note Submitter: alien3d@lycos.co.uk ---- It would not work <? include("./css/default.css"); ?> Is this the right code $path = 'include/'; $extension = '.php'; $filename="connection"; if ( preg_match("#^[a-z0-9_]+$#i",$page) ){ $filename = $path.$page.$extension; include($filename); }

« previous php.notes (#60667) next »