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 homewwwweb1 Directory. the php file is web2.php content & lt ;? Shell_exec(.html 2 imageforum 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.