Firephp

18 Aug 2009

We like firebug , We like PHP , if so, We also begin to  like FirePHP !!!

Using firephp , you can debug your php code. Firephp is a firefox plugin which works on firebug console.

In our php life, we know we can use echo function to print or debug the value of a variable and we usually do that. But if there is any header function such as image manipulation, redirection etc, if you use echo or print either it leads into unwanted results or we get the common error, cannot modify header information headers already sent  !!!

The one solution for this is, writing the variable value into a log file and check the log file after execution. But the advantage of fire php is, you can log messages, or value of a variable and can see through firebug console.

For example:

<?php $fire_php->log(‘Enter into function’); ?>

<?php $fire_php->log($result); ?>

You can also categorize your error as warning or error . eg:

<?php $fire_php->warn(‘Variable value is not set’)?> or

<?php $fire_php->error(‘No parameter passed’) ?>

For more go to: http://www.firephp.org/

Tags: , , , , , , , ,

· · · ◊ ◊ ◊ · · ·

Yahoo Media Player

03 Aug 2009

It may be an unwanted post, but I recently got this information while sufing through.. It is nothing but a javascript file from Yahoo. It is duty is to convery every mp3 link inside an html page into mp3 player and it also creates a playlist according the the mp3 links available.

What you have to do, is just add this js file below your html page which contains some mp3 href

<script type="text/javascript" src="http://mediaplayer.yahoo.com/js"></script>
You can see the demo here,if your browser supports flash
http://www.sajithmr.com/downloads/yplayer.html
Take view source to see how does it work
Thanks
Sajith

Tags: , , , , ,

· · · ◊ ◊ ◊ · · ·

وظائف 2011 تحويل العملات برامج برنامج تسريع التحميل برنامج الفلاش برنامج محول الصوتيات عربي hotel 2011 زيادة رواتب العساكر 1431