I am trying to achieve something but i dont know how can i do this.
for instance check this script.
<?php
function runscript()
{
unlink('./images/a.php');
}
?>
which i want to run as a particular manner
i wat the script unlink('./images/a.php'); to be assigned in a string
say for conceptualy, like this
$a = "unlink('./images/a.php');";
then i want to execute the script somehow to run $a which will eventualy run-
unlink('./images/a.php');
say something like this
eval($a);
How can i achieve this...??
eval. What's not working with it?