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:
Did you know?Explore Trending and Topic pages for more stories like this.
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 help with a mail notify function
I was tasked with setting up a site that's been prewritten. The site is basically a form that captur

Storing/displaying image urls in a database?
Hi
Basically I have the following scenario:
User chooses picture from list. Picture info is ad

function not returning the correct value
I have a program that needs to return a value from a function. I have an output statement inside the

Place specific image in html page when specific name is typed.
Hello,

Fairly new to PHP and was curious if someone might know how to solve a fairly simple r

Email/MMS to Site
Hey guys. I'm looking for a way for a user to upload images and/or text via their cell phones. It

passing an array of objects after submit
How do I do this? This is what I have tried and it is not working.

<form method="

Clean URLs
Hi I was wandering if anyone has ever implemented URLs on their PHP run website using URLS like wiki

SMTP server...
I recently found a tutorial online on SMTP authentification for sending emails from webpages, here i

Set Categories
I am creating a submission form for somebody to come in and submit products. These products are sep

Is there a way to override built in php functions without APD?
I am trying to use the
rename_function()
override_function()
options that are built into

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