简体   繁体   中英

run php script after wget download is complete

I need to get notification on some script that file has been successfully downloaded with WGET, so I'll need to upload it to another server. Can it be done?

Thanks!

wget "http://example.com/path_to_file.tar.gz" && php scriptname.php file.tar.gz

为什么不使用cUrl在php中执行下载,而是可以在后台运行PHP脚本并在下载完成后继续运行?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM