Using fwrite with variables attached
Posted: Mon Apr 02, 2007 9:48 am
Hi,
I am trying work with fwrite() to write some information to a seperate URL from a php page. I am trying to send a variable with some data but this isnt working for me.
For example
$fp = fopen($filename, 'w+');
fwrite($fp,"<?php
$test = 'Hello';
?>");
It doesnt work I get parse errors any ideas why ?
I am trying work with fwrite() to write some information to a seperate URL from a php page. I am trying to send a variable with some data but this isnt working for me.
For example
$fp = fopen($filename, 'w+');
fwrite($fp,"<?php
$test = 'Hello';
?>");
It doesnt work I get parse errors any ideas why ?