4WebHelp
 FAQ  •  Search  •  User Groups  •  Forum Admins  •  Smilies List  •  Statistics  •  Rules   •  Login   •  Register
Toggle Navigation Menu

 Help with databases choice
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic
Author Message
Juggler
Junior WebHelper
Junior WebHelper


Joined: 21 Jul 2003
Posts: 2

PostPosted: Tue Jul 22, 2003 7:23 am (14 years, 4 months ago) Reply with QuoteBack to Top

Hi I have been using a perl script to run some random links but I would like to use Php I have a script to do it but I need to change it a bit. The problem I have is I would like to be able to use random_url.php?jokes random_urlphp?stories etc where jokes and stories are flatfile databases my problem is how to tell the script to use the databases

I need to change

$RANDOM_URL_FILE = "/home/htdocs/users/mysite/mysite.com/files/database";

what do I need to instead of database so it will know which file to pick in perl I used $ENV{'QUERY_STRING'} but this does not work so what is the php version


Thanks in advance
OfflineView User's ProfileFind all posts by JugglerSend Personal MessageICQ Number
adam
Forum Moderator & Developer



Joined: 26 Jul 2002
Posts: 704
Location: UK

PostPosted: Wed Jul 23, 2003 4:36 pm (14 years, 4 months ago) Reply with QuoteBack to Top

change it so the query string is something like random_url.php?db=stories, then use $random_url_file = '/home/htdocs/users/mysite/mysite.com/'.$_GET['db'];

________________________________
It's turtles all the way down...
OfflineView User's ProfileFind all posts by adamSend Personal MessageVisit Poster's Website
Juggler
Junior WebHelper
Junior WebHelper


Joined: 21 Jul 2003
Posts: 2

PostPosted: Wed Jul 23, 2003 8:08 pm (14 years, 4 months ago) Reply with QuoteBack to Top

Thank You Odhinn That worked Greats. Very Happy
OfflineView User's ProfileFind all posts by JugglerSend Personal MessageICQ Number
Display posts from previous:      
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic


 Jump to:   




You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot edit your posts in this forum.
You cannot delete your posts in this forum.
You cannot vote in polls in this forum.


Page generation time: 0.054837 seconds :: 18 queries executed :: All Times are GMT
Powered by phpBB 2.0 © 2001, 2002 phpBB Group :: Based on an FI Theme