Creating php file

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Arsench2000
Forum Commoner
Posts: 38
Joined: Sat Sep 15, 2007 8:18 pm

Creating php file

Post by Arsench2000 »

Hello,

Anyone have an example of how to create a php file (with php code) and write there a configuration data for example.

Create a db.php

After creating write there

$host="localhost";

Thanks in advance
User avatar
jaoudestudios
DevNet Resident
Posts: 1483
Joined: Wed Jun 18, 2008 8:32 am
Location: Surrey

Re: Creating php file

Post by jaoudestudios »

Just use the php function file_put_contents
Post Reply