Jump to content

ftp


jaypotter

Recommended Posts

I am using PHP Version 5.2.5 on an iSeries. I have been using PHP for about a year. This is the first time I have tried to use FTP and when I use the basic command of

 

ftp_connect($ftp_server);

 

$ftp_server equal to my server name

 

I get an internal server error as if the command is not valid. Do I need to do and additional download for my system to accept FTP commands?

Link to comment
https://forums.phpfreaks.com/topic/205744-ftp/
Share on other sites

First:

ftp_connect($ftp_server) or die("could not connect");

This will hopefully give you a useable page.

 

Second:

If you are trying to connect to your Webserver box, you need an FTP Server on the address your connecting to (NOTE, i do _not_ mean an FTP Client, it must be an FTP Server where you can create and modify users with permissions and folders etc.).

 

-cb-

Link to comment
https://forums.phpfreaks.com/topic/205744-ftp/#findComment-1076656
Share on other sites

Thank You for trying to help. I found out my problem is that when we installed PHP, we did not install with the FTP option. I found the following statement:

 

In order to use FTP functions with your PHP configuration, you should add the --enable-ftp option when installing PHP 4 or greater or --with-ftp when using PHP 3.

 

Thanks again.

Link to comment
https://forums.phpfreaks.com/topic/205744-ftp/#findComment-1077265
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.