On Tuesday 02 July 2002 23:13, Jay Blanchard wrote:
> I am slowly coming up with a solution to my cURL problem and have narrowed
> down the possibilities. One of these being that the cURL command written
> out with variables and such breaks into more than one line. This is not
> allowed in cURL. So, I had decided to write out a file as follows;
> ($curline is all on one line in the code.)
>
> <?php
> $curllist = fopen("curllist.txt", "w+");
> $curlline = ("curl -d
> \"name=myname&password=mypassword&btnsubmit=submit\" -s -o $listline
> https://rc.qwest.com/servlet/rmcDownload/$listline?area\=cdr\&file=$listlin
>e ");
> fputs($curllist, $curlline);
> fclose($curllist);
> ?>
>
> Then I would pull out a line to execute for the download of the file. Well,
> when I vi curllist.txt the $curlline's are still broken after $listine
> variable is replaced and before the https:
>
> Is there a way to force all of this to be on the same line? I have placed
> newline characters at the end of the line I actually want, I have broken
> and reassembled the line in many different ways. I am going to go nuts on
> this I am sure.

Where are you getting $listline from? My guess is that $listline has a newline 
character at the end. Confirm using strlen($listline).

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
Al didn't smile for forty years.  You've got to admire a man like that.
                -- from "Mary Hartman, Mary Hartman"
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to