• Some users have recently had their accounts hijacked. It seems that the now defunct EVGA forums might have compromised your password there and seems many are using the same PW here. We would suggest you UPDATE YOUR PASSWORD and TURN ON 2FA for your account here to further secure it. None of the compromised accounts had 2FA turned on.
    Once you have enabled 2FA, your account will be updated soon to show a badge, letting other members know that you use 2FA to protect your account. This should be beneficial for everyone that uses FSFT.

PHP auto update/post

Krazie

Limp Gawd
Joined
Dec 26, 2002
Messages
128
Hello!

I'm hoping someone can help with this issue I'm having. I have a php script that auto updates every hour, not via a crontab though. The php script does it automatically. I have my own dedicated server where the script does not update on it's own, and I have paid hosting on another server, where it does update. Both installations of the script are identical. The server setups are not. I am wondering if anyone could help me out and let me know which setting needs to be changed to have the script auto run/auto update. I'm not sure if it's a php variable, or apache module, or what. Here is the php_info() from both. I really have no idea on what I am missing but I have been working on this for about four days now and I honestly have a headache from this now.

Server that it DOES NOT auto update on
Server that it DOES auto update on

Any ideas, suggestions, etc are greatly appreciated.
Thanks
 
php doesn't have facilities to do any time based execution ( ala schedules ). There has to be another mechanism acting as a scheduler. If not cron, then maybe at. If not either one of those, then it's "something else" that the functioning web server is doing ( although if they aren't using cron I'm not sure I want to know what they are using ).
 
After looking over the script a little I see this...
Code:
add_action('news_hook_job', 'news_cron_hook');

function news_cron_hook() {
	import_news();
	die();

Any clues?
 
Looking a lot like a cron is handling the scheduling, no?
 
Back
Top