note 84243 deleted from function.print-r by tularis

From: Date: Fri, 04 Jul 2008 23:55:13 +0000
Subject: note 84243 deleted from function.print-r by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-141181@lists.php.net to get a copy of this message
Note Submitter: renaud at agencefranceweb dot com Reason: useless ---- just a tricky print_r buffuring : script 'rr.php' <?php require 'someusefullclasses.php'; print_r(unserialize($argv[1])); ?> called by : ### pour le debug # function debug($o){ global $debug; if(is_string($o)){ $debug[] = 'debug: ' . $o . '<br />'; }else{ $in=exec('php ' . INCLUDES_DIR . "/rr.php '" . serialize($o) . "'", $out); $out = join('',$out); $debug[] = 'rr : ' . $out . '<br />'; } } not very pretty but really efficient

« previous php.notes (#141181) next »