cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

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