PHP email validation
12
Another solution recommends using a text match pattern.
This works, but as long as you've got mail.jar in your classpath anyway, you might as well use this technique instead. (Plus, I think it works with older JDK 1.2+, whereas pattern.compile is 1.4+)
Note that it also accepts a comma-separated list of emails, just like a To: or CC: address line would.
This works, but as long as you've got mail.jar in your classpath anyway, you might as well use this technique instead. (Plus, I think it works with older JDK 1.2+, whereas pattern.compile is 1.4+)
Note that it also accepts a comma-separated list of emails, just like a To: or CC: address line would.
12
Here's a simple JavaScript solution to hide your e-mail from many spam scripts while still providing clickable hyperlinks to your visitors.
Web crawlers and visitors with JavaScript disabled will see: me [at] mydomain [dot] com. I've seen a lot of people that just leave it at this, but it seems a bit unprofessional in my opinion. With the following code, we can replace that with a fully functional hyperlink.
Web crawlers and visitors with JavaScript disabled will see: me [at] mydomain [dot] com. I've seen a lot of people that just leave it at this, but it seems a bit unprofessional in my opinion. With the following code, we can replace that with a fully functional hyperlink.
12
Given a PHP array (even a deep nested array), returns a string representation of that array as JavaScript array. Useful when using PHP to output JavaScript.
12
This is a mysql php pager class that I found online somewhere and modified.
11
Enforce loadig fresh script code for the external javascript files. Compatible with HTTP 1.0.
11
Convert an irregular name=value pair string into a formatted array.
11
You can use this function to dynamically generate html "width/height" for use with displaying a thumbnail image usingthe original image. This will help save in making dup images just for display as a thumbnail.
It takes two arguments, the path to where the image is stored and the desired width or height.
Please comment or improve this code
.
It takes two arguments, the path to where the image is stored and the desired width or height.
Please comment or improve this code
.
11
The below code will generate a form dropdown for all 12 months, with the current month selected. Handy for those date pickers!
11
This will give you CheckDNSRR functionality in windows.
This function is only natively available in php while running on Linux.
This function is only natively available in php while running on Linux.
11
If a visitor comes to your site from a search engine such as Google or Yahoo, this function will highlight the keywords in a given text the user used for his search.









