bcompiler_write_file

(PECL bcompiler >= 0.6)

bcompiler_write_file写锟斤拷 PHP 源锟斤拷锟侥硷拷锟斤拷锟街斤拷锟斤拷

说锟斤拷

bcompiler_write_file ( resource $filehandle , string $filename ) : bool

锟斤拷锟斤拷锟斤拷锟斤拷锟街革拷锟斤拷锟皆达拷锟斤拷锟斤拷锟斤拷纸锟斤拷耄拷锟斤拷锟斤拷锟斤拷锟叫达拷锟津开碉拷锟侥硷拷锟斤拷锟斤拷小锟�

锟斤拷锟斤拷

filehandle

fopen() 锟斤拷锟截碉拷一锟斤拷锟侥硷拷锟斤拷锟斤拷锟�

filename

源锟斤拷锟侥硷拷路锟斤拷锟斤拷锟街凤拷锟斤拷锟斤拷锟斤拷式锟斤拷

锟斤拷锟斤拷值

锟缴癸拷时锟斤拷锟斤拷 TRUE锟斤拷 锟斤拷锟斤拷锟斤拷失锟斤拷时锟斤拷锟斤拷 FALSE锟斤拷

锟斤拷锟斤拷

Example #1 bcompiler_write_file() 锟斤拷锟斤拷

<?php
$fh 
fopen("example.phb""w");
bcompiler_write_header($fh);
bcompiler_write_file($fh"example.php");
bcompiler_write_footer($fh);
fclose($fh);
/* 锟斤拷锟斤拷锟斤拷锟斤拷鹊模锟�
include "example.php";
   锟斤拷
include "example.phb";
*/
?>

注锟斤拷

Warning

锟剿猴拷锟斤拷锟斤拷实锟斤拷锟斤拷锟侥★拷锟剿猴拷锟斤拷锟侥憋拷锟襟,帮拷锟斤拷锟斤拷锟狡硷拷锟斤拷锟斤拷锟斤拷牡锟斤拷锟斤拷锟斤拷锟斤拷锟轿达拷锟斤拷锟� PHP 锟斤拷锟斤拷锟芥本锟斤拷未通知锟酵憋拷锟睫改★拷使锟矫憋拷锟斤拷锟斤拷锟斤拷锟斤拷锟皆碉拷 锟斤拷

锟轿硷拷