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?
Slow search code
Moderator: General Moderators
Re: Slow search code
Re: Slow search code
http://bg2.php.net/magic_quotesIt basically doubles the backslashes.
And ...
should be$path = $_POST[Path];
Code: Select all
$path = $_POST['Path'];There are 10 types of people in this world, those who understand binary and those who don't
Re: Slow search code
Still doesn't work...
Re: Slow search code
never mind... used stripslashes() and it works... thanks for all the help.