Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

strpos() errors??

Status
Not open for further replies.

Elliott3

Programmer
Sep 5, 2002
347
CA
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 = &quot;&&quot;;
$haystack = &quot;Belle & Sebastian&quot;;


if (strstr ($haystack, $needle))
{
echo (&quot;strstr() worked<br>&quot;);
}


if (strpos ($haystack, $needle))
{
echo (&quot;strpos() worked<br>&quot;);
}
?>

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
 
Thanks again...u must think im an idiot! I swear Im not! lol. Thought I checked the directory but didn't. I should really catch some zzzz! Take care..

CES
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top