Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > PHP How-To
| Search | Today's Posts | Mark Forums Read
PHP How-To Post your "How do I do this with PHP?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old January 5th, 2006, 11:49 PM
Registered User
Join Date: Jan 2006
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default ftp_connect() does nothing

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?

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.