INI Based UCP! - 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: INI Based UCP! (
/showthread.php?tid=415906)
INI Based UCP! -
Franx - 15.02.2013
Now as we know it is easy for most scripters to create a UCP and connect it to the game's database using MySQL but what about INI files ?
I want to use y_ini on my script except i have no idea if it's possible to create a UCP with it or not ?
I would be glad if you tell me is it possible or not, and point me to some references regarding this issue.
Thanks in advance.
Re: INI Based UCP! -
Hiddos - 15.02.2013
PHP is able to read and write to files, so the only thing you need is access to the player files from your website. Once you got that, use PHP to read the files and echo them to the screen
http://www.php.net/manual/en/ref.filesystem.php
Re: INI Based UCP! -
Franx - 15.02.2013
Quote:
Originally Posted by Hiddos
PHP is able to read and write to files, so the only thing you need is access to the player files from your website. Once you got that, use PHP to read the files and echo them to the screen
http://www.php.net/manual/en/ref.filesystem.php
|
That's great i didn't know PHP can write to files too i thought it only reads.
Thank you!
Re: INI Based UCP! -
Franx - 15.02.2013
Quote:
Originally Posted by Y_Less
YSI comes with php code to read ini files.
|
Does it work flawlessly ?
Re: INI Based UCP! -
HarrisonC - 15.02.2013
It is possible but I would highly recommend MySQL due to its built in PHP functions.
Re: INI Based UCP! -
Bikken - 15.02.2013
Yes, y_php is available in the YSI library, specifically designed for PHP supports with SA-MP.
Though, I'd prefer MySQL for its speed.
Re: INI Based UCP! -
Franx - 15.02.2013
I prefer MySQL too myself but i don't want to use it.