[Tool/Web/Other] [PHP] GetBan (display the banlist on your website)
#27

Quote:
Originally Posted by [mad
MLK (dino-host.net) ]
Quote:
Originally Posted by Boozmang
man i got all the FTP stuff right but i get this error.
Код:
Fatal error: Call to undefined function ftp_connect()
im kinda new to PHP so could you tell me what i did wrong?
thanks,

Boozman
Your doing something wrong were your defining the Hostname and Username/Password:

Код:
	$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";
That bit.
I'd suggest learning PHP before giving others advice.
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
Check the post by Linx a few posts before, he has an answer which will hopefully help you, too:
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.
Congratulations to anybody who read this whole post, but I like to provide answers which actually explain the problem to prevent the same problem occurring again, hopefully you will have learnt something. :P

And Linx, great work on this, it's a really nice script.
Reply


Messages In This Thread
[PHP] Show your banlist on your website w/ FTP - by iLinx - 12.10.2009, 00:23
Re: [PHP] GetBan (display the banlist on your website) - by [mad]MLK - 12.10.2009, 00:25
Re: [PHP] GetBan (display the banlist on your website) - by MadFlavor - 12.10.2009, 02:02
Re: [PHP] GetBan (display the banlist on your website) - by kokkie20 - 12.10.2009, 06:35
Re: [PHP] GetBan (display the banlist on your website) - by getAlife - 12.10.2009, 12:59
Re: [PHP] GetBan (display the banlist on your website) - by Correlli - 12.10.2009, 13:01
Re: [PHP] GetBan (display the banlist on your website) - by kennyist - 12.10.2009, 14:33
Re: [PHP] GetBan (display the banlist on your website) - by evanx10 - 12.10.2009, 15:13
Re: [PHP] GetBan (display the banlist on your website) - by [mad]MLK - 12.10.2009, 15:23
Re: [PHP] GetBan (display the banlist on your website) - by evanx10 - 12.10.2009, 15:28
Re: [PHP] GetBan (display the banlist on your website) - by SanMarinoRP - 12.10.2009, 15:57
Re: [PHP] GetBan (display the banlist on your website) - by evanx10 - 12.10.2009, 16:03
Re: [PHP] GetBan (display the banlist on your website) - by RoamPT - 12.10.2009, 22:17
Re: [PHP] GetBan (display the banlist on your website) - by iLinx - 13.10.2009, 00:32
Re: [PHP] GetBan (display the banlist on your website) - by Calgon - 13.10.2009, 00:49
Re: [PHP] GetBan (display the banlist on your website) - by SergiKirov - 13.10.2009, 01:00
Re: [PHP] GetBan (display the banlist on your website) - by Jakku - 13.10.2009, 12:07
Re: [PHP] GetBan (display the banlist on your website) - by Fj0rtizFredde - 13.10.2009, 12:38
Re: [PHP] GetBan (display the banlist on your website) - by dirkblok - 13.10.2009, 14:20
Re: [PHP] GetBan (display the banlist on your website) - by [mad]MLK - 13.10.2009, 14:55
Re: [PHP] GetBan (display the banlist on your website) - by aspire5630 - 13.10.2009, 16:04
Re: [PHP] GetBan (display the banlist on your website) - by Westie - 13.10.2009, 17:24
Re: [PHP] GetBan (display the banlist on your website) - by iLinx - 13.10.2009, 19:46
Re: [PHP] GetBan (display the banlist on your website) - by PureLuck - 13.10.2009, 21:00
Re: [PHP] GetBan (display the banlist on your website) - by BlueRey - 14.10.2009, 00:32
Re: [PHP] GetBan (display the banlist on your website) - by CJ101 - 14.10.2009, 05:32
Re: [PHP] GetBan (display the banlist on your website) - by ev0lution - 14.10.2009, 06:59
Re: [PHP] GetBan (display the banlist on your website) - by iLinx - 14.10.2009, 20:52
Re: [PHP] GetBan (display the banlist on your website) - by RoamPT - 14.10.2009, 23:39
Re: [PHP] GetBan (display the banlist on your website) - by coole210 - 15.10.2009, 00:42
Re: [PHP] GetBan (display the banlist on your website) - by 26_RUSSS - 07.06.2013, 19:39
Re: [PHP] GetBan (display the banlist on your website) - by BlonduX - 14.08.2014, 18:57

Forum Jump:


Users browsing this thread: 6 Guest(s)