note 84243 added to function.print-r
| From: | renaud at agencefranceweb dot com | Date: | Fri, 04 Jul 2008 22:54:58 +0000 |
| Subject: | note 84243 added to function.print-r | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-141180@lists.php.net to get a copy of this message | ||
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
----
Server IP: 217.174.223.124
Probable Submitter: 82.224.61.225
----
Manual Page -- http://www.php.net/manual/en/function.print-r.php
Edit -- https://master.php.net/note/edit/84243
Del: integrated -- https://master.php.net/note/delete/84243/integrated
Del: useless -- https://master.php.net/note/delete/84243/useless
Del: bad code -- https://master.php.net/note/delete/84243/bad+code
Del: spam -- https://master.php.net/note/delete/84243/spam
Del: non-english -- https://master.php.net/note/delete/84243/non-english
Del: in docs -- https://master.php.net/note/delete/84243/in+docs
Del: other reasons-- https://master.php.net/note/delete/84243
Reject -- https://master.php.net/note/reject/84243
Search -- https://master.php.net/manage/user-notes.php