How to USE source code(browser generated output)with value of variable using "function highlight_file($file, TRUE);" of a php file so that i can convert it into a html file or text file and able to upload that html file to Server..
Actually file setup is like that......
"page1.php" passes variable with value to "page2.php" and page3.php contains
CODE
<?php
$contents = file_get_contents('http://localhost/test/page2.php');
$fp = fopen('tmp.txt','r+');
fwrite($fp,$contents);
fclose($fp);
highlight_file('tmp.txt');
?>
when i trigger an event(submit) on page2.php then only page3.php will be executed...
everything is goin on fine....except that value of the varibale........
somebody told me the problem not the solution .......
He told me:-" post variables are generated at run time when a form from a page move towards to next page that have $_POST[] variables so that it may have values but as u are not forwarding and using it directly how will they get the values ??"
So, what should i do & where i have to make changes? plz reply........
** Edit **