Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Missing PHP-functions

Missing PHP-functions
Thread Tools
Junior Member
Join Date: Aug 2001
Location: Norway
Status: Offline
Reply With Quote
Dec 7, 2001, 11:32 AM
 
Why can't I use the following functions locally om my iBook?

ftp_connect()

I get this error:
Fatal error: Call to undefined function: ftp_connect() in /Library/WebServer/Documents/PHP/examples/ftp_connect.php on line 8

And there are some other ftp-functions that don't work, that
do work on the server running Linux.

I am currently running:

- Mac OS 10.1.1
- Apache
- PHP version 4.0.6

[ 12-07-2001: Message edited by: Espen Isaksen ]
------------------------------
http://www.espenisaksen.com
     
Junior Member
Join Date: Apr 2001
Location: Sunnyvale, CA
Status: Offline
Reply With Quote
Dec 7, 2001, 01:04 PM
 
Is this the default build of PHP? Perhaps the ftp option wasn't enabled, in which case you might have to re-configure/compile with --enable-ftp.
     
Junior Member
Join Date: Aug 2001
Location: Norway
Status: Offline
Reply With Quote
Dec 8, 2001, 04:47 AM
 
Yes, it is the default build of PHP.
------------------------------
http://www.espenisaksen.com
     
Junior Member
Join Date: Apr 2001
Location: Sunnyvale, CA
Status: Offline
Reply With Quote
Dec 8, 2001, 04:47 PM
 
I'm not sure if the default build has ftp enabled, so I would suggest reguilding PHP from source, with the ftp option enabled. Step by step instructions on compiling PHP on 10.1.x can be found at http://www.stepwise.com/Articles/Wor...-10-11.01.html. Also see the PHP documentation at php.net for other configuration options.
     
Dedicated MacNNer
Join Date: Oct 2000
Location: Washington, DC
Status: Offline
Reply With Quote
Dec 8, 2001, 04:50 PM
 
You can get a dump of all the php configuration options by putting in

<?php phpinfo(); ?>

on a php file, then load it in your browser, then you should be able to see if ftp functions are active or not.

-tim
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 03:00 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2