December 22, 201114 yr please lock to attachment give my the result by php thank u What exactly is your question?
December 22, 201114 yr Author What exactly is your question? how i can display the output of script when click to run button
December 23, 201114 yr Execute the PHP code entered through textbox or textarea echo "echo 'test';"; //just prints echo 'test'; Above line just prints echo ‘test’; , you can’t do it from that way. For executing the php code entered form textarea, you have to take the help of useful PHP function called eval() . Take a look at few examples of eval() function to execute the PHP code which is supplied as a string. eval("echo 'test';"); // prints test in browser eval(" phpinfo(); "); //outputs the information provided by phpinfo() Isn’t that easy to do? eval() comes handy when you’ve to execute the PHP code which is supplied as a string . But always be careful, there are a lot of dangerous things can be done if PHP code can be executed from eval() to invade the security of your website. Quoted from this page. Hope that answers your question!
December 23, 201114 yr Author does not work $fg have constant can apply your in the code shown below <textarea name="cod" id="cod2" cols="38" rows="25"> <?php print "$fg" ; ?> </textarea> <? [code] [/code] thank u so much
December 24, 201114 yr I understand your not so fluent in English, but you need to be more specific in what you're trying to ask for. Nobody may respond because they don't know what your asking for exactly.
January 3, 201214 yr I'd be ultra careful with eval, can open up a huge security hole on your server. Agreed, but I'll leave it to OP to decide.
Create an account or sign in to comment