INI Based UCP!
#1

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.
Reply
#2

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
Reply
#3

Quote:
Originally Posted by Hiddos
View Post
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!
Reply
#4

Quote:
Originally Posted by Y_Less
View Post
YSI comes with php code to read ini files.
Does it work flawlessly ?
Reply
#5

It is possible but I would highly recommend MySQL due to its built in PHP functions.
Reply
#6

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.
Reply
#7

I prefer MySQL too myself but i don't want to use it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)