Jump to content

Archived

This topic is now archived and is closed to further replies.

JP128

Ereg() with files?

Recommended Posts

How can I search a file to see if it has a string? I know I need to use ereg($string, $filecontents); but every time I try to search it, it returns false. If someone can help me that would be great.

Share this post


Link to post
Share on other sites
Could you post up your code?

Just to point out though, before seeing your code, you are dumping the contents of the file into a variable, and then using that as the haystack in your ereg() right?

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.