how would i change the font color in this pho script?

Discussion in 'OT Technology' started by MP, Mar 6, 2003.

  1. MP

    MP New Member

    Joined:
    Sep 10, 2002
    Messages:
    34,377
    Likes Received:
    0
    Location:
    Silicon Valley
    how would i change the font color in this php script?

    Code:
    <?
        $delim = "\n";
        $quotefile = "quotes.txt";
        // okay, let's get going. 
        $fp = fopen($quotefile, "r");
        $contents = fread($fp, filesize($quotefile)); 
        $quote_arr = explode($delim,$contents); 
        fclose($fp); 
        // initiate randomness
        srand((double)microtime()*1000000); 
        // generate random quote index 
        $quote_index = (rand(1, sizeof($quote_arr)) - 1); 
        // get quote at $quote_index and return it 
        $herequote = $quote_arr[$quote_index]; 
        echo $herequote; 
    ?> 
    
    :wiggle:
     
    Last edited: Mar 6, 2003
  2. 5Gen_Prelude

    5Gen_Prelude There might not be an "I" in the word "Team", but

    Joined:
    Mar 14, 2000
    Messages:
    14,519
    Likes Received:
    1
    Location:
    Vancouver, BC, CANADA
    Look at all those pretty colors!

    :rofl:
     
  3. MP

    MP New Member

    Joined:
    Sep 10, 2002
    Messages:
    34,377
    Likes Received:
    0
    Location:
    Silicon Valley
  4. MP

    MP New Member

    Joined:
    Sep 10, 2002
    Messages:
    34,377
    Likes Received:
    0
    Location:
    Silicon Valley
    that was clever though :)
     
  5. Kabuko

    Kabuko Guest

    Just where it echoes echo font tags around it with set colors? Not so great, but works. You could also do CSS similarly I suppose.
     
  6. 5Gen_Prelude

    5Gen_Prelude There might not be an "I" in the word "Team", but

    Joined:
    Mar 14, 2000
    Messages:
    14,519
    Likes Received:
    1
    Location:
    Vancouver, BC, CANADA
    It was either that or ask you how this relates to Vietnamese soup. I think I made the right choice.
     
  7. MP

    MP New Member

    Joined:
    Sep 10, 2002
    Messages:
    34,377
    Likes Received:
    0
    Location:
    Silicon Valley
    hehe...check out my plate frame
    [​IMG]
     
  8. 5Gen_Prelude

    5Gen_Prelude There might not be an "I" in the word "Team", but

    Joined:
    Mar 14, 2000
    Messages:
    14,519
    Likes Received:
    1
    Location:
    Vancouver, BC, CANADA
    Damn! I made the wrong choice! :rofl:
     

Share This Page