How to make automatic job for script

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ScOrPi
Forum Commoner
Posts: 44
Joined: Fri Jul 09, 2010 8:01 am
Location: BAGHDAD - IRAQ

How to make automatic job for script

Post by ScOrPi »

Hi all ,

i need to know how can i run my script every 12 hours

like vBSeo Hack in vB scripts .

i know how to corn job from cPanel but i need to make it from script itself ...
User avatar
twinedev
Forum Regular
Posts: 984
Joined: Tue Sep 28, 2010 11:41 am
Location: Columbus, Ohio

Re: How to make automatic job for script

Post by twinedev »

Is it something you can run manually by browsing to it? and if so, does it need any type of login?
ScOrPi
Forum Commoner
Posts: 44
Joined: Fri Jul 09, 2010 8:01 am
Location: BAGHDAD - IRAQ

Re: How to make automatic job for script

Post by ScOrPi »

I need to make last news appear at 12 am , any news would be standby , and i need to make a page in php that would change the Activity in news table from standby to active , but the script itself should do that without and browsing
User avatar
twinedev
Forum Regular
Posts: 984
Joined: Tue Sep 28, 2010 11:41 am
Location: Columbus, Ohio

Re: How to make automatic job for script

Post by twinedev »

Ahh, thought there was already you were doing it manually like by calling a particular URL. For this unfortunately I cannot help, it would require someone that knows more about how VB is set up.

Sorry, hope someone can help ya though :-)

-Greg
ScOrPi
Forum Commoner
Posts: 44
Joined: Fri Jul 09, 2010 8:01 am
Location: BAGHDAD - IRAQ

Re: How to make automatic job for script

Post by ScOrPi »

Thank you :)
ScOrPi
Forum Commoner
Posts: 44
Joined: Fri Jul 09, 2010 8:01 am
Location: BAGHDAD - IRAQ

Re: How to make automatic job for script

Post by ScOrPi »

Any Ideas ?????????
Peter Kelly
Forum Contributor
Posts: 143
Joined: Fri Jan 14, 2011 5:33 pm
Location: England
Contact:

Re: How to make automatic job for script

Post by Peter Kelly »

Well I would look in the database for the table it connects to then just run an update query to update to the chosen status. If you need help I can try guide you in the rite direction just contact me my contact details are at http://www.peter-kelly.com/
Post Reply