I figured out why that it wasn't working. My prefix isn't the standard default prefix. I put php in /usr/local/apache/php. Though my script calls for /usr/local/bin/php...that php binary was copied there from the previous installation. Therefore, when I recompiled it was still using the 'old' binary. I should have created a symbolic link to the /usr/local/apache/php/bin/php file and this wouldn't have happened. Thanks for the quick repsonse.

Marek Kilimajer wrote:

Cory D. Wiles wrote:

I am writing some backup scripts that will ftp my *.gz files to my ftp server. Unfortunately I didn't originally install php with ftp support (oversight on my part). I reconfigured/installed PHP with --enable-ftp and restarted everything, but the functions still don't work.

#!/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?


Did you install php cli binary? Is it installed in /usr/local/bin? Check the build date (/usr/local/bin/php -i | grep "Build Date").



-- 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