hardfile_get_contents

file_get_contents  时间:2021-05-19  阅读:()
RTFtoHTMLconverterVersion1.
2forPHP4and5(including5.
5)requiresionCubeLoader,ZendOptimiser/ZendLoadedorNuSpherePHPExpressConvertingRTFFilestoHTMLUsingRTFtoHTMLconverterRTFtoHTMLConverterisaPHPbasedutilitywhichallowsyoutoconvertRTFdocumentsintoHTMLcode.
ThecodeproducedcanthenbedirectlyoutputtoawebpageorsavedtoaHTMLfile.
TheconvertercanalsoproducesimpleHTMLfromplaintext(PlaintexttoHTMLconverter).
Theconvertersupportsconversionincludingfonts,colours(includingbackgroundcolours),specialcharacters,hyper-linksetc.
TheRTFtoHTMLconvertersystemcomesintwotypesforbothRTFandPlaintext.
Thesearebasicfunctionsandaclassbasedsystem.
1.
Functions1.
1RTFfunctionsTherearetwofunctionsassociatedwiththeconversionofRTF.
1.
1.
1ConvertingastringholdingtheRTFsource:convert_rtf_to_html($rtfdata,$showerrors/*false*/,$showconversiontime/*false*/)Where:$rtfdataisastringcontainingthesourceRTFcode.
$showerrorsisanoptionalBoolean,toindicateifyouwanterrorstobedisplayedattheendoftheconversion.
$showconversiontimeisanoptionalBooleantoaddthetimetakentoconvertthestring,totheendoftheoutput.
Example:require("rtf.
php");$rtf="{";$rtf.
="{}";$rtf.
="{}";$rtf.
="";$rtf.
="";$rtf.
="Iamrichtext}";convert_rtf_to_html($rtf);1.
1.
2LoadingtheRTFfilefromtheharddriverequire("rtf.
php");convert_rtf_file_to_html($file,$showerrors/*false*/,$showconversiontime/*false*/)Where:$fileisastringcontainingthepathandfilenamerelativetothewebserversrootpath.
$showerrorsisanoptionalBoolean,toindicateifyouwanterrorstobedisplayedattheendoftheconversion.
$showconversiontimeisanoptionalBooleantoaddthetimetakentoconvertthestring,totheendoftheoutput.
Example:require("rtf.
php");convert_rtf_file_to_html("documentation/mydocument.
rtf");1.
2PlaintextfunctionsTherearetwofunctionsassociatedwiththeconversionofplaintext.
1.
2.
1Convertingastringholdingtheplaintext:convert_txt_to_html($textdata,$showconvtime/*false*/)Where:$textdataisastringcontainingtheplaintext.
$showconversiontimeisanoptionalBooleantoaddthetimetakentoconvertthestring,totheendoftheoutput.
Example:require("rtf.
php");$text="Iamplaintext";convert_txt_to_html($text);1.
2.
2Loadingthetextfilefromtheharddriveconvert_txt_file_to_html($file,$showconvtime/*false*/)Where:$fileisastringcontainingthepathandfilenamerelativetothewebserversrootpath.
$showconversiontimeisanoptionalBooleantoaddthetimetakentoconvertthestring,totheendoftheoutput.
Example:require("rtf.
php");convert_txt_file_to_html("documentation/mydocument.
txt");2.
Classes2.
1RTFclassTheRTFclasshasabasicsetofmethodstocontrolitsuse.
Thesearelistedbelow2.
1.
1TheclassconstructorRTFConv($rtfdata)Where:$rtfdataisastringcontainingthesourceRTFcode.
2.
1.
2TheoutputtypeSetOutput($type)Where:$typeiseither"dhtml"or"html",where'dhtml'signifiesadynamicoutputi.
e.
theconversionisoutputdirectlyusingprint.
Note:Fontstylesareembeddedintoeachfontelementand'html'(recommended)signifiesthattheoutputisbufferedintoastringthatcanbeoutputusingShowOutputoraccesseddirectly.
2.
1.
3ThedocumentformatUseDocumentFormat($use/*true*/)Where:$useisoptionalandcanbeeithertrueforconvertingthedocumentsettingsorfalseforignoringthem.
ThedocumentsettingsarethewidthandmarginssetusingapplicationssuchasWord.
2.
1.
4Showingerrors(usedinconjunctionwithShowOutput)ShowErrors($show/*true*/)Where:$showisoptionalandcanbeeithertrueforshowinganyerrorswhenusingShowOutput,orfalseforignoringthem.
2.
1.
5SettingtheoutputlevelSetOutputLevel($level)Where:$levelistheamountofformattingrequired:0=noformatting1=basicformattinge.
g.
and2=fullformattingsuchasfontsstylesandtablesDefaultsto2ifnotset.
2.
1.
6ShowthetimetakentoconvertthesourceintheoutputShowConversionTime($showconvtime/*true*/)Where:$showconvtimeisoptionalandcanbeeithertrueforshowingtheconversiontime,orfalseforignoringit.
2.
1.
7ConvertingtheRTFdataConvert()TheConvertmethodwill(dependingontheoutputtype)eitheroutputtoabufferforlateraccessorusebyShowOutput,or,itwilloutputtheconversiondirectlytotheclientusingprint.
2.
1.
7Showingtheoutput(i.
e.
printingittotheclient)ShowOutput($showstyles/*false*/,$file/*""*/)Where:$showstylesisoptionalandcanbeeithertrue(recommended)forshowingthestylesusedforthefonts,orfalseforignoringthem.
$fileisoptionalandcanbethepathandnameofafiletoredirecttheoutputtoe.
g.
"documentation/mynewdocument.
html".
Note:Youcanalsousetheclassvariables:styleswhichholdsthelistoffontstylesneededfortheconvertedRTF.
outwhichholdsthebufferedconversion.
errwhichcontainsanarrayoferrormessagese.
g.
err[0]holdsthefirsterror,err[1]thesecondetc.
.
Example:require("rtf.
php");$r=newRTFConv($rtf);$r->SetOutput("html");$r->ShowConversionTime($showconvtime);$r->ShowErrors(true);$r->Convert();$r->ShowOutput(true);(where$rtfistheRTFdatae.
g.
$rtf=file_get_contents("mydocument.
rtf");2.
2PlaintextclassTheplaintextclasshasabasicsetofmethodstocontrolitsuse.
Thesearelistedbelow2.
2.
1TheclassconstructorPlainTextConv($text)Where:$textisastringcontainingtheplaintexttobeconverted.
2.
2.
2SettingthefonttouseSetFont($font,$fontsize/*12*/)Where:$fontisastandardwebfontsuchas'Arial'tousefortheentireconversion.
$fontsizeisanoptionalsizedefiningthefontsizetousefortheentireconversion.
2.
2.
3ShowthetimetakentoconvertthetextintheoutputShowConversionTime($showconvtime/*true*/)Where:$showconvtimeisoptionalandcanbeeithertrueforshowingtheconversiontime,orfalseforignoringit.
2.
2.
4ConvertingtheplaintextdataConvert()TheConvertmethodwill(dependingontheoutputtype)eitheroutputtoabufferforlateraccessorusebyShowOutput,or,itwilloutputtheconversiondirectlytotheclientusingprint.
2.
2.
5Showingtheoutput(i.
e.
printingittotheclient)ShowOutput($file/*""*/)Where:$fileisoptionalandcanbethepathandnameofafiletoredirecttheoutputtoe.
g.
"documentation/mynewdocument.
html".
Note:Youcanalsousetheclassvariable:outwhichholdsthebufferedconversion.
Example:$r=newPlainTextConv($text);$r->SetFont("Helvetica",10);$r->ShowConversionTime($showconvtime);$r->Convert();$r->ShowOutput();LicenseTHISSOFTWAREISPROVIDEDBYTHEAUTHOR"ASIS"ANDANYEXPRESSORIMPLIEDWARRANTIES,INCLUDING,BUTNOTLIMITEDTO,THEIMPLIEDWARRANTIESOFMERCHANTABILITYANDFITNESSFORAPARTICULARPURPOSEAREDISCLAIMED.
INNOEVENTSHALLTHEAUTHORBELIABLEFORANYDIRECT,INDIRECT,INCIDENTAL,SPECIAL,EXEMPLARY,ORCONSEQUENTIALDAMAGES(INCLUDING,BUTNOTLIMITEDTO,PROCUREMENTOFSUBSTITUTEGOODSORSERVICES;LOSSOFUSE,DATA,ORPROFITS;ORBUSINESSINTERRUPTION)HOWEVERCAUSEDANDONANYTHEORYOFLIABILITY,WHETHERINCONTRACT,STRICTLIABILITY,ORTORT(INCLUDINGNEGLIGENCEOROTHERWISE)ARISINGINANYWAYOUTOFTHEUSEOFTHISSOFTWARE,EVENIFADVISEDOFTHEPOSSIBILITYOFSUCHDAMAGE.
RTFtoHTMLconverterisCopyright2007-2014Pa-software.
Allrightsreserved.

rfchost:洛杉矶vps/双向CN2 GIA,1核/1G/10G SSD/500G流量/100Mbps/季付$23.9

rfchost怎么样?rfchost是一家开办了近六年的国人主机商,一般能挺过三年的国人商家,还是值得入手的,商家主要销售VPS,机房有美国洛杉矶/堪萨斯、中国香港,三年前本站分享过他家堪萨斯机房的套餐。目前rfchost商家的洛杉矶机房还是非常不错的,采用CN2优化线路,电信双程CN2 GIA,联通去程CN2 GIA,回程AS4837,移动走自己的直连线路,目前季付套餐还是比较划算的,有需要的可...

DiyVM(50元起)老牌商家,香港沙田CN2直连vps/不限流量/五折终身优惠

diyvm怎么样?diyvm是一家国内成立时间比较久的主机商家了,大约在6年前站长曾经用过他家的美国机房的套餐,非常稳定,适合做站,目前商家正在针对香港沙田机房的VPS进行促销,给的是五折优惠,续费同价,香港沙田机房走的是CN2直连的线路,到大陆地区的速度非常好,DiyVM商家采用小带宽不限流量的形式,带宽2Mbps起步,做站完全够用,有需要的朋友可以入手。diyvm优惠码:五折优惠码:OFF50...

腾讯云CVM云服务器大硬盘方案400GB和800GB数据盘方案

最近看到群里的不少网友在搭建大数据内容网站,内容量有百万篇幅,包括图片可能有超过50GB,如果一台服务器有需要多个站点的话,那肯定默认的服务器50GB存储空间是不够用的。如果单独在购买数据盘会成本提高不少。这里我们看到腾讯云促销活动中有2款带大数据盘的套餐还是比较实惠的,一台是400GB数据盘,一台是800GB数据盘,适合他们的大数据网站。 直达链接 - 腾讯云 大数据盘套餐服务器这里我们看到当前...

file_get_contents为你推荐
Sicherheitsserverhostschrome支持ipad《个人收入的分配过关检测》重庆网通重庆联通宽带ipad连不上wifiiPad mini WiFi开关成灰色无法连接,怎么办ipad连不上wifiipad显示无互联网连接怎么回事?iphone连不上wifi我的苹果手机连不上无线,其它手机能,怎么回事?只是家里的连不上win10445端口win的22端口和23端口作用分别是什么 ?tcpip上的netbiostcp 协议里的 netbios . 在哪,找不到win7关闭135端口win7系统怎么关闭135端口?网上很多方法都不好用!
高防直连vps 域名停靠一青草视频 buyvm idc评测网 512av 免费名片模板 炎黄盛世 gspeed 工信部icp备案号 息壤代理 服务器硬件防火墙 便宜空间 上海电信测速网站 dnspod web应用服务器 国外免费云空间 深圳主机托管 密钥索引 腾讯云平台 sonya 更多