PHP: bcompiler_write_file - Manual in Deutsh
PHP: bcompiler_write_file - Manual in French
PHP: bcompiler_write_file - Manual in Polish

You Are At PHP: bcompiler_write_file - Manual Area


recent searches:
include functions , variable functions , post functions...




If you are new to PHP or just need to refresh your skills, this is the place to start. This series of tutorials will give you the basic knowledge you will need to create a simple PHP website.

PHP is a reflective programming language originally designed for producing dynamic web pages.[1] PHP is used mainly in server-side scripting, but can be used from a command line interface or in standalone graphical applications. Textual User Interfaces can also be created using ncurses.

PHP Manual
PrevNext

bcompiler_write_file

(PECL)

bcompiler_write_file -- Writes a php source file as bytecodes

Description

bool bcompiler_write_file ( resource filehandle, string filename )

This function complies specified source file into bytecodes, and writes them to the open file handle.

Parameters

filehandle

A file handle as returned by fopen().

filename

The source file path, as a string.

Return Values

Returns TRUE on success or FALSE on failure.

Examples

Example 1. bcompiler_write_file() example

<?php
$fh
= fopen("example.phb", "w");
bcompiler_write_header($fh);
bcompiler_write_file($fh, "example.php");
bcompiler_write_footer($fh);
fclose($fh);
/* the following should be equivalent:
include "example.php";
   and
include "example.phb";
*/
?>

Notes

Warning

This function is EXPERIMENTAL. The behaviour of this function, the name of this function, and anything else documented about this function may change without notice in a future release of PHP. Use this function at your own risk.

See Also

bcompiler_write_header()
bcompiler_write_footer()

Najlepsza ochrona mienia na rynku
tłumaczenia
opakowania z nadrukiem
Najlepsza organizacja eventów Gorąco Polecamy!

Another Useful functions:


ref.bcompiler | function.bcompiler-write-included-filename | function.bcompiler-write-header | function.bcompiler-write-functions-from-file | function.bcompiler-write-function | function.bcompiler-write-footer | function.bcompiler-write-file | function.bcompiler-write-exe-footer | function.bcompiler-write-constant | function.bcompiler-write-class | function.bcompiler-read | function.bcompiler-parse-class | function.bcompiler-load | function.bcompiler-load-exe |


PHP is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML. If you are new to PHP and want to get some idea of how it works, try the introductory tutorial. After that, check out the online manual, and the example archive sites and some of the other resources available in the links section.