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 = str_split($email, 3);
[...]

Posted in PHP | Tagged comments, email, hide, html, PHP | Leave a response

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" width="200" height="200" alt="Safari 4" />
</video>
</div>
</div>

That’s [...]

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

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, you won’t [...]

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

Recent Posts

  • Create a Branch and Switch to it in Git
  • Setting Build Path has Encountered a Problem in Eclipse
  • Queue Ajax Requests in Mootools
  • CakePHP 1.3 Helper $text truncate error
  • CakePHP – 1and1 – 500 Internal Server Error

Tags

(fluff)Grabber 2.7 2009 Apple array beta blog blogs Browser Browsers CakePHP chrome CSS Design Error Firefox fluff friends fluff grabber free Google html iGoogle internet explorer Java Javascript mac Microsoft Mootools music PHP plugin plurk program review School SEO solution string tip Tips update vista Windows windows 7 Wordpress

Search

Meta

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