> 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
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to