Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

RUNNING PHP SCRIPT WITH ZEND FRMWRK IN WINDOWS TASK SCHEDULER

New Here ,
Nov 03, 2012 Nov 03, 2012

I have a PHP script which includes the Zend framework Mail.php for sending mails.

I am running a WAMP server and i used DW to create it.

I want to run my script in every 5 mins, How i can schedule it in Windows task scheduler.

I tried running a bat which contains the php.exe path and arguments as php file but it gives an error that zend/mail.php not found.

Please help its really urgent.

TOPICS
Server side applications
1.4K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 04, 2012 Nov 04, 2012

Please show us the bat file or command line you have tried.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 05, 2012 Nov 05, 2012
LATEST

Thanks for your response.

bat file has:

path of the php.exe -f path of php file.

But when it runs it gives an error that the zend framework file not found.

I have a seperate PHP includes folder under which zend FW is stored.

That folder is marked in includes_paths in php.ini.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines