I have developed Laravel application which allows dynamic subdomains. I mean single code for all tenants.each tenant will have separate database. But how can I setup crons for each subdomain?

Member Avatar
Member Avatar
+0 forum 2

I want to set cron job using codeigniter, in godaddy shared hosting i used the following code to execute `movies` controller's `cool` method. /web/cgi-bin/php5 "$HOME/html/MOVIESDOM.COM/index.php" movies cool Problem is it always execute default controller. Pls tell me how to execute `movies` controller's `cool` method

Member Avatar
Member Avatar
+0 forum 7

hi, how to send email when the server in down in php with cron ? i have 4 server and i want to check every 2 minutes that if any server is down , email send to my gmail account . email send once in 24 hrs not after every 2 minutes.how can i do this with php please guide. thanks in advance.

Member Avatar
Member Avatar
+0 forum 1

So I've got a php script that emails me a daily database backup via cron. The script will either output success or failure upon mail->send(), and it always succeeds. However, no email ever is delived *if* the domain name is the same (i.e. www.example.com and myself@example.com), but if I send to another domain such as myself@gmail.com then the script works fine. Obviously, a solution would be to just email myself@gmail.com, but I'm trying to understand why I can't send emails to @example.com. Note: It will send emails to @example.com when run from the browser. What could suppress emails to @example.com …

Member Avatar
Member Avatar
+0 forum 3

Hi i am new to paypal , my client need to pay the payment in the date which was set by the admin , is it possible to do this using cron . is any method is there in paypal . i search in google but i didn't find the answer . help me to do it .

Member Avatar
Member Avatar
+0 forum 4

Hello I am writing an PHP module for admission process. It have an admission form. Tentatively ddmission process start from mid of March and ends in mid of May (not fixed). My question is what is the best way to activate and deactivate the calendar control of this admission form before and after the admission date so user cannot use this admission form except the announced admission period. Any suggestion is welcmed and appriciated.

Member Avatar
Member Avatar
+0 forum 1

My site is hosted by a hosting company which does not allow me to access the normal cron logs. I want to redirect the output and error messages to a log file in my user space. My cron commmand is /usr/bin/curl -s "http://my/path/to/updateWebsite.php" > dev/null I want to send the output echos and error messages to my/path/to/updateWebsite.log . Tutorials I have looked at indicate to use /usr/bin/curl -s "http://my/path/to/updateWebsite.php" > "http://my/path/to/updateWebsite.log" 2>&1 but I cannot make this work. Can someone help me with the correct syntax?

Member Avatar
Member Avatar
+0 forum 2

Hello All, Having a few problems with the code below and wondered if someone could shed some light on it, I have a php script running from a cron that runs every 15 mins the error I am getting tom the cron is `PHP Notice: Undefined variable: rows in /var/www/vhosts/server.com/migration_tracker/staff/5th_email.php on line 9` My code is <?php include('config.inc'); $agree_date = $rows['agree_date']; if ($agree_date > strtotime('2 week')) { mysql_select_db($dbname); $sql="SELECT * FROM db, 5th_email WHERE old_mbox_del = '0' AND 1st_email_sent = '1' AND 2nd_email_sent = '1' AND 4th_email_sent = '1' AND 5th_email_sent = '0' AND 6th_email_sent = '0'"; $result = mysql_query($sql) …

Member Avatar
Member Avatar
+0 forum 21

I'm not sure exactly which forum to ask this,so I'm starting here, I have a cron job I want to execute every 72 minutes. I've researched how to schedule the job for an interval of 60 min or less, but is there a way to specify a minutes interval when the required interval is > 60 ?

Member Avatar
Member Avatar
+0 forum 5

I'm trying to run a cron job on my web server. I used the cron module at the cPanel to add the file and used this command.. `sh ./public_html/crark/run.sh` The problem was that it takes the root folder context for all the followed processes i.e. I call run.sh from cron job which has the following code ./public_html/test/test.exe -h -s > ./public_html/test/output.txt The code apparently doesn't work as **./test** calls a few files within that folder. I originally used ./test -h -s > output.txt as the code inside run.sh because I wanted it to work in that directory context. It would …

Member Avatar
Member Avatar
+0 forum 5

Hi My error log is showing the following error every five minutes so I suspect it is related to one of my cron jobs, The error is: PHP Notice: Undefined index: HTTP_USER_AGENT in /home/myaccount/public_html/mysite.com/app/config/config.php on line 18 The relevant line 18 is: $_is_hashbang_supported_bot = (strpos($_SERVER['HTTP_USER_AGENT'], 'Googlebot') !== false); Line 19 is define('IS_HASHBANG_SUPPORTED_BOT', $_is_hashbang_supported_bot); Any help appreciated. Many thanks Mark

Member Avatar
Member Avatar
+0 forum 1

I have a script that is requires a cron job. The script has the option to run a manual cron job which works fine and the option of seting up an automatic cron job which is where the problem is. The support from the scripts authors is poor as they can't seem to configure it to run properly and indeed have left me with 2 cron jobs with no explanation when the installation guide suggests only one. Anyway, the cron isn't doing all the tasks it should and in addition I get an email that has the following message: > …

Member Avatar
Member Avatar
+0 forum 6

Hi Friends, Can anyone one have an idea about how we make cron in php. I mean i have to records of 6000 email id and we have to send mail them randomly selected email templates with in 48 hour. Once student got the mail from then from the database email id of student is deleted. If someone has idea for that then reply. Thanks for giving time to read my problem.

Member Avatar
Member Avatar
+0 forum 2

Hi, I am new to Unix environment. Any one can explain how I can set CRON job to run PHP script. Thanks.

Member Avatar
Member Avatar
+0 forum 1

Hello, I never used cron jobs before and now I have this scenario: I have a table with a Boolean column called: new. I need to check this table every day, and if the record was created 30 days ago, I need to update the column to False. Do I do this with a cron job? I read lots of posts and articles about cron job but still not sure I understand if that is what I need... confusion... Thank you

Member Avatar
Member Avatar
+0 forum 2

I am working on a project in which i need to send emails after 3 days of adding projects .is it possible using php?

Member Avatar
Member Avatar
+0 forum 5

Hi, I have PHP script which is calculating some Google Maps API functions in Javascript and then sending output back to PHP. My biggest problem is, that i need it to run at intervals, but AFAIK cron can't handle javascript I've tried a little workaround - setting cron which sends the url to online web thumbnail generator - and it works. Until this online service denied loading scripts at their side. It must be some way to achieve this. Maybe running some instance of browser in PHP?

Member Avatar
Member Avatar
+0 forum 6

Hi I've writen a server is PHP that i want to run every min. so i can do something like in cron [CODE]*/1 * * * * lynx -dump http://www.somedomain.com/myserver.php[/CODE] But i want to make sure there only 1 running. The web tells met to check for an prosesid but i running PHP as an apache module so ther is no prosesid. Does any one have any idears? Thanks p.s runing redhat el5

Member Avatar
Member Avatar
+0 forum 5

Hi Guys, I have set up a cron job on a Centos server that is supposed to execute a script that looks for SMS messages in a queue and processes them. My crontab file is under [B]/etc/crontab[/B]. The job is supposed to be run after every 5 minutes. The command I have added to the crontab file is [B] 01 * * * * root /usr/local/bin/readsms.pl[/B] to make it run after every minute. However, when I look at the cron log, the job is running after every one hour. Please help me figure out whether its my command that is …

Member Avatar
Member Avatar
+0 forum 2

Hi I test my web on my localhost(winxp+ie8+mysql5.0.51a+PHP 5.2.11+Apache 2.2.13). I want to add some cron job for my php files. I select Pycron. After configuration, I add some command in crontab.txt [CODE]* * * * * "C:\Program Files\Internet Explorer\IEXPLORE.EXE" http://localhost/test/index1.php.[/CODE] It is success, it will open IEXPLORE.EXE and load index1.php for every minute. But it still open the IEXPLORE windows, not for close. how to set it automatic finish the php job, then close the IEXPLORE windows? thanks.

Member Avatar
Member Avatar
+0 forum 18

Hey all, I have several cron jobs running but some of them take a lot of time to complete, since it requires fetching data from an external website and then updates my site's database. My hosting provider has a 120 second time limit for PHP scripts, which is too low for my script, the reason why I run that script in blocks, I mean, I update as much as I can in 120 seconds and then, 3 minutes later, the next cron task picks up where last cron left off, and so on until it completes. Additionally, I edited my …

Member Avatar
Member Avatar
+0 forum 3

Hello, I am new to Cron and want to test if it's working, I don't have a live server so I am using xamp and wamp. How can I test if my cron code is working? I don't want to use windows scheduler as I am not interested in performing the tasks, I just want to test if the cron is working, so if I send them to someone and put it on his live server it would work for him. Thanks,

Member Avatar
Member Avatar
+0 forum 1

Hi All I am trying to create script which will update the database every 24 hours to reset a row back to 0. My web host cron job panel does not work so that is why i am asking you for help. I will be very grateful for any help. Thanks in advance Cameron

Member Avatar
Member Avatar
+0 forum 1

I want a PHP cron script to be set up with cPanel cron jobs that would take backup of MySQL database. Regards,

Member Avatar
Member Avatar
+0 forum 9

Hi, I am facing problems in scheduling the cron to run on first monday of the everymonth. Can anybody help me out? Regards, sri

Member Avatar
Member Avatar
+0 forum 3

my api parsing script has dynamic url, like scriptname.php?limit=100 here this last 100 will change;varying from 0 to the number of lines from the file returned by first cron. And i want to this script to execute as a cron job, but how this parameter 'limit' i should handle. any posts regarding this dynamic cron url will be much appreciated. Please ask to clarify if not clear enough.

Member Avatar
Member Avatar
+0 forum 4

Hi, I have a corn.php file that runs automatically every day and one of the functions is to send an e-mail to certain users. The problem is that the e-mails are being sent twice. I can't find anything wrong with the cron file, but checking the access_log.processed file of the server I found two entries with the cron file runnig at practically the same time: 1)..."HEAD /x/cron.php..." 2)..."GET /x/cron.php..." I don't know much about apache but I think the problem might be that the HEAD method is also sending e-mails when it runs the file, so my questin is: ┬┐Can …

Member Avatar
Member Avatar
+0 forum 2

The End.