RE: [PHP] cURL in an exec() MORE...
| From: | Jay Blanchard | Date: | Mon, 01 Jul 2002 18:49:14 +0000 |
| Subject: | RE: [PHP] cURL in an exec() MORE... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-104751@lists.php.net to get a copy of this message | ||
Yes it is...a, well. Time to compile PHP with cURL I guess. Thanks!
-----Original Message-----
From: Jason Wong [mailto:php-general@gremlins.com.hk]
Sent: Monday, July 01, 2002 1:46 PM
To: php-general@lists.php.net
Subject: Re: [PHP] cURL in an exec() MORE...
On Monday 01 July 2002 23:25, Jay Blanchard wrote:
> [snip]
> Thanks Jason, I fixed that and still does not work. So I am trying this;
> $curlline("curl -d
> \"name=myname&password=mypassword&btnsubmit=submit\" -s -o
> ".$listline."
> https://theserver.com/download/".$listline."");
> print($curlline); <----this looks fine
> exec($curline);
> [/snip]
>
> The cURL statement has to be on one line, when I view the source the
> statement appears to be broken up, i.e.
> curl -d "name=myname&password=mypassword&btnsubmit=submit" -s -o
> 2002060704.zip
> https://theserver/download/2002060704.zip
>
> OK, so how do I keep a long line from breaking up without inserting
special
> characters? Maybe this why cURL is failing.
Is the line in which you are assigning $curlline, all on one line? If not,
make it so.
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
Conquering Russia should be done steppe by steppe.
*/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php