ThePilots81 Posted October 26, 2007 Share Posted October 26, 2007 Hello, I am trying to create a "master" script that will run "other" scripts. The "other" scripts upload information from flat files to the db. I've tried to find information on this by searching Google and other forums, but I'm either not searching very well or there's not much information on this. I have the "other" scripts created, but I'm having a hard time figuring out how to create the "master" script. Any help or info will be appreciated. Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/74893-running-scripts-to-update-db-from-1-parent-script/ Share on other sites More sharing options...
premiso Posted October 26, 2007 Share Posted October 26, 2007 What you seem to be looking for is a cronjob I think. Vague explanation with no example. What have you tried? Do you just want a script with buttons you push that call another script or do you want it automatic? Post more information if you would like more than a vague response. Quote Link to comment https://forums.phpfreaks.com/topic/74893-running-scripts-to-update-db-from-1-parent-script/#findComment-378640 Share on other sites More sharing options...
PHP_PhREEEk Posted October 26, 2007 Share Posted October 26, 2007 Very vague question... A so a vague answer... The master script would use simple If/Then/Else logic to figure out whether to run a child script. If it determines it needs to do so, simply INCLUDE the child script. PhREEEk Quote Link to comment https://forums.phpfreaks.com/topic/74893-running-scripts-to-update-db-from-1-parent-script/#findComment-378642 Share on other sites More sharing options...
ThePilots81 Posted October 26, 2007 Author Share Posted October 26, 2007 What you seem to be looking for is a cronjob I think. Vague explanation with no example. What have you tried? Do you just want a script with buttons you push that call another script or do you want it automatic? Post more information if you would like more than a vague response. I've created a page that lists the "other" scripts that need to be run and what flat files are required for each script. A user can then upload the flat file for one or more scripts, and then select which scripts they want to run by checking the select box. The select box is disabled using conditionals until the correct flat file is uploaded for that particular script. There's a button that they will then click to run those scripts. So the master script will be executed with the click of a button. I guess what I need to know is how to call the other scripts from the master script and run them. Hopefully this is a little less vague. Thanks for your input. Quote Link to comment https://forums.phpfreaks.com/topic/74893-running-scripts-to-update-db-from-1-parent-script/#findComment-378681 Share on other sites More sharing options...
premiso Posted October 26, 2007 Share Posted October 26, 2007 www.php.net/include If x was selected then include('page.php'); That is what you will need, like phreeek said, if/then/else logic and INCLUDE the script. Quote Link to comment https://forums.phpfreaks.com/topic/74893-running-scripts-to-update-db-from-1-parent-script/#findComment-378686 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.