Date: 01/13/01
- Next message: Moritz Petersen: "[PHP-DEV] comments in php"
- Previous message: matt <email protected>: "[PHP-DEV] PHP 4.0 Bug #8689 Updated: pg_Connect() seems to do some type of caching that doesn't quite work"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Moritz Petersen: "[PHP-DEV] comments in php"
- Previous message: matt <email protected>: "[PHP-DEV] PHP 4.0 Bug #8689 Updated: pg_Connect() seems to do some type of caching that doesn't quite work"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

