Re: Slow search code
Posted: Fri Jul 10, 2009 7:57 am
Soooo much faster... it's actually useful now... and to think my original search function was much more complex than the one i posted up above and this final solution is like a 10th of the code, just from that one line u showed me... also something that's confusing me now is passing the $path variable. I have this input on the page before the search that has this in it <input type="hidden" name="Path" value="\\Odcsrv\share1\ODC\FMS_FMF_IMET"></input>. When i go to the search page the variable $path is created like this $path = $_POST[Path]. When I echo this $path it shows this \\\\Odcsrv\\share1\\ODC\\FMS_FMF_IMET. It basically doubles the backslashes. The only thing i can think of, which would be quite annoying, is to change the value back to forward slashes and then use ereg_replace once the search.php has been pulled up... what do you think.VladSun wrote:Is it faster than your PHP tool?