![]() |
How to use sessions with scripts called from php_include
Hi
I have a banner rotation script that is called from php_include. It works fine, but I would like the banners rotate only once every user session. How do I do this? Sorry, but I'm a n00b in php. Please help. Thanks |
anyone?
|
Please wait at least 24 hours before bumping posts :)
|
I was told 12 hrs at vBulletin.com
Now, .org has their own rules? Where can I read them bloody rules, so when I get a reply back in my thread, it is actually useful! Thanks |
Here's the simple script (banner.php) I made to rotate banners.
Code:
<?php Code:
ob_start(); Thanks Aurous |
I just came up with an idea, but I have no clue how to implement this.
I can call the script mentioned above by a cron job every couple hrs, and make the output store in my database. Then make another php script that will call the html tags in the database. I dont know if this is a very smart idea. If someone can come up with a better suggestion then please let me know. Thanks Aurous |
anyone?
|
*bump*
|
All times are GMT. The time now is 08:15 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|