|
|
|
Main Content |
| Tutorial: Reading INI files with PHP By Diablosblizz |
Another easy tutorial, but it can be useful to store information outside of a MySQL database!
First up, let's make the ini file:
Alright, you MUST save that as a .ini file. Now for the PHP.
|
Difficulty: Easy
Views: 1845
|
|
|
Comments |
| Posted on Sunday 30th December 2007 at 09:00 PM |
zerocool
 |
nice tut, but i have a little question.
In PHP i can insert values on this ini files? |
| Posted on Sunday 30th December 2007 at 10:00 PM |
MOD-Shadow
 |
try looking here :) i think i saw a function/class that has a write function.
http://us2.php.net/parse_ini_file |
| Posted on Monday 31st December 2007 at 02:07 PM |
Dean
 |
good tutorial. |
| Posted on Monday 31st December 2007 at 04:37 PM |
Diablosblizz
 |
Zerocool, you could use the fopen function. |
| Posted on Monday 31st December 2007 at 06:44 PM |
MOD-Shadow
 |
if you use fopen it'll open the whole file, though you could most likely use file(); then check which line contains the content you want to edit. |
| Posted on Tuesday 1st January 2008 at 02:53 AM |
Diablosblizz
 |
That's true as well. |
| Posted on Wednesday 5th March 2008 at 03:41 AM |
MOD-Shadow
 |
Also, my random outcome i got bored with
http://hrwp.zapto.org:6020/demo/index.php |
|
|
Add Comment |
|
You must be logged in to post a comment. |
|
|