html
Video tag on Safari 4 Welcome Page
I was looking at the Safari 4 Welcome page in Firefox 3, but for some reason, it didn’t work. I was poking around it’s sparse html and thought I was looking for a quick time movie. I was wrong. You’ll find this in the source: <div id="safari"> <div> <video id="compass" src="http://images.apple.com/safari/welcome/media/compass.mov" width="256" height="256"> <img src="http://images.apple.com/safari/welcome/images/safari.jpg" [...]
PHP Challenge – Output with no php-functions
I found an interesting PHP Challenge on TalkPHP and PHPClub.The challenge is that you need to make a multiplication table (you remember those form being a kid in school, I imagine) but there are some conditions. No PHP functions used at all (both built-in and extensions) No language constructs for outputting data used at all (like [...]
syntax error [Break on this error] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML…3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
This totally ambiguous error is a pretty simple fix but surprisingly, not many people have said anything about it. The error comes from Firebug. The break on this error isn’t a part of the error but it is in the firebug copy dump. syntax error [Break on this error] <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML…3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”> For instance, [...]
Hide Email Addresses with HTML Comments
By Ryan on August 18, 2009
When I need to put my email in a public place, I like to hide my email address. One of my favorite ways to hide an email is to use HTML comments. I wrote this little PHP snippet accepts an email address and breaks it apart with HTML comments. function hide_email($email) { $email = trim($email); $parts = [...]
Posted in PHP | Tagged comments, email, hide, html, PHP | Leave a response