User Control Panel - ini.
#1

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

Im sure it is possible, but defiantly not recommended.

Why are you choosing to use Y_ini instead of mysql?
Reply
#3

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

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

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

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

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

ftp_connect
Reply
#9

Contact your host, he should carry this for you
Reply
#10

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?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)