reload / restart

General discussions related to php

Moderators: macek, egami, gesf

Post Reply
New php-forum User
New php-forum User
Posts: 15
Joined: Mon Apr 16, 2012 2:15 am
Location: Netherlands

Re: reload / restart

Post by viper94x » Tue Mar 12, 2013 2:02 am

Could you explain 'running'. PHP scripts only run when a user makes a request, so its not like a windows program that runs all the time.
If you mean disabling, I would create a secure (pass protected) page which lets you disable / enable the script.
Protected page will update a mysql table.
When the ' running' script is prompted it will check for that value in the mysql table, if set to false don't run the code. If set to true, run the code.

If you need help coding, let me know in a PM


php-forum Fan User
php-forum Fan User
Posts: 973
Joined: Mon Oct 01, 2012 12:32 pm

Re: reload / restart

Post by seandisanti » Tue Mar 12, 2013 8:20 am

yeah, assuming you're using ftp to update your script; each time its run, only the newest version will be run. If you're not doing it that way, you definitely should be.

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests