Php web page Issue 1. Currently, the html2image third-party plug-in is installed on the centos5.0 system. Shell_exec in php cannot be called, but images can be generated through commands on the server. For example, the html2image control is installed in the/home/www/web1 Directory. the php file is web2.php content & lt ;? Shell _ php webpage problems
1. Currently, the html2image third-party plug-in is installed on the centos 5.0 system.
Shell_exec in php cannot be called, but images can be generated through commands on the server.
For example, the html2image control is installed in the/home/www/web1 Directory. the php file is web2.php content.
Shell_exec ('./html2image forum.csdn.net csdn.jpg ');
?>
Failed to run web2.php.
However, you can directly run cd/home/www/web1 on the server./html2image forum.csdn.net csdn.jpg to generate images.
I don't know why.
2. do you have any good methods to generate images (webpages) on webpages?
------ Solution --------------------
Add an absolute path.
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