Exec function exec (& quot;/usr/bin/mysqldump-H' 210. 14.65.107 '-uroot-ppsswdAM | gzip & gt;/var/www/html/s/dase. SQL .gz & quot;); this code is used in the linu exec function.
Exec ("/usr/bin/mysqldump-h '2017. 14.65.107 '-uroot-ppsswd AM | gzip>/var/www/html/s/dase. SQL .gz ");
On the linux server, I directly connected the server to execute this php code using php/var/www/html/s/2. php.
However, in windows, I use a url request to execute this php script without any results. I don't know what the class is?
------ Solution --------------------
No permissions or insufficient permissions
------ Solution --------------------
Permission issues: the user executing php on the terminal is different from the user executing url access, so the permissions are different.
You must grant the server user the permission to run the command.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service