Results 1 to 5 of 5

Thread: help with this GD image thing... (thing?!)

  1. #1

    help with this GD image thing... (thing?!)

    Hi everyone...

    So I recently felt the urge to try out the GD image stuff.

    It all works had a few ups and downs trying to get it quote text from a txt file thats sorted now its just the outcome that annoys me....

    the first line of the text file is ok. but when its on its 2nd or further down line it shows a funny little symbol...

    What it looks like :


    the symbol, letter or icon at the end...

    I got rid of the first little icon that looked like v ontop of a T using:
    PHP Code:
     $string str_replace("\n","",$items[$item]); 
    and i can get rid of the "r" looking one using
    PHP Code:
     $string str_replace("\r","",$items[$item]); 
    but when i put them together like:

    PHP Code:
     $string str_replace("\n","",$items[$item]);
    $string str_replace("\r","",$items[$item]); 
    it doesnt work...

    How can i remove it... or atleast combine the two str_replace functions together?

    Please Help!

    Thank you

    Chris S J
    My Photography
    Twitter

    K-Emmys-06: Best "Newbie"

  2. #2
    Post whole script and what do you mean "it doesn't work"?
    Can you be more specific?
    Web Design and Web Development blog
    Designer Notice: Browser List for design compatibility

  3. #3
    How are you getting your items array?
    got pwnt?

  4. #4
    oh this is easy:
    PHP Code:
    $string str_replace("\n","",$items[$item]);
    $string str_replace("\r","",$string); 
    That will work, silly mistake
    Web Design and Web Development blog
    Designer Notice: Browser List for design compatibility

  5. #5
    I cant belive I left that out!!!!

    Thanks so much alexgeek!

    it works fine now, ive put a little thank you in my footer

    Edit: I notice your in Wales too cool
    Last edited by chrisclick; December 30th, 2007 at 10:49 PM.
    My Photography
    Twitter

    K-Emmys-06: Best "Newbie"

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Home About kirupa.com Meet the Moderators Advertise

 Link to Us

 Credits

Copyright 1999 - 2012