Showing posts with label php. Show all posts
Showing posts with label php. Show all posts

Sunday, September 20, 2009

PHP Syntax Highlighting

highlight_string('<?php phpinfo(); ?>');


will result in give the html required to color the syntax appropriately


<?php phpinfo(); ?>

>



So handy!

Wednesday, June 17, 2009

Useful PHP - jsCheck

I just came accross this PHP class, it is definetly useful for web 2.0 style sites that rely heavily on javascript. Using only PHP it checks to see if javascript is enabled.

This class can be used to check whether Javascript is enabled in the browser.

It can generate a HTML form with Javascript to automatically submit it when the page is load.

The class can set cookies or session variables to avoid the need to generate the form to check again if the browser has Javascript enabled.



check it out here