[ad_1]
Facebook –
GitHub –
Google+ –
LinkedIn –
reddit –
Support –
thenewboston –
Twitter –
Beginner PHP Tutorial – 157 – Protecting Email with String to Image Part 1
by
Tags:
Comments
14 responses to “Beginner PHP Tutorial – 157 – Protecting Email with String to Image Part 1”
-
well im write the code
header('Content-type: imgage/jpeg');it download the php file..
anyone have same problem/ -
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.
-
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…
-
thank you Alex for the great tutorials 🙂
-
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 -
That's good, now tell us how did u fix it! so if anyone get it too, they can fix it
-
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.
-
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? -
have u succeed already with this?
-
fck u n ur lang!
-
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 ..! 🙂 .. -
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…
-
bucky disliked this :p
-
Alex, (no homo, I love you! Cool to find you here!
Leave a Reply