In PHP, how can I trap the following error so that the web page keeps displaying the rest of the page after the error:
«Warning: DOMDocument::load() [function.DOMDocument-load]: Input is not proper UTF-8, indicate encoding ! Bytes: 0xC3 0x2E 0x2E 0x2E in http://www.cyberpresse.ca/rss/257.xml, line: 99 in /home/forum/domains/quebec.com/public_html/michel/test_erreur1_ok.php on line 48»
I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose.
It turns out that Yaho…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions.
Consider email address RFCs:
Look at HTML5 form input element (with type=email) regex pattern: