I have a PHP script running in the background that's in the cron to perform specific tasks on a daily basis. When it's completed it's daily tasks, I want to be able to start a 2nd PHP script, but not exactly sure how to go about it. This 2nd script will also just be running in the background on the server. One of my options is to just add the code of the 2nd script to the end of the 1st one, but if there's an easy way to just start the 2nd script from the 1st one... any ideas?

Recommended Answers

All 2 Replies

Member Avatar for diafol

Just call it from the end of the first one with an include statement. Add the function call if the code is inside a function.

Simple as that, eh? I thought there might be more to it. Thanks.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.