I am trying this:
<a href="
<?php
$fh = fopen($p['n'].php, 'w') or die("Can't create file");
if($fh)
{
$code ="
<?php
//codigo combinado con html nada complejo incluí php para manejar sesiones
?>";
echo fwrite($file,$code);
fclose($file);
}?>"></a>
The problem is that it evaluates the code inside $code
instead of just passing it as a string
You can try the following code:
The problem is that I have 2 errors that are when entering the
string
en$code
This is how I managed to make the content of
$code
not be evaluated