when i run this function i have this error: Undefined variable: decode_out function decode() { header('Content-type: application/php'); header('Content-Disposition: attachment; filename="decode_'.$_FILES['php_script']['name'].'"'); $file = file_get_contents ($_FILES['php_script']['tmp_name']); $file = str_replace('eval(base64_decode($Q', '$decode_out = (base64_decode($Q', $file); eval('?>'.$file.'<?'); echo '<?'.$decode_out; } PHP:
Your code totally confusing me. I see many open brackets in the following line but but less closing brackets. Try to fix them first.
Please explain what your trying to do. Also, your str_replace function is missing an argument and I do not know why you are trying to cast eval on PHP tags...? $decode_out isn't found because you the $decode_out variable is inside an eval function which is inside a string, therefore it has not been executed.
please first define what you do in that code its not right and $decode-out variable is not found in the code