By Ryan on February 25, 2009
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" width="200" height="200" alt="Safari 4" />
</video>
</div>
</div>
That’s [...]
Posted in Apple, Browsers | Tagged html, safari 4, video tag
By Ryan on January 7, 2009
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 echo, print, [...]
Posted in PHP | Tagged constructs, functions, html, includes, php challenge
By Ryan on September 6, 2008
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, you won’t [...]
Posted in Abstract | Tagged firebug, Firefox, html, syntax error
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 = str_split($email, 3);
[...]
Posted in PHP | Tagged comments, email, hide, html, PHP | Leave a response