![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Hardcore 4 Life™
Join Date: Mar 2003
Location: Everett, WA
Posts: 2,553
|
PHP pros, need help with something simple..
I have a script I had written for my paysites, it rotates a different html page every day, 5 different pages rotate total.
Here is the code, how would I need to tweek this in order to make it rotate 9 different pages total instead of 5? Thanks in advance! < ? php $day = date("z"); if($day >4) { while($day > 4) { $day = ($day - 4); } } include("0$day.html"); ?> |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
So Fucking Banned
Join Date: Aug 2003
Location: San Diego, CA
Posts: 5,464
|
Uhm.. change all the 4's to 8's
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 | |
Hardcore 4 Life™
Join Date: Mar 2003
Location: Everett, WA
Posts: 2,553
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 | |
Confirmed User
Join Date: Aug 2001
Location: New Orleans
Posts: 1,680
|
Quote:
__________________
<CENTER><A HREF="http://www.hot-off-bourbon.com/" target="_blank"><IMG SRC="http://www.hot-off-bourbon.com/images/hob-logosmall.jpg" border="0"></A> <FONT face="Comic Sans MS" SIZE="-1"><I>Mardi Gras, Spring Break, Wet-T, Night Club Action, UpSkirt, Oil Wrestling, Voyeur</I></FONT></CENTER> |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 | |
Confirmed User
Join Date: Feb 2003
Location: Canby, OR
Posts: 7,453
|
Quote:
jDoG
__________________
NSCash now powering ReelProfits.com ALSO FEATURING: NSCash.com :: SoloDollars.com :: ReelProfits.com :: BiminiBucks.com :: VOD PROGRAMS COMING SOON: Greedy Bucks :: Vengeance Cash NOW OFFERING OVER 60 SITES CONTACT :: JAMES SMITH :: CHIEF TECHNOLOGY OFFICER :: ICQ (711385133) |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 | |
So Fucking Banned
Join Date: Aug 2003
Location: San Diego, CA
Posts: 5,464
|
Quote:
Results from my test: Day: 269, 08.html Day: 270, 09.html Day: 271, 01.html PHP Code:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 | |
Confirmed User
Join Date: Dec 2002
Location: Austin, TX
Posts: 2,115
|
Quote:
<pre> < ? php $NUMPAGES = 9; $day = date("z") % $NUMPAGES; include("0$day.html"); ?> </pre>
__________________
1monkey0cup.com |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 | |
Confirmed User
Industry Role:
Join Date: Dec 2001
Posts: 7,952
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 | |
Confirmed User
Join Date: Aug 2003
Location: Boston
Posts: 1,191
|
Quote:
![]()
__________________
<a href="http://www.pimproll.com/"><img src=http://www.pimproll.com/banners/pimproll_468x60_02-3.gif border=0><br>bling bling</a><br><a href="http://www.exitking.com/?ID=40" target=_blank>$3.00 CPM -- NO SHAVING -- NO CONVERSIONS -- ALL YOUR HITS COUNTED</a><br>sign up under <a href="mailto:[email protected]">me</a> and <a href="mailto:[email protected]">I'll</a> send you 10k hits. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 | |
Hardcore 4 Life™
Join Date: Mar 2003
Location: Everett, WA
Posts: 2,553
|
Quote:
Thanks! |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
Confirmed User
Join Date: Nov 2002
Location: Germany
Posts: 563
|
AdultWebware v3.5 can rotate whatever you want for you.
I.e. make daily updates without spending a minute. I am always available for conversations of any kind here: Email: [email protected] MSN: [email protected] ICQ: 166487010 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 | |
Confirmed User
Industry Role:
Join Date: Mar 2002
Posts: 3,893
|
Quote:
__________________
![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 | |
♥♥♥ Likes Hugs ♥♥♥
Industry Role:
Join Date: Nov 2001
Location: /home
Posts: 15,841
|
Quote:
__________________
I like pie. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |