GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   coders how can i do this... (https://gfy.com/showthread.php?t=385298)

longdongsilver 11-08-2004 10:55 AM

coders how can i do this...
 
hi coders...

been trying to find a script that does this but can't find one.

I want a static link on my webpage that sends the surfer to a different page each day or at a certain timed interval.

I was hoping i could have a simple text file with say 50 urls on it, and then have a cgi script redirect the surfer to these urls i've listed. This will be like 50 updates so no work for 50days.

I've found a cgi script that can send the surfer randomly to these urls i have on the text file but i want one that can do them in order and at timed intervals. It would be better i think if it read the timed intervals from the server not the surfers browser or machine incase they just put the date forward locally.

Is there such a script in php or cgi ?

hope i described it ok.

thanks for any help.

69pornlinks 11-08-2004 11:00 AM

you're looking for free advice or offering payment for a script

longdongsilver 11-08-2004 11:05 AM

i was hoping that someone knew where there was a free script that could do this. But if there is not, then if you know where there is script that does this that has to be purchased then i'd be interested in that also.

thanks for the reply

longdongsilver 11-08-2004 02:08 PM

bump

Dynamix 11-08-2004 02:09 PM

Simple. Gimme two minutes I'll have a PHP script for you.

Dynamix 11-08-2004 02:16 PM

Start numbering around 312 or so, that's the day of the year for today's date. 312 corresponds to Nov 8, 313 Nov 9, 314 Nov 10, etc. etc. until 0 again at Jan 1.

PHP SCRIPT
------------------------

PHP Code:

<?PHP
$lines 
file("urls.php");
$year date("z");
// Loop through our array, find the corresponding URL
foreach ($lines as $line) {
   
$arr split("\|"$line);
   if ((
$arr[0]) hahahaha $year) {
   
header("Location: ".$arr[1]);
   exit;
}
}
?>


SAMPLE URLS.PHP FILE
--------------------------------------
PHP Code:

312|[url]link.com[/url]
313|[url]link.com[/url]
314|[url]link.com[/url]
315|[url]link.com[/url]
316|[url]link.com[/url


Dynamix 11-08-2004 02:18 PM

Blah, can't get the link file to display correctly. Take out the HREF code so it reads:

312|blah link 1
313|blah link 2
314|blah link 3

Dynamix 11-08-2004 02:37 PM

no thanks? :Graucho

longdongsilver 11-09-2004 10:13 AM

hey,

thanks a lot man. I will try see if i can get that going.

Cheers for the help :)


All times are GMT -7. The time now is 08:54 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123