33+ results for 'php ftell' (700 ms)
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: File.php 20096 2010-01-06 02:05:09Z bkarwin $ 21 */ 190 */ 191 if (PHP_INT_SIZE > 4) { 192 $str = $this->_fread(8); 216 * Check, that we work in 64-bit mode. 217 * fseek() and ftell() use long for offset. Thus, largest index segment file size in 32bit mode is 2Gb 218 */ 218 */ 219 if (PHP_INT_SIZE > 4) { 220 settype($value, 'integer'); 251 } else { 252 // require_once 'Zend/Search/Lucene/Exception.php'; 253 throw new Zend_Search_Lucene_Exception('Long integers lower than -2147483648 (0x80000000) are not supported on 32-bit platforms.');File.php https://github.com/testruby/Tine-2.0-Open-Source-Groupware-and-CRM.git | PHP | 473 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: File.php 10020 2009-08-18 14:34:09Z j.fischer@metaways.de $ 21 */ 190 */ 191 if (PHP_INT_SIZE > 4) { 192 $str = $this->_fread(8); 216 * Check, that we work in 64-bit mode. 217 * fseek() and ftell() use long for offset. Thus, largest index segment file size in 32bit mode is 2Gb 218 */ 218 */ 219 if (PHP_INT_SIZE > 4) { 220 settype($value, 'integer'); 251 } else { 252 require_once 'Zend/Search/Lucene/Exception.php'; 253 throw new Zend_Search_Lucene_Exception('Long integers lower than -2147483648 (0x80000000) are not supported on 32-bit platforms.');File.php https://github.com/Enrise/Zend.git | PHP | 473 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: File.php 24593 2012-01-05 20:35:02Z matthew $ 21 */ 190 */ 191 if (PHP_INT_SIZE > 4) { 192 $str = $this->_fread(8); 216 * Check, that we work in 64-bit mode. 217 * fseek() and ftell() use long for offset. Thus, largest index segment file size in 32bit mode is 2Gb 218 */ 218 */ 219 if (PHP_INT_SIZE > 4) { 220 settype($value, 'integer'); 251 } else { 252 // require_once 'Zend/Search/Lucene/Exception.php'; 253 throw new Zend_Search_Lucene_Exception('Long integers lower than -2147483648 (0x80000000) are not supported on 32-bit platforms.');BodyTest.php https://gitlab.com/jatasya/testSlimfrmwk | PHP | 401 lines
1<?php 2/** 4 * 5 * @link https://github.com/slimphp/Slim 6 * @copyright Copyright (c) 2011-2015 Josh Lockhart 6 * @copyright Copyright (c) 2011-2015 Josh Lockhart 7 * @license https://github.com/slimphp/Slim/blob/master/LICENSE.md (MIT License) 8 */ 13 14class BodyTest extends \PHPUnit_Framework_TestCase 15{ 42 { 43 $stream = fopen('php://temp', $mode); 44 fwrite($stream, $this->text); 81 82 $this->assertEquals('php://temp', $body->getMetadata('uri')); 83 }module.audio-video.flv.php https://github.com/robertleeplummerjr/bluebox.git | PHP | 505 lines
1<?php 2///////////////////////////////////////////////////////////////// 28// // 29// module.audio-video.flv.php // 30// module for analyzing Shockwave Flash Video files // 78 $found_meta = false; 79 while ((ftell($fd) + 16) < $ThisFileInfo['avdataend']) { 80 $ThisTagHeader = fread($fd, 16); 86 $LastHeaderByte = getid3_lib::BigEndian2Int(substr($ThisTagHeader, 15, 1)); 87 $NextOffset = ftell($fd) - 1 + $DataLength; 88 if ($Timestamp > $Duration) { 91 92//echo __LINE__.'['.ftell($fd).']=('.$TagType.')='.number_format(microtime(true) - $start_time, 3).'<br>'; 93File.php https://gitlab.com/RonLab1987/YupePlusClear | PHP | 473 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: File.php 24593 2012-01-05 20:35:02Z matthew $ 21 */ 189 */ 190 if (PHP_INT_SIZE > 4) { 191 $str = $this->_fread(8); 215 * Check, that we work in 64-bit mode. 216 * fseek() and ftell() use long for offset. Thus, largest index segment file size in 32bit mode is 2Gb 217 */ 217 */ 218 if (PHP_INT_SIZE > 4) { 219 settype($value, 'integer'); 252 } else { 253 require_once 'Zend/Search/Lucene/Exception.php'; 254 throw new Zend_Search_Lucene_Exception('Long integers lower than -2147483648 (0x80000000) are not supported on 32-bit platforms.');GeneratedObjectLobTest.php https://gitlab.com/Isaki/le331.fr | PHP | 293 lines
1<?php 2 10 11require_once dirname(__FILE__) . '/../../../../tools/helpers/bookstore/BookstoreEmptyTestBase.php'; 12 132 133 $this->assertEquals(0, ftell($img), "Expected position of cursor in file pointer to be 0"); 134 213 // 4) Test isModified() behavior 214 $fp = fopen("php://temp", "r+"); 215 fwrite($fp, file_get_contents($blob2_path)); 270 271 $stream = fopen("php://memory", 'w'); 272 fwrite($stream, file_get_contents($blob2_path)); 279 280 $stream2 = fopen("php://memory", 'w+'); 281 fwrite($stream2, file_get_contents($blob_path));Stream.php https://gitlab.com/ealexis.t/trends | PHP | 245 lines
1<?php 2namespace GuzzleHttp\Psr7; 6/** 7 * PHP stream implementation. 8 * 180 { 181 $result = ftell($this->stream); 182DiscISAM.php https://gitlab.com/ptisky/API_prestashop | PHP | 219 lines
22 * @package PHPExcel_CachedObjectStorage 23 * @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 33 * @package PHPExcel_CachedObjectStorage 34 * @copyright Copyright (c) 2006 - 2013 PHPExcel (http://www.codeplex.com/PHPExcel) 35 */ 35 */ 36class PHPExcel_CachedObjectStorage_DiscISAM extends PHPExcel_CachedObjectStorage_CacheBase implements PHPExcel_CachedObjectStorage_ICache { 37 71 fseek($this->_fileHandle,0,SEEK_END); 72 $offset = ftell($this->_fileHandle); 73 fwrite($this->_fileHandle, serialize($this->_currentObject)); 86 * @param string $pCoord Coordinate address of the cell to update 87 * @param PHPExcel_Cell $cell Cell to update 88 * @return voidFile.php https://bitbucket.org/jonbiard/nucleus.git | PHP | 233 lines
1<?php 2/** 37 * @param string $path The file path 38 * @param string $mode The mode (see PHP's fopen() function) 39 * 73 { 74 if (($pos = @ftell($this->fh)) === false) { 75 throw new IOException("Failed to get pointer offset in file: $this->path");zones.php https://github.com/voldern/wmbind.git | PHP | 312 lines
1<?php 2 249 for ($i = 0; fgets($fd); $i++) 250 $addr[$i] = ftell($fd); 251file.php https://bitbucket.org/crevillo/enetcall.git | PHP | 509 lines
1<?php 2/** 317 * 318 * PHP system touch doesn't work correctly with the compress.zlib file. 319 * 427 case SEEK_CUR: 428 $transPos = $pos + ftell( $this->fp ); 429 break; 434 435 $cur = ftell( $this->fp ); 436 if ( $transPos < $cur )ResumableDownload.php https://gitlab.com/treighton/wpgit | PHP | 176 lines
1<?php 2/** 121 122 if ($this->target->ftell() >= $this->meta['ContentLength']) { 123 return false; 132 $this->meta['ContentLength'], 133 $this->target->ftell() 134 ); 148 { 149 $current = $this->target->ftell(); 150 $targetByte = $this->meta['ContentLength'] - 1;Mbox.php https://github.com/openstate/HNS.dev.git | PHP | 434 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Mbox.php 8064 2008-02-16 10:58:39Z thomas $ 21 */ 27 */ 28// require_once 'Zend/Loader.php'; 29 32 */ 33require_once 'Zend/Mail/Storage/Abstract.php'; 34 37 */ 38require_once 'Zend/Mail/Message.php'; 39 121 */ 122 require_once 'Zend/Mail/Storage/Exception.php'; 123 throw new Zend_Mail_Storage_Exception('id does not exist');WinFsStreamWrapper.php https://gitlab.com/oytunistrator/92five | PHP | 400 lines
1<?php // vi: set fenc=utf-8 ts=4 sw=4 et: 2/* 18 * 19 * See also https://code.google.com/p/php-wfio/ for a PHP extension 20 * and comments on http://www.rooftopsolutions.nl/blog/filesystem-encoding-and-php 352 { 353 return ftell($this->handle); 354 }Util.php https://gitlab.com/judielsm/Handora | PHP | 285 lines
1<?php 2 228 { 229 if (ftell($resource) !== 0 && static::isSeekableStream($resource)) { 230 rewind($resource);PHPTemp.php https://gitlab.com/techniconline/kmc | PHP | 215 lines
22 * @package PHPExcel_CachedObjectStorage 23 * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 29/** 30 * PHPExcel_CachedObjectStorage_PHPTemp 31 * 33 * @package PHPExcel_CachedObjectStorage 34 * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel) 35 */ 35 */ 36class PHPExcel_CachedObjectStorage_PHPTemp extends PHPExcel_CachedObjectStorage_CacheBase implements PHPExcel_CachedObjectStorage_ICache 37{ 67 $this->_cellCache[$this->_currentObjectID] = array( 68 'ptr' => ftell($this->_fileHandle), 69 'sz' => fwrite($this->_fileHandle, serialize($this->_currentObject))CachingEntityBodyTest.php https://gitlab.com/x33n/respond | PHP | 249 lines
1<?php 2 89 $this->assertEquals('test', $this->body->read(4)); 90 $this->assertEquals(4, $this->body->ftell()); 91 $this->body->seek(2); 91 $this->body->seek(2); 92 $this->assertEquals(2, $this->body->ftell()); 93 $this->body->seek(2, SEEK_CUR); 93 $this->body->seek(2, SEEK_CUR); 94 $this->assertEquals(4, $this->body->ftell()); 95 $this->assertEquals('ing', $this->body->read(3)); 107 { 108 $this->body->seek($this->body->ftell()); 109 $this->body->write("test\n123\nhello\n1234567890\n"); 242 { 243 $s = fopen('php://temp', 'r'); 244 $a = EntityBody::factory($s);wmf.c https://bitbucket.org/ardalanaz/dava.framework.git | C | 301 lines
25% % 26% http://www.imagemagick.org/script/license.php % 27% % 106 107static long WMFTellBlob(void *image) 108{ 171 } 172 wmf_status=wmf_bbuf_input(wmf_info,WMFReadBlob,WMFSeekBlob,WMFTellBlob, 173 (void *) image);Stream.php https://gitlab.com/reasonat/test8 | PHP | 328 lines
1<?php 2/** 116 117 $result = ftell($this->resource); 118 if (! is_int($result)) {Mbox.php https://gitlab.com/rsilveira1987/Expresso | PHP | 447 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Mbox.php 10020 2009-08-18 14:34:09Z j.fischer@metaways.de $ 21 */ 27 */ 28// require_once 'Zend/Loader.php'; 29 32 */ 33require_once 'Zend/Mail/Storage/Abstract.php'; 34 37 */ 38require_once 'Zend/Mail/Message/File.php'; 39 126 */ 127 require_once 'Zend/Mail/Storage/Exception.php'; 128 throw new Zend_Mail_Storage_Exception('id does not exist');ext_std_file.h https://gitlab.com/Blueprint-Marketing/hhvm | C Header | 350 lines
2 +----------------------------------------------------------------------+ 3 | HipHop for PHP | 4 +----------------------------------------------------------------------+ 5 | Copyright (c) 2010-2014 Facebook, Inc. (http://www.facebook.com) | 6 | Copyright (c) 1997-2010 The PHP Group | 7 +----------------------------------------------------------------------+ 7 +----------------------------------------------------------------------+ 8 | This source file is subject to version 3.01 of the PHP license, | 9 | that is bundled with this package in the file LICENSE, and is | 10 | available through the world-wide-web at the following url: | 11 | http://www.php.net/license/3_01.txt | 12 | If you did not receive a copy of the PHP license and are unable to | 13 | obtain it through the world-wide-web, please send a note to | 14 | license@php.net so we can mail you a copy immediately. | 15 +----------------------------------------------------------------------+file.php https://github.com/xoops-pi/legacy.git | PHP | 537 lines
18 * @author Taiwen Jiang <phppp@users.sourceforge.net> 19 * @version $Id: file.php 1509 2008-04-27 10:18:38Z phppp $ 20 * @package class 26 * 27 * PHP versions 4 and 5 28 * 28 * 29 * CakePHP(tm) : Rapid Development Framework <http://www.cakephp.org/> 30 * Copyright 2005-2008, Cake Software Foundation, Inc. 38 * @copyright Copyright 2005-2008, Cake Software Foundation, Inc. 39 * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project 40 * @package cake 41 * @subpackage cake.cake.libs 42 * @since CakePHP(tm) v 0.2.9 43 * @version $Revision: 6311 $psd.class.php https://gitlab.com/billyprice1/cfimagehost-on-openshift | PHP | 312 lines
1<?php if(!defined('cfih') or !cfih) die('This file cannot be directly accessed.'); 2/************************************************************************************************************** 18* 19* PHP PSD reader class, v1.3 20* 27* <?php 28* require('classPhpPsdReader.php') 29* header("Content-type: image/jpeg"); 34* 35* Latest version and demo: http://www.kingsquare.nl/phppsdreader 36* 45 46class PhpPsdReader { 47 var $infoArray; 52 53 function PhpPsdReader($fileName) { 54 set_time_limit(0);Mbox.php https://bitbucket.org/haichau59/manga.git | PHP | 447 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Mbox.php 24594 2012-01-05 21:27:01Z matthew $ 21 */ 27 */ 28// //require_once 'Zend/Loader.php'; 29 32 */ 33//require_once 'Zend/Mail/Storage/Abstract.php'; 34 37 */ 38//require_once 'Zend/Mail/Message/File.php'; 39 126 */ 127 //require_once 'Zend/Mail/Storage/Exception.php'; 128 throw new Zend_Mail_Storage_Exception('id does not exist');file.php https://github.com/cgajardo/repositorium.git | PHP | 542 lines
1<?php 2/** 4 * 5 * PHP versions 4 and 5 6 * 6 * 7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 8 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) 13 * @copyright Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org) 14 * @link http://cakephp.org CakePHP(tm) Project 15 * @package cake 16 * @subpackage cake.cake.libs 17 * @since CakePHP(tm) v 0.2.9 18 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 25if (!class_exists('Object')) { 26 require LIBS . 'object.php'; 27}dumpTextPass.php https://github.com/sunnysujan/wikireader.git | PHP | 525 lines
1<?php 2/** 85 function stream_tell() { 86 return ftell( $this->stream ); 87 } 103 var $prefetch = null; 104 var $input = "php://stdin"; 105 var $history = WikiExporter::FULL; 112 113 var $php = "php"; 114 var $spawn = false; 169 if( $val ) { 170 $this->php = $val; 171 } 508 509Usage: php dumpTextPass.php [<options>] 510Options:AbstractFile.php https://github.com/Exercise/zf2.git | PHP | 411 lines
1<?php 2/** 131 */ 132 if (PHP_INT_SIZE > 4) { 133 $str = $this->_fread(8); 157 * Check, that we work in 64-bit mode. 158 * fseek() and ftell() use long for offset. Thus, largest index segment file size in 32bit mode is 2Gb 159 */ 159 */ 160 if (PHP_INT_SIZE > 4) { 161 settype($value, 'integer');module.audio.flac.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 309 lines
1<?php 2///////////////////////////////////////////////////////////////// 9// // 10// module.audio.flac.php // 11// module for analyzing FLAC and OggFLAC audio files // 11// module for analyzing FLAC and OggFLAC audio files // 12// dependencies: module.audio.ogg.php // 13// /// 16 17getid3_lib::IncludeDependency(GETID3_INCLUDEPATH.'module.audio.ogg.php', __FILE__, true); 18 42 do { 43 $METAdataBlockOffset = ftell($fd); 44 $METAdataBlockHeader = fread($fd, 4); 63 $ThisFileInfo_flac_METAdataBlockTypeText_raw['block_data'] = fread($fd, $METAdataBlockLength); 64 $ThisFileInfo['avdataoffset'] = ftell($fd); 65zip.php https://gitlab.com/fbi/razyo-api-server | PHP | 315 lines
1<?php 2 136 $this->cdir[$name]=substr_replace( 137 $this->cdir[$name],pack('V',ftell($tmp)),42,4); 138 // Copy header and compressed content 170 $chdr=substr_replace( 171 $chdr,pack('V',ftell($tmp)),42,4); 172 if (!is_null($data)) { 200 // Central directory relative offset 201 $this->cofs=ftell($tmp); 202 foreach ($this->cdir as $raw) 291 $cdir=$found; 292 $this->cofs=ftell($zip)-strlen($found); 293 }File.php https://bitbucket.org/shashwat_dinasource/bitscentral.git | PHP | 296 lines
1<?php 2/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ 6 * 7 * PHP versions 4 and 5 8 * 24 * @package File_Archive 25 * @author Vincent Lascaux <vincentlascaux@php.net> 26 * @copyright 1997-2005 The PHP Group 27 * @license http://www.gnu.org/copyleft/lesser.html LGPL 28 * @version CVS: $Id: File.php,v 1.30 2005/07/11 11:53:53 vincentlascaux Exp $ 29 * @link http://pear.php.net/package/File_Archive 31 32require_once "File/Archive/Reader.php"; 33require_once "MIME/Type.php"; 216 217 $before = ftell($this->handle); 218 if (($length == -1 && @fseek($this->handle, 0, SEEK_END) === -1) ||file.php https://github.com/vidor/myworks.git | PHP | 542 lines
1<?php 2/** 4 * 5 * PHP versions 4 and 5 6 * 6 * 7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 8 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) 13 * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) 14 * @link http://cakephp.org CakePHP(tm) Project 15 * @package cake 16 * @subpackage cake.cake.libs 17 * @since CakePHP(tm) v 0.2.9 18 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 25if (!class_exists('Object')) { 26 require LIBS . 'object.php'; 27}Filesystem.php https://github.com/kpike/moodle.git | PHP | 222 lines
1<?php 2/** 23/** Zend_Search_Lucene_Storage_File */ 24require_once 'Zend/Search/Lucene/Storage/File.php'; 25 26/** Zend_Search_Lucene_Exception */ 27require_once 'Zend/Search/Lucene/Exception.php'; 28 54 { 55 global $php_errormsg; 56 68 ini_set('track_errors', $trackErrors); 69 throw new Zend_Search_Lucene_Exception($php_errormsg); 70 } 105 { 106 return ftell($this->_fileHandle); 107 }