file_get_contents problem
Posted: Tue Jul 25, 2006 2:10 am
fist.. Hi to all!
I have a quiestion here...
1. what am i trying to do?
I want an PHP file execute and then get its source code (html) and then write this in a html file...
i tryed several things...though nothing wroked for me...
if i have a code like this..
it works though....i get PHP source code in html file and not html source code....meaning that php file dose not execute...
can anyone help me please?
SomeOne
I have a quiestion here...
1. what am i trying to do?
I want an PHP file execute and then get its source code (html) and then write this in a html file...
i tryed several things...though nothing wroked for me...
if i have a code like this..
Code: Select all
$content2 = file_get_contents('file.php');
$handlex = fopen('file.html', "w");
fwrite($handlex, $content2);
fclose($handlex);can anyone help me please?
SomeOne