SA-MP Forums Archive
User Control Panel - ini. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: User Control Panel - ini. (/showthread.php?tid=480360)



User Control Panel - ini. - Marcuse - 10.12.2013

Hi all!
I was just wondering is there any possible way to make a user control panel if im using y_ini and r there any tuts on it or templates


Re: User Control Panel - ini. - DarrenReeder - 10.12.2013

Im sure it is possible, but defiantly not recommended.

Why are you choosing to use Y_ini instead of mysql?


Re: User Control Panel - ini. - CriticalRP - 10.12.2013

http://php.net/manual/en/function.parse-ini-file.php

Will output something similiar to
PHP код:
Array
(
    [
one] => 1
    
[five] => 5
    
[animal] => Dodo bird
    
[path] => /usr/local/bin
    
[URL] => http://www.example.com/~username
    
[phpversion] => Array
        (
            [
0] => 5.0
            
[1] => 5.1
            
[2] => 5.2
            
[3] => 5.3
        
)

So in case you want to seperate it, just do
PHP код:
$getData parse_ini_file("sample.ini");
print_r($getData['Password']); // Will output the password varraible that is in sample.ini 



Re: User Control Panel - ini. - Marcuse - 10.12.2013

but how am i going to parse a file on a remote server from my web host to my srv host?


Re: User Control Panel - ini. - Astralis - 10.12.2013

You should better use MySQL for that since it's much easier.


Re: User Control Panel - ini. - Marcuse - 10.12.2013

dude im not good with mysql plus ive got a finished mod so i cant change now pls tell me how to connect on a remote server


Re: User Control Panel - ini. - DarrenReeder - 10.12.2013

Are you sayig the web host and .ini files are on a seperate server? If so, then you should learn MySQL.


Re: User Control Panel - ini. - Marcuse - 10.12.2013

ftp_connect


Re: User Control Panel - ini. - CriticalRP - 10.12.2013

Contact your host, he should carry this for you


Re: User Control Panel - ini. - Marcuse - 10.12.2013

dont think they will help beacuse i dont know the function how to parse a file on a remote server, i know how to connect on a ftp but how to parse a file on it i mean ini?