Virus In Training


Second Generation Php Logger Extreme 2.0 by mozey
June 9, 2008, 2:56 am
Filed under: blog | Tags: , ,

Often times what i’m doing does not require a bloated logger!. So here would be two cool functions to have in your class/script.


// input: array.
// output: The exact same array in your log.out.
function log_a($a)
{
$myFile = "/var/log/sgple20/log.out";
$fh = fopen($myFile, 'a');
fwrite($fh, "\n\n".print_r($a, TRUE).'');
fclose($fh);
}


// Input: A message.
// Output: The same message in your log.out.
function log_m($msg)
{
$myFile = "/var/log/sgple20/log.out";
$fh = fopen($myFile, 'a');
fwrite($fh, "\n".$msg."");
fclose($fh);
}

Advertisements


You know your programming lang sucks when you have this by mozey
June 7, 2008, 3:37 pm
Filed under: blog | Tags: , ,

I was playing around with a wordpress plugin!, i saw this jem!
$file = $file['file'];

WTF!?!?!?!?!?

++++++++++++++

UPDATE

++++++++++++++

Upon further thought!!!, i think you guys are right!, this is not the language’s fault. The variable names should have been named more clearly. NOW STOP BADGERING ME ABOUT THIS.



first computer programmer by mozey
June 5, 2008, 2:25 pm
Filed under: blog | Tags: , , , ,

Find out about here in this article, 🙂 THis photo was animated using clipmann.com



wall, larry wall by mozey
May 2, 2008, 5:57 am
Filed under: blog | Tags: , , , , , , , , , , , , , , ,

This clip was created using clipmann.com

This really wont make any sense unless you know about geek code!.



Php big brother by mozey
April 20, 2008, 7:32 pm
Filed under: blog | Tags: , , , , , , , ,