Lines

Displays a visual representation of your Facebook friends and mutual Facebook relationships.




PHP - Multiple includes with one include function

I was looking for a way to include multiple files in one function to tidy up my code, something similar to include('file1.php', 'file2.php'). My solution was to write my own multiInclude() function.



function multiInclude($files){
  $files = split('[,]', $files);
  $files = str_replace(' ', '', $files);

  $arrCount = count($files);

  for($i=0; $i < $arrCount; $i++){
    include_once($files[$i]);
  }
}

multiInclude('test1.php, test2.php, test3.php');



Scheduled wake up call using AppleScript and Skype

This AppleScript calls a predefined number through Skype. Use iCal to set up an event to trigger the application at a scheduled time.

Download

Retrieve a query string with JavaScript

This little piece of JavaScript retrieves the value of a query string, sometimes it is useful to do it client side.

Download

Use PHP to display your unread mail count from Googlemail (or any POP3/IMAP Server).

Make sure you have php5-imap installed.
[sudo apt-get install php5-imap ; /etc/init.d/apache2 restart]

Download