Results 1 to 10 of 10
Threaded View
-
7th Jun 2010, 03:17 AM #1OPMemberWebsite's:
litewarez.net litewarez.com triniwarez.comA small tip in PHP
Thought i would share a small tip with you about php that not many people know.
Create a file called config.php
and in that file place the following.
PHP Code:return array(
'db' => array(
'host' => 'litewarez.com',
'user' => 'usr'
//ETC
),
);
PHP Code:$config = include 'config.php';
echo $config['db']['host']; // litewarez.com
litewarez Reviewed by litewarez on . A small tip in PHP Thought i would share a small tip with you about php that not many people know. Create a file called config.php and in that file place the following. return array( 'db' => array( 'host' => 'litewarez.com', Rating: 5Join Litewarez.net today and become apart of the community.
Unique | Clean | Advanced (All with you in mind)
Downloads | Webmasters
Notifications,Forum,Chat,Community all at Litewarez Webmasters
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
OS for a small VPS
By RNBxBeatz in forum Server ManagementReplies: 11Last Post: 31st Aug 2011, 03:19 AM -
Need Small help with a Small JS code
By Netguy in forum Web Development AreaReplies: 2Last Post: 5th Nov 2010, 10:08 AM -
Small Bug?
By DeLeTeD in forum Feedback and SuggestionsReplies: 8Last Post: 9th Oct 2010, 08:16 AM -
What's with the small i's?
By Gempis in forum General DiscussionReplies: 14Last Post: 30th Jun 2010, 06:05 PM -
Small GFX Help
By Cooper in forum Community CooperativeReplies: 0Last Post: 19th Apr 2010, 09:52 PM
themaCreator - create posts from...
Version 3.48 released. Open older version (or...