Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

Keeping PHP going...


richohealey's Avatar
Python Ninja
0 0

sorry for obscure title

what i want to know is will a PHP script keep wunning, even if i close the browser that started it. or…. does someone know of a free host that will let me use cURL and cron jobs… (because i don't ask for much XD)

it's for my version of an RSS feed, i have code ready and waiting to do it, i just need to know if it will keep running in the background even if i close the browser that started it.

thanks in advance.

-Richo


Mr_Cheese's Avatar
0 1

theres a function you can use that keeps a php script running ocne the user closes the window.

and if you want to know what setting it is on by default, ask your host, some servers vary.


richohealey's Avatar
Python Ninja
0 0

system said to use set_time_out( 0 );

the login for gmail is a lot more complex thasn HBH's! so this will take time.

anyone who wants to contribute is more than welcome! i can give you the python to notify. it will be c++ app to run in the background, but i am very familiar with python and bugger all with c so you can see why i'm doing it this way first.

the idea is that it will use cURL to check my inbox once every half hour, and save the result in a .htaccess protected folder(no ones's reading my emails!) as a .txt file. if it's changed, then it will attempt to connect to my PC. if not, it will lay dormant for another 30 mins.