Ryan Rampersad
Opinions, Thoughts and Ideas - PHP, Java and Javascript
  • Home
  • About
  • Contact
Browse: Home / html

html

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

Video tag on Safari 4 Welcome Page

Video tag on Safari 4 Welcome Page

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" [...]

Posted in Apple, Browsers | Tagged html, safari 4, video tag | 1 Response

PHP Challenge – Output with no php-functions

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 [...]

Posted in PHP | Tagged constructs, functions, html, includes, php challenge | Leave a response

syntax error [Break on this error] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML…3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

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, [...]

Posted in Abstract | Tagged firebug, Firefox, html, syntax error | 15 Responses

Recent Posts

  • Logitech Performance MX Mouse Review
  • Why you shouldn’t use your debit card online
  • How The Apple Event Will Go
  • Senior Year Class Schedule
  • PHP & JSON – Fatal error: Cannot use object of type stdClass as array

Archives

  • August 2010
  • July 2010
  • June 2010
  • May 2010
  • April 2010
  • March 2010

Tags

Apple CakePHP CSS Error Firefox fluff friends fluff grabber Google Java Javascript Microsoft Mootools PHP review Tips ubuntu update Windows windows 7 Wordpress

Search

Meta

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org
QC: