how to run a php script from perl
Posted on 2008-11-18
I have a perl script that is already set up and running properly through a cron job. I want to add one task to it, and that is to run a php file. This php file does exactly what I want it to if run through a browser. But instead of manually running it, I want it to just execute in line with the perl tasks.
I've added the following first line to the php file:
I've added the following line to the perl script (which is run by cron)
In the above scenario, the perl script runs but does not do the php script. I've also tried the following, but I got a "could not open input file" even though I set the CHMOD to 777:
What do I need to do differently to get that php script to run? (also, please don't suggest to rewrite the script in perl ... way out of my league, and also I don't want to set up a separate cron for this script b/c it needs to stay within the other perl tasks). Thanks!