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

PHP and Javascript
Hello Everyone,

I have a page that needs a javascript code to be written between PHP code but

Can I use a loop
Hi buddies!

Once again with my doubts here.

Right now I am using this sql stat

New to mysqli library - Multiple query problem
Greetings,

I am writing a batch program that executes 3 queries on a single page. Using mysql

keeps going back to index.html ???????
ok so i started making my site using mostly.html files now i have added a fair chunk of php. My inde

Not Inserting into DB
I can't get my Add new Division form to submit to the database. Anyone see my issue?

Code: &a

PHP Search Issue
Hi, I am using the following code to search and return flights from a database. The user searches by

How to copy a part of a vector in a raw memory
Hi,

How can I copy a part of a vector into a memory:

1
2
3
4
5

Beginner question regarding Array's
Hi everyone, the page im working on has an array of variable at the top...

Code: $define_li

All possible combinations of String in PL/SQL
Hi All,

Could you please explain the logic of getting all possible combinations of String

Regarding accessing SQL query issued by any user in Oracle 10g
Hi all,
i want to know the queries issued by various users accessing a database...

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