I came from the js forum. I have this function:
(To all who are confused on what the function does, its a javascript decrypting function, which you place encoded code below it and then it displays a textarea contain the decrypted code).Code:<script> hp_ok=true; function hp_d01(s){ if(!hp_ok)return;var o="",ar=new Array(),os="",ic=0; for(i=0;i<s.length;i++){ c=s.charCodeAt(i); if(c<128)c=c^2; os+=String.fromCharCode(c); if(os.length>80){ ar[ic++]=os;os="" } } o=ar.join("")+os; document.getElementById('outputarea').value += '\n' + o; } document.write('<textarea id="outputarea" style="width:100%; height:100px;">'); document.write('</textarea>'); document.getElementById('outputarea').value = ''; </script>
and I'm trying to get the value of the textarea within a php variable.
I've tried:
But it don't do anythingCode:<?php $content = file_get_contents('index.php'); $temp = explode('<textarea id="outputarea" style="width:100%; height:100px;">',$content); $temp2 = explode('</textarea>',$temp[1]); $code = $temp2[0]; unset($content,$temp,$temp2); //$code is the variable containing the code within the textarea? print_r($code); ?>![]()
Heres the site, with the js function live:
http://newbtophp.no-ip.biz/index.php
Appreciate all replies.



Reply With Quote

Bookmarks