jaypotter Posted June 24, 2010 Share Posted June 24, 2010 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 More sharing options...
kenrbnsn Posted June 24, 2010 Share Posted June 24, 2010 Please post the exact error message and your script. Ken Link to comment https://forums.phpfreaks.com/topic/205744-ftp/#findComment-1076624 Share on other sites More sharing options...
jaypotter Posted June 24, 2010 Author Share Posted June 24, 2010 The website cannot display the page HTTP 500 Most likely causes: •The website is under maintenance. •The website has a programming error. What you can try: Refresh the page. Go back to the previous page. Link to comment https://forums.phpfreaks.com/topic/205744-ftp/#findComment-1076625 Share on other sites More sharing options...
ChemicalBliss Posted June 24, 2010 Share Posted June 24, 2010 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 More sharing options...
jaypotter Posted June 25, 2010 Author Share Posted June 25, 2010 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.