Page 2 of 2

Posted: Mon Nov 24, 2003 9:44 am
by bironeb
Well i replaced my case.php code with:

Code: Select all

<?php 
if (file_exists("\includes" . $mlink . ".php")) { 
   include("includes" . $mlink . ".php"); 
} 
?>
and i get this error

Parse error: parse error in c:\apache\htdocs\includes\case.php on line 3

Posted: Mon Nov 24, 2003 10:02 am
by Weirdan
You do not escape things properly. Try:

Code: Select all

if (file_exists("includes" . basename($mlink) . ".php")) { 
   include("includes" . basename($mlink) . ".php"); 
}

Posted: Mon Nov 24, 2003 10:11 am
by bironeb
Cool Weirdan, That worked...

what do you mean by:
You do not escape things properly.
Im still a PhP Newbie, but i really appreciate all the help.

Posted: Mon Nov 24, 2003 10:33 am
by Weirdan
read this page

Posted: Mon Nov 24, 2003 10:47 am
by bironeb
Thanks again Wierdan, and all who contributed!