mysql - how to run php script from batch file -



mysql - how to run php script from batch file -

i have used article php script named upload_.php , have developed windows service in c# running fine. in theory service run every hr , execute batch file (task.bat). if run upload_php file straight works fine think problem in task.bat file. here code

task.bat code

@echo off cd\ set path=c:\xampp\php; cd "c:\xampp\htdocs" php import.php exit

when service runs execute task.bat file php script dont execute. wrong code????

this worked me although im not php developer colleague helped me

@echo off "d:\xampp\php\php.exe" d:\xampp\htdocs\upload_.php %*

php mysql batch-file windows-services

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -