Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    Regular Coder
    Join Date
    Apr 2005
    Posts
    388
    Thanks
    0
    Thanked 0 Times in 0 Posts

    creating an image

    Hi I am trying to create an image, this is all I get, anybody got any ideas what can be going on here?

    JFIF>CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), default quality C    $.' ",#(7),01444'9=82<.342C  2!!22222222222222222222222222222222222222222222222222" ĵ}!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz  ĵw!1AQaq"2B #3Rbr $4%&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ??/·^džiLy$&gcI+I5'T]G?xkV)k OЩ&A<B( OЩ&A<B( OЩ&A<B( OЩ&A<B

  • #2
    Senior Coder
    Join Date
    Aug 2003
    Location
    One step ahead of you.
    Posts
    2,815
    Thanks
    0
    Thanked 3 Times in 3 Posts
    I'd say it's the image displayed as text. If you are printing it on a page you might have forgotten to set the correct header:
    PHP Code:
    header('Content-Type: image/jpeg'); 
    I'm not sure if this was any help, but I hope it didn't make you stupider.

    Experience is something you get just after you really need it.
    PHP Installation Guide Feedback welcome.

  • #3
    Regular Coder
    Join Date
    Apr 2005
    Posts
    388
    Thanks
    0
    Thanked 0 Times in 0 Posts
    that's what I was thinking, but not the source of the problem, mine was identical to yours, I have tried putting it as the very first line, and also as the line previous to the imageJPEG(), but both results are the same.
    When I pull the page up in Firefox, I get the following message,
    The image http://www.mydomain.com/favnet.php cannot be displayed, because it contains errors.

    any other ideas?
    thanks.

  • #4
    Senior Coder
    Join Date
    Aug 2003
    Location
    One step ahead of you.
    Posts
    2,815
    Thanks
    0
    Thanked 3 Times in 3 Posts
    Could you post the code?
    I'm not sure if this was any help, but I hope it didn't make you stupider.

    Experience is something you get just after you really need it.
    PHP Installation Guide Feedback welcome.

  • #5
    Regular Coder
    Join Date
    Apr 2005
    Posts
    388
    Thanks
    0
    Thanked 0 Times in 0 Posts
    found a way around it, working fine. thanks for your help.

  • #6
    New to the CF scene
    Join Date
    Jun 2005
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i'm having the same problem, could you please let me know how you worked around that problem??? it's urgent.

    thnx

  • #7
    Regular Coder
    Join Date
    Apr 2005
    Posts
    388
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Joe bob,
    I got around it by taking the php code and putting it on a different page, I guess I was passing some data to the browser that I couldnt see, before the headers function.

    try it on a separate page, and see if it doesnt work.


  •  

    Posting Permissions

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