Oprano Front Page


Go Back   Oprano Adult Industry Forums > The Business Of Porn - Closed For Posting > Legacy Archived Main Board

Notices

Legacy Archived Main Board Business chat and general industry chat. All participation is welcome. Dont post your fucking spam here.





Check Out YnotMail

The Original Oprano Flat Board (Thanks To Sarettah!)---
Oprano Swag Shop
"History Of Porn Timeline
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 05-06-2005   #4
DrGuile
french with welsh tendancies
 
DrGuile's Avatar
 
Join Date: Oct 2002
Posts: 2,007
Default

Quote:
Originally posted by sarettah@May 6 2005, 10:19 AM
Thanx

I think though, that it is probably not apache that I need to address, but rather php.

Been thinking about it a bit, in ASP this would be accomplished with a global defined in the global .asa file. My experience says that anything I can do in ASP I can do beeter in PHP So, I am figuring that there is something I can define through the php configuration that might work

I didn't want to go to a db or a file just for speeds sake. This is for the contest landing page script. I already have a test version worked out using a mysql table with just the counter in it.

I think, even though it is not really noticeable, that this is a lot more overhead (all things relative) than is necessary to complete the task.

The entire thing is basically

start
Get hitcount - if in file, open file, read var. If in mysql, open db, select from tbl
hitcount ++ - increment, if file write back, close file. if db, update, close db
if hitcount>5
hitcount=1
endif
case
hitcount=1
redirect to team1 url
hitcount=2
redirect to team2 url
hitcount=3
redirect to team3 url
hitcount=4
redirect to team4 url
hitcount=5
redirect to nicks shave script ( )
endcase
end
I would do it with a db. It would be lighter with a apache module, but it seems like alot of trouble for no reason.

50k hits, even all on the same day, isnt alot to handle for apache/php/mysql
__________________

LiveBucks / Privatefeeds - Giving you money since 1999
Up to 40% Commission!
25% Webmaster Referal
DrGuile is offline   Reply With Quote
 

Bookmarks

Thread Tools
Display Modes

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 On
Forum Jump


All times are GMT -4. The time now is 10:43 PM..


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Copyright Evil Empire Inc. 2006-2022