Michal Migurski wrote:

#!/usr/local/bin/php
<?
if (function_exists('ftp_connect')):
  print "cool\n";
else:
  print "damn\n";
endif;
?>
output when ran: 'Damn'

During the make I didn't see any errors. When I ran phpinfo() [http://www.randomthoughtprocess.com/info.php] it shows that I have FTP support. Is there something that I am missing?


The version of PHP you're running on the command-line may or may not be the same installation as the one used by Apache. Use the following to see what your CLI installation does or does not have enabled:

php -r "phpinfo();"
shell>$php -r "phpinfo();" | grep ftp
Registered PHP Streams => php, http, ftp, compress.zlib
shell>$

I looked at the complete output and did not see that anything else for FTP. What do I need to do add FTP support for the CLI?

---------------------------------------------------------------- michal migurski- contact info and pgp key: sf/ca http://mike.teczno.com/contact.html




-- Cory Wiles Systems Engineer ePerformax - Memphis, TN 901.751.4902 http://www.eperformax.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to