14.10.2009, 06:59
Quote:
Originally Posted by [mad
MLK (dino-host.net) ]
Quote:
Код:
$ftp_host = "serverhostname ex: could be a ip address"; //put the ip / hostname to your ftp here $ftp_user = "ftp login"; //put your login here $ftp_pass = "ftp password"; //put your password here $banfile = "samp.ban"; |
As stated by many users before, it really does surprise me that you run a hosting company, and more so that you're apparently coding a PHP panel for it, when you obviously don't have basic PHP knowledge (yes, basic, that error message isn't rocket science, yet you provide a completely incorrect answer showing no PHP skills/knowledge)
[/tinyrant]
Anyway, in reply to Boozmang's problem, if it hasn't been fixed already.
****** goes a long way, obviously since you're new to PHP you might have thought it would be better to post here first, however MLK is completely wrong, it's nothing to do with the values you've set as the hostname/username/password.
Hinted by the error message (Call to undefined function ftp_connect()), it's saying that "ftp_connect" (the PHP function used to connect to your FTP server) is an undefined function (in other words, the function can't be found).
This is usually because your web host (or, perhaps you) used/compiled a version of PHP without FTP enabled (I think the compile option is "--enable-ftp"). If you host it, ****** that error message and you'll find some useful information on how to enable it. If you have it hosted by a web hosting company, contact them (support ticket, email, etc.) and they should be able to enable it for you.
This will also help any other users having the same problem.
Quote:
Originally Posted by `DivX
Parse error: syntax error, unexpected T_STRING in /home/****/domains/*******/public_html/banlist.php on line 14
|
Quote:
Originally Posted by Linx [Stunt Revolution
]
that line 14 error is becuase its missing a semicolon , i got it too when i first uploaded this on here when i realized i accidently took it out (backspace = fail) , so just add it to the end of it. |
And Linx, great work on this, it's a really nice script.