Store the time in a INT(11) and just store the timestamp IE. "1328819347"
Store the time in a INT(11) and just store the timestamp IE. "1328819347"
sniko.net (Blog posts, thoughts, dabbles.)
Since there's really no such thing as perfect security, when we say that a system is "secure", what we are really saying is that it provides a sufficient level of security for our assets of interest against certain classes of threats - Cryptography Engineering by Niels Ferguson
Right sorry for long reply i just been getting other things fixed and trying to still do it myself with out a cron but i think its the only solution. Anyway there is a in game bullet factory that produces bullets for example every hour.. every hour 2000 bullets will be added to its stock amount.. anyway this all works fine from what i can see .. however when the time is up for the next restock a players needs to go onto the bf.php page in the game for it to update the timers and the stock.. i managed to make a file that if i just type into the domain will make this happen and it is below .... I tryed making it into a cron from the cpanel.. my command was..
/home/thmx10mx/public_html/cron.php
i dont even know if thats right...
I really hope someone can help me with some guidance.. its been on the agenda for nearly 2 weeks.. and is really bugging me.. thanks.
Code was killing my eyes. Had to run it through a beautifier.
Now that I can read it. It looks like this is what is updating everything. So, it seems to me, that all you need to do is have the page called, by a cron handler.
I haven't used or setup a cron using cpanel in years so i forgot which order you have to input things. So get me a print screen of your cron page, and I can help you with that. Or i'm sure someone else will help you if they know.
If you have already set it up and it's not working, then... For the cron url try using "curl path/to/file" instead of just "path/to/file". Also make sure you have the numbers in the right places for the cron setup form, because you could have it set for something like 5 hours or 5 days instead of 5 minutes.
Last edited by bluegman991; 02-19-2012 at 03:03 AM.
[paypal]bluegman991@yahoo.com[/paypal]
Alternatively, store the production setting in the database, and do something along the following;
sniko.net (Blog posts, thoughts, dabbles.)
Since there's really no such thing as perfect security, when we say that a system is "secure", what we are really saying is that it provides a sufficient level of security for our assets of interest against certain classes of threats - Cryptography Engineering by Niels Ferguson
The game is currently online and has been over to a temp host with a new domain in order for some beta testing with users and players that can help.
You dont have to visit but it would be nice for some advice for now.. i am working on a story line.. just getting the game flow.. big improvements coming very very soon, may even be a diff engine..
www.TriggerHappy-Mafia.com
Thanks
Kash
P.S all the testers or players that are playing until the big reset will be given something in return to show the token of appreciation.
e.g. Props, Bullets, Points, Cash if they decide to continue to play...
You're game is vulnerable to MySQL injection, just letting you know..
scroll bars ruins the game...IMO.
Thanks for commenting, but please like i said there big improvements coming along, just need feedback from players.. on input.. or coders input 2. Thanks.
Bookmarks