|
Author |
Message |
willmoss
Junior WebHelper
![Junior WebHelper Junior WebHelper](images/rank_1.gif)
Joined: 06 Apr 2002
Posts: 3
|
Posted:
Sat Apr 06, 2002 2:29 pm (22 years, 2 months ago) |
![Reply with Quote Reply with Quote](templates/4WebHelp2/images/lang_english/icon_quote.gif) ![Back to Top Back to Top](templates/4WebHelp2/images/icon_up.gif) |
I'm not sure whether this is a linux prob or what but I have written the following script and I get an error "Undefined Function .." when I run it on my f2s (paid) account. However, when I run it on my local windows computer, it connected to the server specified in $host without an error.
Code: |
<?
$host = "ftphost.ftp.com";
$conn = ftp_connect("$host");
?>
|
I checked the versions of php on the two servers. Mine is version 4.0.6 and the f2s version is 4.1.2 so what's the problem ? If anything, it should work on the f2s servers as their version is higher. Is this related to linux or has the function been taken out of the newer versions of php ? |
|
|
![Offline](templates/4WebHelp2/images/offline.gif) ![View User's Profile View User's Profile](templates/4WebHelp2/images/lang_english/icon_profile.gif) ![Find all posts by willmoss Find all posts by willmoss](templates/4WebHelp2/images/lang_english/icon_search.gif) ![Send Personal Message Send Personal Message](templates/4WebHelp2/images/lang_english/icon_pm.gif) |
![](images/spacer.gif) |
Daniel
Team Member
![](images/rank_6.gif)
![](http://www.4webhelp.net/forums/images/daniel_avatar.php)
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Sun Apr 07, 2002 2:00 pm (22 years, 2 months ago) |
![Reply with Quote Reply with Quote](templates/4WebHelp2/images/lang_english/icon_quote.gif) ![Back to Top Back to Top](templates/4WebHelp2/images/icon_up.gif) |
It's probably because of F2S' firewall. Email them to get them to take the restriction off, since you're on a paid account. |
________________________________
![Image Image](http://www.4webhelp.net/images/daniel_sig.gif) |
|
![Offline](templates/4WebHelp2/images/offline.gif) ![View User's Profile View User's Profile](templates/4WebHelp2/images/lang_english/icon_profile.gif) ![Find all posts by Daniel Find all posts by Daniel](templates/4WebHelp2/images/lang_english/icon_search.gif) ![Send Personal Message Send Personal Message](templates/4WebHelp2/images/lang_english/icon_pm.gif) |
![](images/spacer.gif) |
willmoss
Junior WebHelper
![Junior WebHelper Junior WebHelper](images/rank_1.gif)
Joined: 06 Apr 2002
Posts: 3
|
Posted:
Sun Apr 07, 2002 3:16 pm (22 years, 2 months ago) |
![Reply with Quote Reply with Quote](templates/4WebHelp2/images/lang_english/icon_quote.gif) ![Back to Top Back to Top](templates/4WebHelp2/images/icon_up.gif) |
no because the error returns undefined function which means it's not even recognising the function.
or is there a way to disable specific php functions ? |
|
|
![Offline](templates/4WebHelp2/images/offline.gif) ![View User's Profile View User's Profile](templates/4WebHelp2/images/lang_english/icon_profile.gif) ![Find all posts by willmoss Find all posts by willmoss](templates/4WebHelp2/images/lang_english/icon_search.gif) ![Send Personal Message Send Personal Message](templates/4WebHelp2/images/lang_english/icon_pm.gif) |
![](images/spacer.gif) |
Daniel
Team Member
![](images/rank_6.gif)
![](http://www.4webhelp.net/forums/images/daniel_avatar.php)
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Sun Apr 07, 2002 3:19 pm (22 years, 2 months ago) |
![Reply with Quote Reply with Quote](templates/4WebHelp2/images/lang_english/icon_quote.gif) ![Back to Top Back to Top](templates/4WebHelp2/images/icon_up.gif) |
OK, then that means that PHP was compiled without the ftp functions. There's nothing you can really do about it then. |
________________________________
![Image Image](http://www.4webhelp.net/images/daniel_sig.gif) |
|
![Offline](templates/4WebHelp2/images/offline.gif) ![View User's Profile View User's Profile](templates/4WebHelp2/images/lang_english/icon_profile.gif) ![Find all posts by Daniel Find all posts by Daniel](templates/4WebHelp2/images/lang_english/icon_search.gif) ![Send Personal Message Send Personal Message](templates/4WebHelp2/images/lang_english/icon_pm.gif) |
![](images/spacer.gif) |
willmoss
Junior WebHelper
![Junior WebHelper Junior WebHelper](images/rank_1.gif)
Joined: 06 Apr 2002
Posts: 3
|
Posted:
Wed Apr 10, 2002 4:30 pm (22 years, 2 months ago) |
![Reply with Quote Reply with Quote](templates/4WebHelp2/images/lang_english/icon_quote.gif) ![Back to Top Back to Top](templates/4WebHelp2/images/icon_up.gif) |
So how do I upload something using PHP to my f2s webspace ? the copy() function is useless! |
|
|
![Offline](templates/4WebHelp2/images/offline.gif) ![View User's Profile View User's Profile](templates/4WebHelp2/images/lang_english/icon_profile.gif) ![Find all posts by willmoss Find all posts by willmoss](templates/4WebHelp2/images/lang_english/icon_search.gif) ![Send Personal Message Send Personal Message](templates/4WebHelp2/images/lang_english/icon_pm.gif) |
![](images/spacer.gif) |
|
|
You cannot post new topics in this forum. You cannot reply to topics in this forum. You cannot edit your posts in this forum. You cannot delete your posts in this forum. You cannot vote in polls in this forum.
|
Page generation time: 0.115888 seconds :: 17 queries executed :: All Times are GMT
Powered by phpBB 2.0
© 2001, 2002 phpBB Group :: Based on an FI Theme
| |