Reputation: 248
I'am trying to call a php file via batch file in windows.
I tried something like
C:\xampp\php\php.exe -f C:\xampp\htdocs\feedback\cron_job.php
and also
@echo OFF
"C:\xampp\php\php.exe" C:\xampp\htdocs\feedback\cron_job.php %*
If I run this batch file, a command prompt opens but the script is not executing and I don't get any errors, should I set php path in environment variables? Any suggestions will be really appreciated.
Upvotes: 1
Views: 122
Reputation: 348
You must set php folder to PATH
in environment variables (user and system) and everything ok
Upvotes: 1