is it possible to read a list of text files from a remote server (an FTP server actually). i want someone to be able to see the file list and then click on the name to display the text file as html. is this possible?
If your build was not compiled with the --enable-ftp, then you will need to recompile with the --enable-ftp switch to use the FTP functions. The only other option that you might be able to do is to write external scripts (not PHP) that perform the necessary FTP commands and use then you can use PHP's system() function to call these scripts and display their output. But that (in my opinion) would be more hassle than recompiling PHP.
If you are not running your own server, then it would be something that your webhost would have to do.
Most of the webhosts that I know probably will not recompile their PHP, unless you are paying them for a dedicated server (like Rackspace ... usually $300 plus a month).
You can always tell what options were compiled into your build by running this code:
<?
phpinfo();
?>
look for a line that says
FTP Support enables (or disabled).
If you are running your own server, then it will depend on you OS on how your compile your build.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.