Problem $str = file_get_contents('$filename'); When the $str search process starts on the '$filename' the file returns empty. I'm trying to search a .xml file. I think there is a leak maybe because it is an .xml file and maybe another type file would work? Maybe if I convert this file to cvs it would work. Does anyone have any idea where I can or how I can convert this file to try it? This may not work i'm just guessing. If you have any knowlege of this problem please let me know.
maybe try fopen instead of file_get_contents() For example $fd = fopen ($filename, "r"); $contents = fread ($fd,filesize ($filename)); fclose ($fd); PHP: Might handle memory better, but I'd be curious to know how big the file is.