You are here: Re: ftp_connect() does nothing. No error or blowup, just nothing. « PHP Language « IT news, forums, messages
Re: ftp_connect() does nothing. No error or blowup, just nothing.

Posted by Good Man on 10/16/44 11:36

colinhumber@gmail.com wrote in news:1136528027.687795.44450
@g47g2000cwa.googlegroups.com:

> I'm trying to use the ftp_connect() command to hook up to the FTP
> server for my site. The FTP functionality is enabled in PHP so that's
> not the issue.
>
> Here's the code:
> $conn_id = ftp_connect($hostname); //where hostname is the proper ftp
> server
>
> When I try to connect on my local version of application I can connect
> just fine. However, when I try to connect to the same FTP server on the
> hosted version of the app (same code), nothing happens. The
> ftp_connect() doesn't return an error, true/false, and no code past
> that line gets run. If I specify an invalid port then an error occurs,
> but connecting to the right host/port never works.
>
> Any thoughts?

make sure your error reporting is turned on... clearly there is an error
somewhere, and you need to know what it is.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация