|
07-20-2004, 11:33 PM | #1 |
Green Mole
Join Date: Jul 2004
Posts: 3
|
search.php outside of original dir
hello,
this may be a stupid question so bear with me. I have the php dig in a third level dir... i want to run the search.php from the root dir (the first level dir). If possible, can someone please guide me on this. ---some more info that will help----- root/second/phpdig i want to run search.php (or what ever search page is) in the root dir instead of within the phpdig dir. I tried to play with the relative location var--but i get a blank page thanks |
07-21-2004, 01:54 AM | #2 |
Orange Mole
Join Date: Nov 2003
Posts: 42
|
Welcome to this community.
This was taken directly from config file so the anwer was already there: /***** Example * PhpDig installed at: http://www.domain.com/phpdig/ * Want search page at: http://www.domain.com/search.php * Copy http://www.domain.com/phpdig/search.php to http://www.domain.com/search.php * Copy http://www.domain.com/phpdig/clickstats.php to http://www.domain.com/clickstats.php * Set $relative_script_path = './phpdig'; in search.php, clickstats.php, and function_phpdig_form.php * Add ($relative_script_path != "./phpdig") && to if statement *****/ Last edited by manfred; 07-21-2004 at 02:06 AM. |
07-21-2004, 03:05 AM | #3 |
Green Mole
Join Date: Jul 2004
Posts: 3
|
thanks, i did not see that.
I did manage to fix it before your reply...i found this link very helpful: http://www.phpdig.net/showthread.php?s=&threadid=1079 it's not as concise as per what is mentioned in the config file though. by the way, that was quick! wasn't expecting a reply for a day or two. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Help including search.php | dhoyos | Troubleshooting | 2 | 02-02-2007 12:53 PM |
Search all indexed pages in search.php | nightrat | How-to Forum | 1 | 09-14-2004 03:52 AM |
include search.php | OceanSurf | How-to Forum | 1 | 09-08-2004 09:58 AM |
content Search using PHP | bhagyashree_d | How-to Forum | 0 | 05-18-2004 04:57 AM |
Yahoo dir | marb | How-to Forum | 2 | 03-09-2004 10:07 AM |