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

126 Like 22 Dislike
Previous php-forum Next php-forum
Other php-forum

how to easy edit text, with box? Help.
Hi.
I have a little problem. I'm doing a webpage for my aunt and I would like to make it as easy

Referential Integrity problem when inserting into 2 tables at same time
Hello Everyone,

Im relativity new to PHP and MySQL and i have come up against a problem. i h

help with php
It's not displaying or pulling anything out of the database.


Code: <html><

Paypal
Hi all,

I have an advanced basic knowledge of php

I want to try something new for a s

simple ping code
been searchin the site/web and found code thats simple but doesnt work.

I have a personal we

Javascript or not?
How many people prefer javascript/ajax sites? How many prefer the good old fashion straight php sit

Uploading files/images via forms
Hey all, I am building a database for work that will contain some minor data on plant species along

Need help/w Page: 1,2,3,4 function!
So I have this code im working on where it's ment to display seperate pages having 20 logs each
I

MySQL Primary key gap
Alright, so I have a table with 26 entries in it (id, filename, caption) for my image randomiser (ht

Anti Spam Code
Ok where do i start? Probably by telling you I have very little working knowledge of PHP and that I

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