Writing text line with no breaks.

From: Date: Tue, 02 Jul 2002 15:13:09 +0000
Subject: Writing text line with no breaks.
Groups: php.general 
Request: Send a blank email to php-general+get-104933@lists.php.net to get a copy of this message
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=$listline "); 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. Thanks! Jay "They're coming to take me away, hoho, hehe..."

« previous php.general (#104933) next »