Display php code with fwrite inside a php file -


hello using code bellow write following line inside .php file.

$stringdatar = "<!doctype html public '-//w3c//dtd xhtml+rdfa 1.0//en'\n"; fwrite($handler, $stringdatar); 

i trying same write inside php file following code doesn't wite php code.

$stringdatar = "'.<?php $_get['p']\n.'"; fwrite($handler, $stringdatar); 

any ideas?

variables expanded inside double quotes, it's putting value of $_get['p'] file. need escape dollar sign written literally.

$stringdatar = "'.<?php \$_get['p']\n.'"; 

Comments

Popular posts from this blog

amazon web services - S3 and apache mod_proxy with basic authentication -

How to install ruby on rails -

powershell - This solution contains one or more assemblies targeted for the global assembly cache -