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);
}
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.
Find out about here in this article, 🙂 THis photo was animated using clipmann.com
Filed under: blog | Tags: animation, code, Funny, geek, geek code, gif, image, linux, lolgeek, lulz, perl, photo, php, programming, Random, unix
This clip was created using clipmann.com
This really wont make any sense unless you know about geek code!.
Filed under: blog | Tags: code, Funny, halarious, humor, php, programming, web, Web 2.0, Web Development