PhpDig.net

PhpDig.net (http://www.phpdig.net/forum/index.php)
-   How-to Forum (http://www.phpdig.net/forum/forumdisplay.php?f=33)
-   -   search.php outside of original dir (http://www.phpdig.net/forum/showthread.php?t=1106)

vip562 07-20-2004 11:33 PM

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

manfred 07-21-2004 01:54 AM

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
*****/

vip562 07-21-2004 03:05 AM

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.


All times are GMT -8. The time now is 10:06 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.