Тёмный

Cron Job in PHP on Localhost in Windows | Scheduler in PHP 

vivekmoyal
Подписаться 1,1 тыс.
Просмотров 52 тыс.
50% 1

Опубликовано:

 

1 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 75   
@virangyasenevirathne3165
@virangyasenevirathne3165 2 года назад
I think you are an Indian. Anyway! these Indians are great! Thank you!
@amithashetty9967
@amithashetty9967 Месяц назад
Hi I tried this code but shellscript file not working if i double click on batch file command prompt opens and closes immediately but php code doesn't work. Can you please help.
@kwednigeria8888
@kwednigeria8888 2 года назад
To be honest, i am really impressed, u deserve some accolades. Wasnt expecting this to work, but it worked on the first trial, wow.
@vivekmoyalvd
@vivekmoyalvd 2 года назад
Thank you
@pramodsawant7310
@pramodsawant7310 2 года назад
Useful video 👍☺️ But I want to delete some row auto delete ... In column value 0,1,2,2,0,1,0 like this I want to delete 0 value row using crop job how I do this? Sir Please help me !
@KonstantWalker
@KonstantWalker Год назад
Still works in 2023 tysm :D
@rajesh_kl1
@rajesh_kl1 11 месяцев назад
It's working if i run manually it's working. If i schedule with task scheduler it's not working
@JaveGeddes
@JaveGeddes 3 года назад
ALWAYS INCLUDE YOUR CODE WITH TUTORIALS! No one wants to copy text having to rewind, or play slow to find out if it works. Including code = twice the likes.
@vivekmoyalvd
@vivekmoyalvd 3 года назад
Hello Have, You can find the code in provided url which you can find at the video details. You can copy and paste here
@JaveGeddes
@JaveGeddes 3 года назад
@@vivekmoyalvd There is no URL provided.
@vivekmoyalvd
@vivekmoyalvd 3 года назад
@@JaveGeddes You can use this URL - www.vivekmoyal.in/cron-job-in-php-on-localhost-in-windows-scheduler-in-php/
@punithkc3996
@punithkc3996 2 месяца назад
Life saver
@sumithamk6601
@sumithamk6601 6 месяцев назад
Thank you so much!! My cron job is running successfully in windows.
@namilo8863
@namilo8863 2 года назад
Thanks
@masumbillah4608
@masumbillah4608 7 месяцев назад
thank you bro. it's very helpful for me. god bless you
@CiroPeixoto
@CiroPeixoto Год назад
O cara gasta um puta tempo para ensinar Banco de dados 😮
@azarudeen6054
@azarudeen6054 2 года назад
How to upload Excel file in the server using this method/cron
@duku-1723
@duku-1723 3 года назад
👌👌👌👌
@medhavimadushanika4696
@medhavimadushanika4696 2 года назад
supercalifragilisticexpialidocious
@HuyNguyen-xq3pt
@HuyNguyen-xq3pt 2 года назад
video very useful 👍👍👍👍. My computer is off but I still want to upload data to the database it fails because xampp is off how can it take action and xampp is enabled at the same time ?
@vivekmoyalvd
@vivekmoyalvd 2 года назад
I am not sure but if you can set anything in your bios then you can do that just like computer clock it always work.
@ckhobhey1047
@ckhobhey1047 4 года назад
I copied every code from your site, and changed the paths, however it's not working
@doddannad3613
@doddannad3613 4 года назад
Hey there please you have to do litle change in you code in .bat file : "C:\xampp\php\php.exe" -f C:\xampp\htdocs\cronproject\autoEntry.php and in vbs file : Set shell = CreateObject("WScript.Shell") shell.CurrentDirectory = "C:\AutoScriptRunner" shell.Run "script.bat"
@ansmunir8159
@ansmunir8159 4 года назад
It is giving me error on Line 2 char 1 Have you delete all the code in vbs file or add this? Please tell me what have you done in vbs file. My code is not working. When I double click on it then it is not working Looking forward for your response
@zigzig2008
@zigzig2008 Год назад
you saved me
@dani8667
@dani8667 4 года назад
I followed the same step but i get an error when the scheduled task run. "Loading script "C:\WINDOWS\system32\C:\Users\dania\Desktop\shell.vbs" failed (The filename, directory name, or volume label syntax is incorrect) can you please guide me how to resolve this error?
@vivekmoyalvd
@vivekmoyalvd 4 года назад
Please check the file url which you have used in your file.
@dani8667
@dani8667 4 года назад
@@vivekmoyalvd yeah i did All the url are correct
@dani8667
@dani8667 4 года назад
@@vivekmoyalvd sir the shellscript.vbs file is not running when I double click on it.
@vivekmoyalvd
@vivekmoyalvd 4 года назад
@@dani8667 this is the problem .... Please paste the code here
@dani8667
@dani8667 4 года назад
​@@vivekmoyalvd shellscript.vbs code Set WinScriptHost = CreateObject("WScript.Shell") WinScriptHost.Run Chr(34) & "C:\AutoScriptRunner\script.bat" & Chr(34), 0 Set WindScriptHost =Nothing
@somethingspecial1433
@somethingspecial1433 2 года назад
It is really helpful 👍👍
@Rajeswarmohanty
@Rajeswarmohanty Год назад
great .. thank you
@AhmedHamed-hs9ed
@AhmedHamed-hs9ed 3 года назад
Working 100% on windows 10 , Thanks
@ជីវិតប្រពៃ
@ជីវិតប្រពៃ 3 года назад
Thanks for your sharing, Could I run php script to write excel file?
@vivekmoyalvd
@vivekmoyalvd 3 года назад
Yes, you can
@nailorsaiyee2852
@nailorsaiyee2852 4 года назад
thank you so much
@ifeanyinnaemego
@ifeanyinnaemego 3 года назад
How do I do this on the Cpanel
@vivekmoyalvd
@vivekmoyalvd 3 года назад
Use cron jobs
@syuhadaazamil4111
@syuhadaazamil4111 4 года назад
basically i need to click the run button to send the email. but the email would not send automatically. is there any way for me to get the email automaticaly
@Vivekmoyal
@Vivekmoyal 4 года назад
First of all check that your email script is working or not. Then move to the scheduler and create a time period for continues running like 1 minute, 5 minute etc you can find this option in the above video. If you wont set the continues process then it will run the script automatically.
@Sanou1
@Sanou1 4 года назад
I want to ask u please if your script is working now, because i need to do the same thing and i don't know what to do yet. thank u
@vivekmoyalvd
@vivekmoyalvd 4 года назад
Code was already working..... At what part you are facing issue
@Sanou1
@Sanou1 4 года назад
@@vivekmoyalvd thanks for your reply, but I was talking to @syuhafa azamil because i want to send mails automatically too, so if she/he can help me on that, i'll be so thankful🤗
@sehphirry9148
@sehphirry9148 4 года назад
Thanks its working but when i try to use it in windows server 2016 its not working. How can i make it work?
@vivekmoyalvd
@vivekmoyalvd 4 года назад
What error you are getting...
@sehphirry9148
@sehphirry9148 4 года назад
@@vivekmoyalvd Windows Script host: in the shellscript. Line 2. Char 1. Error: the system can not find the file specified. Code 80070002. Source (null). that is the full error i am getting but in windows 10 its working fine except in server 2016.
@vivekmoyalvd
@vivekmoyalvd 4 года назад
@@sehphirry9148 plz chk the below comments someone fixed this issue earlier
@sehphirry9148
@sehphirry9148 4 года назад
@@vivekmoyalvd Okay thank you very much. Nice work by the way.
@sehphirry9148
@sehphirry9148 4 года назад
Now i managed to fix the error but its not in Db using auto schedular
@jeffersonsarmiento700
@jeffersonsarmiento700 2 года назад
I followed your tutorial but it didn't work, can you help me to solve it?
@vivekmoyalvd
@vivekmoyalvd 2 года назад
What error you faced
@jeffersonsarmiento700
@jeffersonsarmiento700 2 года назад
I followed your tutorial but .vbs file is not working when I double clicked it.
@vivekmoyalvd
@vivekmoyalvd 2 года назад
@@jeffersonsarmiento700 is there any error you are facing
@jeffersonsarmiento700
@jeffersonsarmiento700 2 года назад
@@vivekmoyalvd my PHP code will send an email when I open its file in browser but when I use the .vbs file it didn't work
@vivekmoyalvd
@vivekmoyalvd 2 года назад
@@jeffersonsarmiento700 you are using it on your server or localhost
Далее
Laravel Advanced - Task Scheduling - CRON Job
16:26
Просмотров 62 тыс.
ТАРАКАН
00:38
Просмотров 1,6 млн
Setup Cron Job in Windows using task scheduler
5:26
Просмотров 28 тыс.
Run a PHP Script Automatically at a Specified Time
6:47