I’ve done some searching before this post and I still can’t seem to get this to work. I’m trying to setup a cron job with PHPMailer to send out an email every so often. The script below does work if I …
Tag: cron
Transforming scraper class code into Laravel command
I want to convert a website scraper that I made in basic PHP, which is working fine, to Laravel. My question is, how to accomplish this? A friend of mine told me something about php artisan make:command, but I never used this before and neither did he. Can you give me some pointers on how to use this? Any helpful
Ping a URL with Laravel Forge scheduler (non Laravel app)
I am using Linode/Forge for a non-Laravel php project and I need to set up a cron job to ping a certain URL once a day. Can I do this using the Forge scheduler? And if so, how? Thanks. Answer I found the answer. You just use “wget http://mywebsite.com/myurl” and set the frequency.
Openshift 3 CronJob inside running container
If I understand it correctly, you can configure Openshift to run cronjobs which will run a job periodically. Also a job seems to run a new container each time the cronjob fires. I need a way to run a …
WordPress regularly produces errors for cron.php, class-wp-hook.php and update.php
For a customer I set up a website in WordPress. The site got hacked and infected with malicious code, so I’ve re-uploaded all WordPress files and the files for the theme, changed all passwords, installed a security plugin and run several virus scans to remove every line of code, that was suspicious. The site worked normally after doing this, but
laravel 5.4 custom command not working
This is the first time i’m working in Laravel. I’m developing a custom command which will read a file and insert rows in database. I’m getting errors. Below is my code any help will be appreciated. Command File. Model File Kernel.Php ERRORs: D:xampphtdocslara12>php artisan ship:start PHP Fatal error: Class ‘AppConsoleCommandsShipNow’ not found in D:xampphtdocslara12appConsoleCommandsshipdata.php on line 26 [SymfonyComponentDebugExceptionFatalErrorException] Class ‘AppConsoleCommandsShipNow’
Laravel schedular: execute a command every second
I have a project that needs to send notifications via WebSockets continuously. It should connect to a device that returns the overall status in string format. The system processes it and then sends notifications based on various conditions. Since the scheduler can repeat a task as early as a minute, I need to find a way to execute the function
How to set cron job url for codeigniter?
I am using Codeigniter for my website. I have to use cron job to run one of controller function. I am using route in website. And also I am not using index.php in url. e.g. http://my-domain.com/…
How can I tell if moodle cron is working?
I’ve just sended a messege to the server admin asking if he can set the cronjobs on the server and he asked me to tell him if everything is working right. How can I test whether the cronjobs are …
Command-line script PHP does not run
I am trying to build a PHP script to process data manually to later convert it to a cronjob. This script also gets data from MySQL and a third-party SOAP interface. When I try to run it from the command line I have an error and the script does not run. It shows: Here’s what I have in my script: