FTP Trouble

From: Date: Thu, 29 Jun 2000 15:15:50 +0000
Subject: FTP Trouble
Groups: php.general 
Request: Send a blank email to php-general+get-3814@lists.php.net to get a copy of this message
Greetings Gents, I have a really wierd problem I cannot figure out. Early I used the basic script from the PHP manual. 2 <?php 3 $file = fopen("ftp://ftp.php.net/incoming/outputfile", "w"); 4 if (!$file) {
  5     echo "<p>Unable to open remote file for writing.\n";
  6     exit;
7 } 8 /* Write the data here. */ 9 fputs($file, "$HTTP_USER_AGENT\n"); 10 fclose($file); 11 ?> And this worked in sending files to my anonftp directory just fine. However at some point today it stopped working. every file that gets sent up is 60byte in size and cannot be viewed (our opened as I am sending up zipped files) If you look at the file all that you see is Mozilla/4.0 (compatible; MSIE 5.01; windows NT 5.0; DigExt) I have no idea what the hell is going on and my ISp is of little help here. Is there something I am doing wrong in the code or do you know if there is an issue I need to clear with my ISP. Thanks -- Phillip S. Baker phillip@wordsandimages.com Words & Images, Inc. 1535 Seabright Avenue, Suite 100, Santa Cruz, CA 95062 Direct Line (831) 420-2641 / Fax (831) 458-0808

« previous php.general (#3814) next »