PDA

View Full Version : Search working in Mozilla but not IE for PC


mwaters
01-15-2006, 07:44 PM
I'm having a problem with my search function in IE on a PC. If you land on the search.php page you are rerouted to the index.php page. This does not happen with Mozilla on PC, nor does it happen on Safari or IE on Mac. The search function works fine for these, but for some reason on IE on a PC the user is sent back to the index.php page, even if you go directly to the page (/search.php) which leads me to believe it's some sort of path issue.

Here's the url:
http://www.greenlightmag.com/search.php

Per instructions in the config.php file, I copied my search.php and clickstats.php files to my root directory. The phpdig directory is as follows:

http://www.greenlightmag.com/phpdig/

Here is how I defined my script path in these files:
$relative_script_path = 'phpdig';

Any help is much appreciated.

Thank you.

-mw

Dave A
01-15-2006, 10:50 PM
I would replace the config.php file back to it's original format because it should work if left as is.
The relative script path should find itself

if (is_file("$relative_script_path/libs/search_function.php")) {
include "$relative_script_path/libs/search_function.php";
}
else {
die("Cannot find search_function.php file.\n");

So it may be okay to just replace the files back to the original format and let it find the files because it does appear to be sending queries back to the Index.php file.

mwaters
01-16-2006, 08:55 AM
Thanks Dave. I will give that a shot. It's just strange that the search IS working if you use Mozilla (PC) and Safari/IE (Mac).