i have a simple script which im testing at the moment but it's not working.
I have this simple lines :
$url = "http://www.google.com";
system("wget --page-requisites ".$url);
The issue is that it does nothing, my website is located at /var/www/html/server_a which is where im checking if it downloaded the required page but seems like it's doing nothing.
Im using a VPS with Ubuntu 14.04
Your issue is sudo, you need to add sudo before you run this command.
$url = "http://www.google.com";
system("sudo wget --page-requisites ".$url);
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.