当前位置: 首页>>代码示例>>PHP>>正文


PHP VireZeroTerminaux函数代码示例

本文整理汇总了PHP中VireZeroTerminaux函数的典型用法代码示例。如果您正苦于以下问题:PHP VireZeroTerminaux函数的具体用法?PHP VireZeroTerminaux怎么用?PHP VireZeroTerminaux使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了VireZeroTerminaux函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: fseek

 fseek($handle, 59);
 $contents = fread($handle, 1);
 if (ord($contents) != 0x3) {
     echo 'File Problem - Doesn\'t seem to be a Equation File<br>';
     echo '<a href="index.php">Back to main menu</a>';
     echo '<h2>Open a file</h2>';
     echo '<form enctype="multipart/form-data" action="82y-txt-converter.php" method="post">';
     echo '<input type="hidden" name="MAX_FILE_SIZE" value="5000000" />';
     echo 'Open a TI Equation File (82y): <input name="userfile" type="file" /> <input type="submit" value="Open">';
     echo '</form>';
     include "bottom.php";
     die;
 }
 fseek($handle, 11);
 $contents = fread($handle, 40);
 $TIComment = VireZeroTerminaux($contents);
 fseek($handle, 61);
 $contents = ord(fread($handle, 1));
 if ($contents < 0x1a) {
     $TIName = 'Y' . ($contents - 0xf == 0xa ? 0 : $contents - 0xf);
 } else {
     if ($contents < 0x2c) {
         $TIName = ($contents - 0x1f & 1 == 1 ? 'X' : 'Y') . ($contents - 0x1f == 0xa ? 0 : ceil(($contents - 0x1f) / 2)) . 'T';
     } else {
         if ($contents < 0x45) {
             $TIName = 'r' . ($contents - 0x3f == 0xa ? 0 : $contents - 0x3f);
         } else {
             if ($contents == 0x80) {
                 $TIName = "u";
             } else {
                 if ($contents == 0x81) {
开发者ID:ZeWaren,项目名称:TI_PHP,代码行数:31,代码来源:82y-txt-converter.php

示例2: fread

$contents = '';
$count = 0;
$contents = fread($handle, 8);
$TIHeader = '';
$TIHeader = $contents == '**TI89**' ? "89" : '';
$TIHeader = $contents == '**TI92**' ? "92" : '';
$TIHeader = $contents == '**TI92P*' ? "92P" : '';
fseek($handle, 10);
$contents = fread($handle, 8);
$TIFolder = VireZeroTerminaux($contents);
fseek($handle, 18);
$contents = fread($handle, 40);
$TIComment = VireZeroTerminaux($contents);
fseek($handle, 64);
$contents = fread($handle, 8);
$TIName = VireZeroTerminaux($contents);
fseek($handle, 73);
$contents = fread($handle, 1);
$TIStoreTypeN = ord($contents);
$StoreTypes = array("RAM", 'RAM Locked', 'Archive');
$TIStoreType = $StoreTypes[$TIStoreTypeN];
fseek($handle, 86);
$contents = fread($handle, 1);
$TempBin = ord($contents);
$contents = fread($handle, 1);
$TextLength = $TempBin * 256 + ord($contents);
fseek($handle, 90);
$contents = nl2br(htmlspecialchars(fread($handle, $TextLength - 3)));
$text = $contents;
/*    for ($i=0; $i<strlen($contents); $i++)
      {
开发者ID:ZeWaren,项目名称:TI_PHP,代码行数:31,代码来源:debug1.php


注:本文中的VireZeroTerminaux函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。