Archive for October, 2006

Songbird

Monday, October 16th, 2006
Song Bird

Here’s a web-based winamp style media player which is cross platform running on Windows, Linux and Mac. If you’d like to get to know the features supported by Songbird, head over to: www.songbirdnest.com/features
Songbird is a desktop Web player, a digital jukebox and Web browser mash-up. Like Winamp, it supports extensions and skins feathers. Like Firefox®, it is built from Mozilla®, cross-platform and open source.

Link: www.songbirdnest.com

Get Songbird

High Performance PHP

Thursday, October 12th, 2006

Did you know that the fastest way to check in PHP to see if you’re running on windows is:

$iswindows = DIRECTORY_SEPARATOR == '\\\\';

or the fastest way to get the time without even calling a function is:

$currenttime= $_SERVER['REQUEST_TIME'] ;

These are some of the optimization methods mentioned over the slides by Ilia Alshanetsky on High Performance PHP. Browse the slides to learn more optimizations you can perform on your code to improve performance:

http://ilia.ws/files/ez_performance.pdf

links for 2006-10-12

Thursday, October 12th, 2006

links for 2006-10-11

Wednesday, October 11th, 2006

links for 2006-10-10

Tuesday, October 10th, 2006

links for 2006-10-08

Sunday, October 8th, 2006

links for 2006-10-07

Saturday, October 7th, 2006

How to detect if headers are already sent in PHP

Friday, October 6th, 2006
I’m sure most of us have encountered the following error message while playing with the header function in PHP

“Cannot modify header information - headers already sent by …”

How can we detect whether the script has already sent out headers? PHP has a function headers_sent() which allows you to check if the headers are already sent out before you take any action. Here’s how you could use the function in your code:

if(headers_sent())
{ //if headers already sent out print some message.
echo "Please go to yahoo.com“;
}
else{
//send the user automatically to test.php
header(’Location: http://yahoo.com’);
}

The code above checks to see if PHP has already sent out headers anywhere else. If so, the script will print a message on screen, else the user is automatically redirected to the yahoo.com.

Google Code Search

Friday, October 6th, 2006
Google Code Search

Google has launched a new service called code search. You can search for code on the internet using this service. Check it out at Google Code Search

links for 2006-10-06

Friday, October 6th, 2006

About Me

Here's my blog on stuff I keep finding on the Web. More

Want to subscribe?

 Subscribe in a reader Or, subscribe via email:
Enter your email address:  
On the Go? Get this on your Widsets: Add to my Widsets
Find entries :
Page 1 of 212»