.htaccess tutorial reference and cheat sheet
Thursday, January 21st, 2010Best reference of all things .htaccess perishablepress
Best reference of all things .htaccess perishablepress
The iPhone Safari browser supports several extra protocols to launch their corresponding apps:
Apple documentation on iPhone integration
The ability for a user to be on a site and have the web server cause an action to occur on the site, via ‘push technology‘, is soon to be realized at the HTML 5 leve. Although this type of interaction has always been available; through Flash, Java and Javascript. It’s finally being brought-up to the HTML level as noted in W3C documentation. The Stray Orange blog has a good post relating to HTML 5 push technology.
$xml_data = preg_replace("/>\s+</", "><", $xml_data);
Removes all the whitespace, tabs and newlines between the nodes from an XML file. A lot of PHP XML parsers tend to parse the white space, which can cause errors. Adding the function before the PHP XML data handler executes will prevent those issues from arising.
Update Add: ?hd=1 to the end of the YouTube video URL and if it is available, an HD version will play.
Add:&fmt=18 to the end of the YouTube video URL will play the video in HQ (high quality).
Add:&fmt=22 to the end of the YouTube video URL will play the video in HD (high definition).
Regular: http://www.youtube.com/watch?v=SVvx13dpTEA
High Quality: http://www.youtube.com/watch?v=SVvx13dpTEA&fmt=18
High Definition: http://www.youtube.com/watch?v=SVvx13dpTEA&fmt=22
If a video is not available in HQ or HD, then they will not be able to be shown in those formats.