Posted:
Tue Jul 22, 2003 7:23 am (21 years, 2 months ago)
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
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
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...
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.