note 61981 added to function.eval

From: Date: Thu, 16 Feb 2006 16:22:05 +0000
Subject: note 61981 added to function.eval
Groups: php.notes 
Request: Send a blank email to php-notes+get-103850@lists.php.net to get a copy of this message
Just a quick note on the functions below that use 'eval_mixed_helper' using add/remove slash do not work if the content includes PHP like code. Using base64 encode/decode solves this. E.g. function eval_mixed_helper($arr) { return ('echo base64_decode("'.base64_encode($arr[1]).'");'); } ---- Server IP: 85.116.0.130 Probable Submitter: 194.131.158.1 ---- Manual Page -- http://www.php.net/manual/en/function.eval.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+61981 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+61981&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+61981&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+61981&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+61981&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+61981&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+61981&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+61981&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+61981&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#103850) next »