• Sign Up
    • OpenID
    • Google
    • Yahoo!
    • Facebook
    • Ning
  • Discuss
  • New Topic
  • Categories
  • Forum
  • Debate
  • Languages
    • English
    • Finnish
    • Arabic
    • Italian
    • Korean
    • French
    • Chinese(Traditional)
    • Chinese(Simplified)
    • Swedish
    • Czech
    • Hindi
    • Dutch
    • Norwegian
    • Russian
    • Croatian
    • German
    • Japanese
    • Bulgarian
    • Portuguese
    • Chinese
    • Spanish
    • Greek
  • Login

Ok

Ads

affordable seo

Ask a Question



Welcome New Members!

zhangwigs

chandan...

jimmy b...

moneyma...

stacyjohn

Emile

Tiffany

CBIL360

Lawsons

christi...

meiwei

kingkhan

brendaj...

swati

sunnyjohn

conniejohn

sunnyping

fengmi

califor...

hengjiao


Hot Topics

array code column content Custom database drupal element field file form function index jquery module MySQl node page PHP query server something SQL string table theme time user VALUE way

 

 

 

Reason

 

How do I read .ini files in PHP?

Joesph

Joesph
I'd like to read .ini files as my config files. Does PHP provide an easy way to do this?

I will create Ultimate Link Pyramid of 100+ Web Properties and 5000+ Wiki Articles | Best Link Pyramid Service @! for $12


In PHP | 1 Reply | 4486 Views | 1 month ago
ini PHP
  • Report Abuse
  • Email
  • Add to Favorites

Rate Now:   1 2 3 4 Average Rating: 0.00 / 3 ratings


Replies:

Jordan

Jordan
Yes, use the parse_ini_file() function.

/* load the config settings and dump the values */
$config = parse_ini_file('sample.ini', true);


You can learn more about it on php.net or here: Reading PHP .ini Files

  • Reply to Answer
  • 1 month ago
  • Report Abuse
  • By Jordan

Rate Now: 1 2 3 4 Average Rating: 0.00 / 0 ratings

Replied by Jordan 1 month ago


Your Response:

Join

Login


 

Related Questions

How To Encode Your PHP Files
2 Answers | 9166 Views
2 PHP files access same file, what happens?
1 Answer | 4142 Views
Is it better to have the slave for read-only queries?
0 Answers | 2915 Views
Is there a simple way to read an XML file into an array with PHP ?
0 Answers | 3614 Views
Is it possible to read/write to/from more then one mysql table in one query...
0 Answers | 3329 Views
Disclaimer | Privacy Policy | Terms | ■ RSS | Sitemap | Contact Us | ■ Invite | Create your Widget | ■ Twitter | ■ Facebook
© 2013 PHPInformer. All rights reserved

PHPInformer does not evaluate or guarantee the accuracy of any PHPInformer content. Click here for the Full Disclaimer.