cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-and-php mailing list Archives

Re: CURL running form PHP exec() problem!

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Thu, 7 Apr 2005 08:59:04 +0200 (CEST)

On Thu, 7 Apr 2005, James Lu wrote:

> in 3th -F option ,I want to upload the /tmp/upload file,so i used the @
> sign.when I run it in the command console,anything is OK! But when I Call it
> from PHP's exec(),it do nothing and return value is not 0 but 26,when i drop
> the @ sige ,it can work ,but just the content of"/tmp/upload". Idon't know
> the reason, PHP or Curl problem? thanks

Since you already said it works when you run it from the command line, I would
say that there's some PHP thing causing this. Perhaps you need to escape the
@-letter somehow?

I am rather clueless about PHP.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2005-04-07

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET