Hi
I'm want to dump out some evaluated php into a file.
the code I have so far is:
===========
$lev = "../";
$index_page = $front_end_path . "/index.php";
$build_index = fopen($index_page,"w");
fputs($build_index,top_code($lev));
this is my problem area
fputs($build_index,eval(show_categories()));
fputs($build_index,bottom_code());
fclose($build_index);
where top_code() simply returns a string, likewise bottom_code()
now the problem I have is that the eval() function, echo's to the screen and places nothing in the file
I've tried $string = eval(my_funtion());
and I've also played with readfile()
all attempts result in the code echoing to stdout
Now I know that I could edit the function to return a string and pass it that way, but I use the function elsewhere for normal page serving, it's just in this case I want to output static HTML to the file
in short, how do I eval(a_function()) and pop it to my file?
tia
Bealers
bealers@back-end.org