![]() |
Need a script made quick - should be easy
I prefer it done in PHP but perl would work I suppose, just a redirect script.... contact me on AIM screen name MrPheer for more details
|
g0t msn?
|
How many of you guys are going to ask for this today???
You gotta learn to do a quick search or pick up a basic CGI book. ...Here is perl. Without logging: #!/usr/bin/perl $URL = $ENV{QUERY_STRING}; print "Location: $URL\n\n"; With logging: #!/usr/bin/perl $URL = $ENV{QUERY_STRING}; open (LOG,'>>/usr/local/www/cgi-bin/reflog.txt'); print LOG "$ENV{'REMOTE_ADDR'} $ENV{'REMOTE_HOST'} -> $URL\n"; close (LOG); print "Location: $URL\n\n"; If you've got a wacky client (browser) you may have to send the header. |
Quote:
|
Quote:
$URL = $ENV{QUERY_STRING}; In your webpage call as: http://yourhost.com/cgi-bin/redirect.pl?http://newurl |
nitr01972 on AIM hooked me up... thanks dude!!
|
Quote:
|
Quote:
|
| All times are GMT -7. The time now is 08:13 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123