#32616 [NEW]: Call CURL'form upload from exec() 's problem !

From: Date: Thu, 07 Apr 2005 07:00:28 +0000
Subject: #32616 [NEW]: Call CURL'form upload from exec() 's problem !
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-76474@lists.php.net to get a copy of this message
From: fluzj at 21cn dot com Operating system: RHEL4 PHP version: 4.3.9 PHP Bug Type: cURL related Bug description: Call CURL'form upload from exec() 's problem ! Description: ------------ exec() call curl problem! platform: RHEL4 (PHP 4.3.9 CURL 7.12.1 ) example: /usr/bin/curl -k -s -S --connect-timeout 5 -F "option=$r_option" -F "upload=@/tmp/upload" https://admin:admin@localhost:3444/upload.cgi I want to upload the file througt form with the CURL. it can work on the command console,but When i call it from exec(),it do nothing and return not 0 but 26. when i drop the @ sign,it can work with only upload content with "/tmp/upload".As the same the < sign is not work yet.I remember it can work in earlier version .I have not test on the 4.3.10 or 11 version. and use the system() function is the same problem. thanks! -- Edit bug report at http://bugs.php.net/?id=32616&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32616&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32616&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32616&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=32616&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=32616&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=32616&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=32616&r=needscript Try newer version: http://bugs.php.net/fix.php?id=32616&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=32616&r=support Expected behavior: http://bugs.php.net/fix.php?id=32616&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=32616&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=32616&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=32616&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32616&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=32616&r=dst IIS Stability: http://bugs.php.net/fix.php?id=32616&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=32616&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=32616&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=32616&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=32616&r=mysqlcfg

« previous php.bugs (#76474) next »