Do you know?
| From: | 001WebHost.Com | Date: | Sat, 13 Jan 2001 19:22:15 +0000 |
| Subject: | Do you know? | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-43992@lists.php.net to get a copy of this message | ||
Do you Guys/Gals know how to send the values of a variable to the Visitor's
Browser through the PHP Interpreter.
I have a code that says :
<script language="php">
//First part of HTML
$file_pointer=fopen('skeleton_part_one.php','r');
$out_stream=fpassthru($file_pointer);
//Fetching the Content Section of this page
$file_pointer=fopen('welcome.php','r');
$out_stream.=fpassthru($file_pointer);
//Second part of HTML
//$file_pointer=fopen('skeleton_part_two.php','r');
//$out_stream.=fpassthru($file_pointer);
echo $out_stream;
</script>
Now "echo" command sends the output to browser without processing it through
the PHP Interpreter, code that is in the variable is a set of php scripts
that are required to be processed by the interpreter before actually getting
dispatched to the visitor.
Regards,
Ashish