On Tue, 23 Apr 2002, Gilles Detillieux wrote: >According to Ted Stresen-Reuter: >> 1) You can set the argument separator for php in the php.ini file as in the >> following: >> arg_separator.output = ";" >> arg_separator.input = ";" > >If you do this, will PHP still recognize the "&" as a valid argument >separator as well? Ideally, you'd want a way of configuring it to >allow either.
Hi Ted, Gilles, Thanks very much for the feedback. I have tested this and am happy to say that yes it will work for both. In fact, I also tried this: arg_separator.output = ",&;" arg_separator.input = ",&;" and this URL: http://server/page.php?foo=hey,foobar=there worked as expected. So, rather than the hack I did to htsearch, all I need to do is change the config line in my php.ini file (well, I did another hack as well, but I didn't need to change the ';'). :-) So, now my search engine can fetch restrict values from Postgres that is aware of multiple sites that span across different servers, and I've hacked htsearch so that it doesn't put the restrict in the page URL (because it is generated by PHP/Postgres). I then simply have this code: if($words){ $words = urlencode($words); $config = preg_replace ("/[^a-z]/","",$config); $method = preg_replace ("/[^a-z]/","",$method); $sort = preg_replace ("/[^a-z]/","",$sort); $matchesperpage = preg_replace ("/[^0-9]/","",$matchesperpage); $SearchArea = preg_replace ("/[^0-9]/","",$SearchArea); $page = preg_replace ("/[^0-9]/","",$page); print"<!--\n"; // this is to remove the content-type generated for // CGI compliance, also needed in // the php.conf file is the end of the comment // because I'm using passhthru rather than exec // (faster and no parsing arrays) passthru("/path_to/cgi-bin/htsearch_php -c /path_to/htdig/conf/php.conf 'restrict=${restrict};config=${config};etc...'"; } Thanks again for all the feedback! Cheers, Chris -- Christopher Murtagh Webmaster / Sysadmin Web Communications Group McGill University Montreal, Quebec Canada Tel.: (514) 398-3122 Fax: (514) 398-2017 _______________________________________________ htdig-general mailing list <[EMAIL PROTECTED]> To unsubscribe, send a message to <[EMAIL PROTECTED]> with a subject of unsubscribe FAQ: http://htdig.sourceforge.net/FAQ.html

