View Single Post
Old 11-18-2008, 11:45 AM   #4 (permalink)
Kalle
The Frequenter
Zend Certified 
 
Join Date: Sep 2007
Location: Denmark
Posts: 352
Thanks: 8
Kalle is on a distinguished road
Default

PHP Code:
<?php
    $settings 
= @file('/path/to/settings/file.txt');

    if(!
$settings)
    {
        die(
'Unable to read file');
    }

    if(
strtolower($settings[4]) == 'colored')
    {
        
/* then do */
    
}
    else
    {
        
/* else do */
    
}
?>
something like that should do I guess :)
__________________
Send a message via MSN to Kalle Send a message via Skype™ to Kalle
Kalle is offline  
Reply With Quote