I can run this simple test script on the server, but am unable to run it from my local machine. I can run other PHP but I am getting an error when using this function...I would assume that it has something to do with the php.ini file...any ideas?
<?
$needle = "&";
$haystack = "Belle & Sebastian";
if (strstr ($haystack, $needle))
{
echo ("strstr() worked<br>"
;
}
if (strpos ($haystack, $needle))
{
echo ("strpos() worked<br>"
;
}
?>
errors:
Warning: Unknown(c:\inetpub\ failed to open stream: No such file or directory in Unknown on line 0
Warning: (null)(): Failed opening 'c:\inetpub\ for inclusion (include_path='.;c:\php4\pear') in Unknown on line 0
CES
<?
$needle = "&";
$haystack = "Belle & Sebastian";
if (strstr ($haystack, $needle))
{
echo ("strstr() worked<br>"
}
if (strpos ($haystack, $needle))
{
echo ("strpos() worked<br>"
}
?>
errors:
Warning: Unknown(c:\inetpub\ failed to open stream: No such file or directory in Unknown on line 0
Warning: (null)(): Failed opening 'c:\inetpub\ for inclusion (include_path='.;c:\php4\pear') in Unknown on line 0
CES