djfox Posted October 21, 2007 Share Posted October 21, 2007 I`m not sure how familiar you guys are with these online pets. But I`ve seen ones where like, every hour, their food points go down by like two or however amount the site sets (to encourage the pets` owners to feed the pet). Are they using php for that or something else? Link to comment https://forums.phpfreaks.com/topic/74134-solved-is-it-php-or-something-else-i-would-use-for-this-function/ Share on other sites More sharing options...
darkfreaks Posted October 21, 2007 Share Posted October 21, 2007 you can use PHP. use the time function <?php $time= time(); if ($time=time()+3600) { $petfood= $_GET['petfood']-2;} ?> Link to comment https://forums.phpfreaks.com/topic/74134-solved-is-it-php-or-something-else-i-would-use-for-this-function/#findComment-374386 Share on other sites More sharing options...
djfox Posted October 21, 2007 Author Share Posted October 21, 2007 Oh ok, cool. Thanks. Link to comment https://forums.phpfreaks.com/topic/74134-solved-is-it-php-or-something-else-i-would-use-for-this-function/#findComment-374390 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.