aximbigfan
New Member
- Joined
- Oct 15, 2006
- Messages
- 847 (0.13/day)
- Location
- St. Louis, MO
System Name | QUAD1 |
---|---|
Processor | Intel Core i7 920 |
Motherboard | Asus P6T SE |
Cooling | XIGMATEK HDT-S963 |
Memory | OCZ 3 X 1GB Triple Channel |
Video Card(s) | HIS Radeon HD4670 IceQ |
Storage | Seagate 250GB 7200RPM SATA |
Display(s) | Acer AL1916W 19" Widescreen LCD |
Case | CM Storm Scout |
Audio Device(s) | Onboard |
Power Supply | Corsair 520 Watt |
Software | Windows XP Pro |
Anyone know how to write configuration files in PHP?
I have though of a few ways, but non work really well.
Basically, I just want to write variables and values, to be used by a PHP app for its configuration.
For example
have a webui where the user says that they want "white" to be a background color, and "blue" be the text color. So they click on submit, and the PHP script opens config.php, and writes the following to it...
$bgcolor = "white";
$textcolor = "blue";
Chris
I have though of a few ways, but non work really well.
Basically, I just want to write variables and values, to be used by a PHP app for its configuration.
For example
have a webui where the user says that they want "white" to be a background color, and "blue" be the text color. So they click on submit, and the PHP script opens config.php, and writes the following to it...
$bgcolor = "white";
$textcolor = "blue";
Chris