Skip to content
Advertisement

Tag: cron

Cronjob not running php script

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 …

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

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

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:

Advertisement