PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > How-to Forum

Reply
 
Thread Tools
Old 07-20-2004, 11:33 PM   #1
vip562
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
vip562 is offline   Reply With Quote
Old 07-21-2004, 01:54 AM   #2
manfred
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.
manfred is offline   Reply With Quote
Old 07-21-2004, 03:05 AM   #3
vip562
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.
vip562 is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

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


All times are GMT -8. The time now is 04:26 AM.


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