Greenguy's Board


Go Back   Greenguy's Board > Programming & Scripting
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2008-09-22, 05:49 PM   #1
p3rlphr33k
Operator! Give me the number for 911!
 
p3rlphr33k's Avatar
 
Join Date: Jul 2008
Location: Grand Forks ND
Posts: 138
Link rotating with perl

Im looking for a simple explanation on how to rotate links with perl. Any resources would be helpful. I really dont want to write one from scratch knowing that there are probably 1000 of these scripts out there.|shocking|
Thanks in advance!
__________________
P3rlPhr33k
http://btuz.com
p3rlphr33k is offline   Reply With Quote
Old 2008-09-23, 07:00 AM   #2
Simon
That which does not kill us, will try, try again.
 
Simon's Avatar
 
Join Date: Aug 2003
Location: Conch Republic
Posts: 5,150
Send a message via ICQ to Simon Send a message via AIM to Simon Send a message via Yahoo to Simon
My buddy 'Big G' says you can find some examples here.

__________________
"If you're happy and you know it, think again." -- Guru Pitka
Simon is offline   Reply With Quote
Old 2008-09-23, 03:04 PM   #3
p3rlphr33k
Operator! Give me the number for 911!
 
p3rlphr33k's Avatar
 
Join Date: Jul 2008
Location: Grand Forks ND
Posts: 138
That was the last place i would have looked... j/k
I have been searching around, but I guess I was just looking for a 'professional' opinion on whats good. I will continue my search with your friend, 'Big G'.
Thanks!
__________________
P3rlPhr33k
http://btuz.com
p3rlphr33k is offline   Reply With Quote
Old 2008-09-23, 04:03 PM   #4
Simon
That which does not kill us, will try, try again.
 
Simon's Avatar
 
Join Date: Aug 2003
Location: Conch Republic
Posts: 5,150
Send a message via ICQ to Simon Send a message via AIM to Simon Send a message via Yahoo to Simon
Some may be rotating with php here or maybe using OpenX (phpAdsNew) to handle ad links. Or have something built into their site scripts to rotate different kinds of links. Narrow it down a little on what kinds of links you want to rotate and someone may suggest a specific solution.
__________________
"If you're happy and you know it, think again." -- Guru Pitka
Simon is offline   Reply With Quote
Old 2008-09-23, 04:39 PM   #5
p3rlphr33k
Operator! Give me the number for 911!
 
p3rlphr33k's Avatar
 
Join Date: Jul 2008
Location: Grand Forks ND
Posts: 138
Good point, Im looking for a program that will rotate daily with crontab, the entire link list on a per niche flat file DB, with perl if possible.
__________________
P3rlPhr33k
http://btuz.com
p3rlphr33k is offline   Reply With Quote
Old 2008-09-24, 01:58 AM   #6
justbondage
I want to set the record straight - I thought the cop was a prostitute
 
justbondage's Avatar
 
Join Date: Jun 2008
Posts: 293
Maybe I am over simplifying this but....

Have your crons only function to be to update the niche flat files with a number that appears at the top of them $currentnum or something - this will start at 0 and go to the amount of links you have in the file, once it gets to totalnumberoflinks-1 it should reset to 0.

Then all you need to do is read in that number, read in the links as an array, then output the scalar that lives at array[$currentnum].

This of course is assuming you want each link to get am equal amount of exposure.
__________________
TOF - Post your galleries
JB - Post bondage stuff

ICQ - 424617189
justbondage is offline   Reply With Quote
Reply


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 On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:51 PM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc