| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| Senior Member Join Date: Jul 2005 Location: lebanon
Posts: 2,458
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | How 2 put emails inside an image to stop spam emails in an image to fight spam Hello again i want to fetch an email from my database and i want to place it for public inside an image to fight spam bots just like facebook they put images in images how can do so anyone knows a simple script or idea how to do this ?
__________________ Download free MP3 _____________ Get unique visitors 4 NPs (over 800 satisfied) << Check the Holidays offer _____ Email me for fast response ryan [at] ryansdistrict.com ________ My 9000NPs R 4 SALE cheap- Contact me! |
| |
| | #2 (permalink) |
| NamePros Member Join Date: Dec 2007
Posts: 26
![]() | You can do it in php with the gd2 library: PHP Code: |
| |
| | THREAD STARTER #3 (permalink) |
| Senior Member Join Date: Jul 2005 Location: lebanon
Posts: 2,458
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | umm i saved that code as index.php this error appeared Fatal error: Call to undefined function imagecreate() in C:\wamp\www\index.php on line 4 later on i called it from another php file by echo '<img src=index.php>'; have i done anything wrong ? cuz the images is not appearing as expected Regards
__________________ Download free MP3 _____________ Get unique visitors 4 NPs (over 800 satisfied) << Check the Holidays offer _____ Email me for fast response ryan [at] ryansdistrict.com ________ My 9000NPs R 4 SALE cheap- Contact me! |
| |
| | #4 (permalink) | ||||
| NamePros Legend Join Date: Dec 2005 Location: Philippines - www.Nabaza.com
Posts: 19,785
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | try any of the remotely hosted online tools that i use http://services.nexodyne.com/email/ http://www.signaturegenerator.net/ i have this on my computer the one that you can host, i'll look for it. give me a moment pls.. found it something like this: http://email.liquism.com/ they removed the downloads i still got them on my pc pm me your email and i will send it to you via attachment right away.
????: NamePros.com http://www.namepros.com/showthread.php?t=410946 http://digitalcolony.com/lab/maskema...mailASCII.aspx
Last edited by weblord; 12-26-2007 at 05:42 PM.
| ||||
| |
| | #5 (permalink) | ||||
| NamePros Member Join Date: Dec 2007
Posts: 26
![]() |
Try Weblord's solution : ) | ||||
| |
| | #6 (permalink) | ||||
| NamePros Legend Join Date: Dec 2005 Location: Philippines - www.Nabaza.com
Posts: 19,785
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | thanks
| ||||
| |
| | THREAD STARTER #7 (permalink) |
| Senior Member Join Date: Jul 2005 Location: lebanon
Posts: 2,458
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | umm actually remotly hosted scripts will not work as they should i checked the one weblord posted i dont think will solve my problem i want to directly fetch the result and through it inside the images i tried it on an other server take a look at the errors am getting http://ryansdistrict.com/temp/ << code page http://ryansdistrict.com/temp/index2.php << result
__________________ Download free MP3 _____________ Get unique visitors 4 NPs (over 800 satisfied) << Check the Holidays offer _____ Email me for fast response ryan [at] ryansdistrict.com ________ My 9000NPs R 4 SALE cheap- Contact me! |
| |
| | #8 (permalink) | ||||
| NamePros Member Join Date: Dec 2007
Posts: 26
![]() |
| ||||
| |
| | #9 (permalink) | ||||
| NamePros Legend Join Date: Dec 2005 Location: Philippines - www.Nabaza.com
Posts: 19,785
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | first one works if you only need to generate once it's not practical to install on your site, but otherwise if you're offering the free services on your site then it's ok.
| ||||
| |
| | #10 (permalink) |
| NamePros Regular Join Date: May 2005
Posts: 330
![]() | This doesn't solve his problem. He needs to grab emails from his database meaning he doesn't actually know what the results will be, as well as the fact that that service only provides images for certain email services like gmail, aol, etc. I would contact your host about enabling GD Library if I were you. You could make something like the following: emailname(at)something.com so its not a link. ????: NamePros.com http://www.namepros.com/showthread.php?t=410946 Here is some php code to do something like that: PHP Code: |
| |
| | THREAD STARTER #11 (permalink) | ||||
| Senior Member Join Date: Jul 2005 Location: lebanon
Posts: 2,458
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
what i am going to use this is for the next update of http://www.namepros.com/programming/...-released.html i want to include it on the site's details page for people to contact webmaster when they link exchange Do u think using the (at) thing a good idea
__________________ Download free MP3 _____________ Get unique visitors 4 NPs (over 800 satisfied) << Check the Holidays offer _____ Email me for fast response ryan [at] ryansdistrict.com ________ My 9000NPs R 4 SALE cheap- Contact me! | ||||
| |
| | #12 (permalink) |
| NamePros Regular Join Date: May 2005
Posts: 330
![]() | I have seen it on plenty of sites. Without the use of GD Library to produce an image of it, it basically would be the only way around it. Maybe adding spaces instead like: name @ email.com?? The same thing just with " " instead of "(at)" |
| |
| | #13 (permalink) |
| New Member Join Date: Dec 2007
Posts: 11
![]() | I gave it a go: http://www.zero-cms.com/Test/gdlib/test.php As you can see that method works, and I can't imagine it being much harder replacing $string (The string that is added to the image) with a result from a mysql query. Here's the sauce: PHP Code: As you can see, I started to comment the code, although I got bored. =[ Rob. |
| |
| | #14 (permalink) |
| New Member Join Date: Dec 2007
Posts: 11
![]() | I had a go of this myself: http://www.zero-cms.com/Test/gdlib/test.php Now this works, and I don't see why setting $string (the variable that is printed to the image) to a result from a MYSQL query would be difficult. Here's the Sauce: PHP Code: ![]() Do with it what you will. |
| |
| | #15 (permalink) |
| New Member Join Date: Dec 2007
Posts: 11
![]() | Test Have a look at this. http://www.zero-cms.com/Test/gdlib/test.php It would be easy enough to change the string to come from a mysql query. Source: PHP Code: |
| |
| | #16 (permalink) | ||||
| i love automation Join Date: Nov 2007 Location: xrvel.com
Posts: 1,620
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | If your email is admin@example.com , why don't let the javascript do that. PHP Code:
__________________ | ||||
| |
| | THREAD STARTER #17 (permalink) |
| Senior Member Join Date: Jul 2005 Location: lebanon
Posts: 2,458
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | GD didnt work not sure why although other scripts i got running on that server got image verificationanyways does the code below prevent spammers ? <script type="text/javascript"> document.write('admin'+'@'+'exa'+'mple'+'.c'+'om') ; </script>
__________________ Download free MP3 _____________ Get unique visitors 4 NPs (over 800 satisfied) << Check the Holidays offer _____ Email me for fast response ryan [at] ryansdistrict.com ________ My 9000NPs R 4 SALE cheap- Contact me! |
| |
| | #18 (permalink) | ||||
| i love automation Join Date: Nov 2007 Location: xrvel.com
Posts: 1,620
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
http://www.tracenic.com/xrvel/gd/draw.php?t={TEXT} for example is you want to generate image "hello_world", replace {TEXT} with "hello_world". Next, save the image to local disk & upload it somewhere else. & you can use it in forum, etc. About the javascript, it works imo.
__________________ | ||||
| |
| | #19 (permalink) |
| New Member Join Date: Dec 2007
Posts: 11
![]() | Bah, it hasn't been letting me post in this forum since I first joined. http://www.zero-cms.com/Test/gdlib/test.php If you want the files PM me, and i'll send them to you. It should be very easy to replace the string that is placed on the image with a result from a MYSQL query. PHP Code: ![]() Also http://theserverpages.com/php/manual/en/ref.image.php if you need help with changing functions ect. |
| |