Re: converting fields from a fixed length text file intoan array

From: Date: Mon, 07 May 2001 08:22:05 +0000
Subject: Re: converting fields from a fixed length text file intoan array
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-51696@lists.php.net to get a copy of this message
Hello: I have a problem trying to get "ftp_get" to work connected FreeBSD. When I try to run the code below, it just hangs. When I try to run the same code connected to a Linux system, it works just fine. The difference between my home FreeBSD system and my work Linux system is: FreeBSD: - DHCP to @home - no anomymous FTP so I use user "test" and password "none" Linux: - has IP connected to the net - I think it too has no anomyouse FTP code: ================================================ <html> <body> <?php if(!($ftp=ftp_connect("localhost"))) { print("unable to connect<br>\n"); exit; } print("connected<br>\n"); if(!ftp_login($ftp,"test","none")) { print("unable to login!<br>\n"); exit; } ftp_get($ftp,"/tmp/test.jpg","test.jpg",FTP_IMAGE); print("done<br>\n"); ftp_quit($ftp); ?> </body> </html> ============================================ Any idea why? TIA Steve

« previous php.general (#51696) next »