|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-03-29 07:13 UTC] RJackson at InfoSharkz dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 08:00:02 2025 UTC |
Description: ------------ The execution functions like passthru, exec, and system do not work on PHP 5.0.3 to execute a program. No error message is returned. The functions however work with PHP 4.3.10 with the same code and same program. The following is changed in my PHP.ini file: extension_dir=C:\Program Files\PHP5 extension=php_mysql.dll extension=php_gd2.dll extension=php_curl.dll error_log = error.txt post_max_size = 20M include_path = ".;m:\IS" default_socket_timeout = 10 Reproduce code: --------------- <? $imagemagick='C:\Program Files\ImageMagick-6.2.1-Q16\convert.exe'; $filename="file.jpg"; passthru("$imagemagick $filename t-$filename"); ?> Expected result: ---------------- The script should copy the file file.jpg to t-file.jpg in the same directory using Imagemagick. Actual result: -------------- The file is not copied.