Beginner PHP Tutorial – 157 – Protecting Email with String to Image Part 1

[ad_1]
Facebook –
GitHub –
Google+ –
LinkedIn –
reddit –
Support –
thenewboston –
Twitter –


Posted

in

by

Tags:

Comments

14 responses to “Beginner PHP Tutorial – 157 – Protecting Email with String to Image Part 1”

  1. Zhou Yu Avatar

    well im write the code
    header('Content-type: imgage/jpeg');

    it download the php file..
    anyone have same problem/

  2. Sammy Stone Avatar

    I have a also the same problem, i use Wamp, and i have PHP 5.5.12, the GD library is actived the moment you install wamp server application, and i have the same error as others, in upper left corner of the screen i do not get a number, i get a small corrupted image, and i have found an answer how to fix this problem,just remove the 'header' from code line, and you will receive number 19, like Alex did,here is where i found the answer http://stackoverflow.com/questions/23410195/why-is-content-type-image-jpeg-header-not-working, and i quote a comment: "You are getting an error in your PHP code, and that error is trying to be rendered as an image. Remove the header line for now, and see what gets printed to the page. –  Rocket Hazmat May 1 at 15:02". I hope i helped everyone with this problem.

  3. No_Name Avatar

    Developer tools console in chrome is quite helpful if you want to display request and response headers for the page, but be sure to open it before you go to page…

  4. 0ds01 Avatar

    thank you Alex for the great tutorials 🙂

  5. Allan Cristhian Kath Kipfer Avatar

    i see so xampp is better then WAMP?
    lol i didn't see that coming.
    but is good that u have fixed this problem ;d

  6. Allan Cristhian Kath Kipfer Avatar

    That's good, now tell us how did u fix it! so if anyone get it too, they can fix it

  7. Allan Cristhian Kath Kipfer Avatar

    u have to enable it(on xamp left click on it, will open plugins options) xamp may be, not sure but may be the same.

  8. Allan Cristhian Kath Kipfer Avatar

    if i'm not wrong, you can't use the .php that has the generate code directly,i uave to do like this… ps; $ = minor bigger than.
    $ img src="img_email.php" / $
    on img_email.php is the code that generates the email.
    if u call it directly u get that tiny little image.
    Cause that file img_email.php acts exacly as an image header(mime type :image/jpeg) did u get me?

  9. Allan Cristhian Kath Kipfer Avatar

    have u succeed already with this?

  10. Sohail Khan Avatar

    Help ..!
    m using xampp n whn i use d code
    header('Content-type: image/jpeg')
    .. m getting a small image on d top left of the browser … my gd is enabled n also in php.ini file it is "extension=php_gd2.dll" wit semi-colen removed ..! ..
    any help will b appreciated ..! 🙂 ..

  11. Red Zambala Avatar

    if I write header ('Content-type: image/jpeg'); – geting error 'the image cannot be displayed because it contains errors' (wamp) – and can't move behind this…

  12. Esqarrouth Avatar

    bucky disliked this :p

  13. JemiloII Avatar

    Alex, (no homo, I love you! Cool to find you here!

Leave a Reply

Your email address will not be published. Required fields are marked *