Running a cron job through PHP/Apache?!


Posted on 16th Feb 2014 07:03 pm by admin

Hello all,
I have a PHP script which makes a cron file from user input. When i try to run the cron job via system() the job doesn't run, I suspect it has something to do with permissions. Any ideas on how I would go about getting this to work?

Here is the system() call:
Code: echo $scriptOutput = system('crontab ' . $cronFile, $retval);
Thank you in advance for your help

No comments posted yet

Your Answer:

Login to answer
126 Like 22 Dislike
Previous forums Next forums
Other forums

unexpected T_SL without a shift left token
Nothing too see here, I'm an idiot and resolved the problem.

Multi image upload
I have a gallery to build and want to build a dynamic upload form to allow for $var number of fields

quick question about System Change Number(SCN) in FlashBack Query topic
i know tht we can get the SCN of the database using flashback concept as follows

SQL>

split string
Hi all

i have some names (imploded by comma):
Code: toronto,paris,madrid
Now, i would

JSON SORT WITH PHP
I have two products that I want to sort by say "Id:17, value: xxx" using php
The page w

Help building / using array
First - this is a cross-posting, if this is wrong I apologise! What started out as a MySQL query que

updating a single value to multiple non consecutive rows
I need to update the same value to multiple non consecutive rows. I need to add an experation date t

quick basic question, hopefully not dumb
I don't know how to search for this, so forgive me if it's been covered...

I often see an exa

Need understanding of this bit of code
Code: <?php
// WHERE clause filters
$arrSQLFilters = array();

//

Struct/union and scope problem!
HI all , I have
Code: in header.h typedef struct Node Link; /* ---------

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash