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

Need a Timecode Class...
Not a Time Stamp, Time Code. Format is a bit different. HH:MM:SS:FF where FF is Frames. I dont re

Generate multilayered array from string.
ok so i have a string that looks like this:
Code: [Select]blog:edit_all,delete_all|users:edit_all

Business Health Check
Hello

I need to create an online business health check for a client it will be multiple choi

How can i use [] tags instead of <> tags for profiles??
On my site im making ive made it so u can register, login and u have a profile which u can update..<

Strange Oracle Query problem
Ok So I have this PHP class that talks to a Javascript class that basically creates a table of infor

php include email form with attachment
I have had no luck with finding a email form all over the Internet for various reasons. Some insecur

Help adding strtolower( to my in_array
strtolower i need to add it to this to work, iuno how.

Code: $moderators = array('Admin', 'ba

isset undefined variable
Hi all,

Hope someone can point out the obvious. I've a log in script, if you dont enter a use

noob question
i traying to do a php form with auto replay for both(me and the user who send me a mail),

a u

Storing Values taken from a DB...
Using this code it will generate a short list from my database

<?php
mysql_connect

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