100+ results results for 'php fgets' (1231 ms)
1<?php 2/** 4 * 5 * PHP 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.Utility 15 * @package Cake.Utility 16 * @since CakePHP(tm) v 0.2.9 17 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 166 while (!feof($this->handle)) { 167 $data .= fgets($this->handle, 4096); 168 }trackback.php https://bitbucket.org/pastor399/newcastleunifc.git | PHP | 372 lines
1<?php 2/** 2/** 3 * PHP Class to handle TrackBacks (send/ping, receive, retreive, detect, seed, etc...) 4 * 4 * 5 * <code><?php 6 * include('trackback_cls.php'); 11 * 12 * @version $Id: trackback_cls.php,v 1.2 2004/12/11 18:54:32 Ran Exp $ 13 * @copyright Copyright (c) 2004 Ran Aroussi (http://www.blogish.org) 14 * @author Ran Aroussi <ran@blogish.org> 15 * @license http://opensource.org/licenses/gpl-license.php GNU General Public License (GPL) 16 * 92 while (!feof($tb_sock)) { 93 $response .= fgets($tb_sock, 128); 94 }Proxy.php https://bitbucket.org/cviolette/sugarcrm.git | PHP | 284 lines
1<?php 2 26 */ 27require_once 'Zend/Uri/Http.php'; 28/** 30 */ 31require_once 'Zend/Http/Client.php'; 32/** 34 */ 35require_once 'Zend/Http/Client/Adapter/Socket.php'; 36 125 if (! $this->socket) { 126 require_once 'Zend/Http/Client/Adapter/Exception.php'; 127 throw new Zend_Http_Client_Adapter_Exception("Trying to write but we are not connected"); 133 if ($this->connected_to[0] != "tcp://$host" || $this->connected_to[1] != $port) { 134 require_once 'Zend/Http/Client/Adapter/Exception.php'; 135 throw new Zend_Http_Client_Adapter_Exception("Trying to write but we are connected to the wrong proxy server");CSV.php https://bitbucket.org/royrutto/climatepal.git | PHP | 415 lines
34 define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../'); 35 require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php'); 36} 44 */ 45class PHPExcel_Reader_CSV extends PHPExcel_Reader_Abstract implements PHPExcel_Reader_IReader 46{ 234 /** 235 * Loads PHPExcel from file into PHPExcel instance 236 * 237 * @param string $pFilename 238 * @param PHPExcel $objPHPExcel 239 * @return PHPExcel 241 */ 242 public function loadIntoExisting($pFilename, PHPExcel $objPHPExcel) 243 {Subversion.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 406 lines
1<?php 2 83 * existed since version 0.3 of the Pecl extension (per release notes). 84 * Nobody ever bothered filling in the documentation on php.net though. 85 * The function returns a big array of a bunch of info about the repository 107 while ( !feof( $fout ) ) { 108 $out .= fgets( $fout ); 109 }mail.php https://bitbucket.org/allanxyh/uniquemall.git | PHP | 406 lines
95 $header .= 'Return-Path: ' . $this->from . $this->newline; 96 $header .= 'X-Mailer: PHP/' . phpversion() . $this->newline; 97 //$header .= 'Content-Type: multipart/related; boundary="' . $boundary . '"' . $this->newline . $this->newline; 162 163 while ($line = fgets($handle, 515)) { 164 if (substr($line, 3, 1) == ' ') { 171 172 while ($line = fgets($handle, 515)) { 173 $reply .= $line; 224 225 while ($line = fgets($handle, 515)) { 226 $reply .= $line; 241 242 while ($line = fgets($handle, 515)) { 243 $reply .= $line;recaptchalib.php https://gitlab.com/juanito.abelo/nlmobile | PHP | 278 lines
1<?php 2 3/* 4 * This is a PHP library that handles calling reCAPTCHA. 5 * - Documentation and latest version 5 * - Documentation and latest version 6 * http://recaptcha.net/plugins/php/ 7 * - Get a reCAPTCHA API Key 75 $http_request .= "Content-Length: " . strlen($req) . "\r\n"; 76 $http_request .= "User-Agent: reCAPTCHA/PHP\r\n"; 77 $http_request .= "\r\n"; 87 while ( !feof($fs) ) 88 $response .= fgets($fs, 1160); // One TCP-IP packet 89 fclose($fs); 216 if (! function_exists ("mcrypt_encrypt")) { 217 die ("To use reCAPTCHA Mailhide, you need to have the mcrypt php module installed."); 218 }stats.php http://tux-target.googlecode.com/svn/trunk/ | PHP | 407 lines
10 11<?php 12function generateHtml($server) 82 while (!feof($fp)): 83 $line = fgets($fp, 2048); 84 $out = array(substr($line,0,strlen($line)-1));//remove \n 397while (!feof($html_fp)): 398 $line = fgets($html_fp, 2048); 399 echo $line;recaptchalib.php https://bitbucket.org/Mainboarder/s2firewall.git | PHP | 277 lines
1<?php 2/* 2/* 3 * This is a PHP library that handles calling reCAPTCHA. 4 * - Documentation and latest version 4 * - Documentation and latest version 5 * http://recaptcha.net/plugins/php/ 6 * - Get a reCAPTCHA API Key 74 $http_request .= "Content-Length: " . strlen($req) . "\r\n"; 75 $http_request .= "User-Agent: reCAPTCHA/PHP\r\n"; 76 $http_request .= "\r\n"; 86 while ( !feof($fs) ) 87 $response .= fgets($fs, 1160); // One TCP-IP packet 88 fclose($fs); 215 if (! function_exists ("mcrypt_encrypt")) { 216 die ("To use reCAPTCHA Mailhide, you need to have the mcrypt php module installed."); 217 }functions.recaptchalib.php https://github.com/dkobia/Garden.git | PHP | 278 lines
1<?php 2/* 2/* 3 * This is a PHP library that handles calling reCAPTCHA. 4 * - Documentation and latest version 4 * - Documentation and latest version 5 * http://recaptcha.net/plugins/php/ 6 * - Get a reCAPTCHA API Key 74 $http_request .= "Content-Length: " . strlen($req) . "\r\n"; 75 $http_request .= "User-Agent: reCAPTCHA/PHP\r\n"; 76 $http_request .= "\r\n"; 86 while ( !feof($fs) ) 87 $response .= fgets($fs, 1160); // One TCP-IP packet 88 fclose($fs); 216 if (! function_exists ("mcrypt_encrypt")) { 217 die ("To use reCAPTCHA Mailhide, you need to have the mcrypt php module installed."); 218 }SMTPMailer.inc.php https://github.com/mcrider/pkpUpgradeTestSuite.git | PHP | 381 lines
1<?php 2 3/** 4 * @file classes/mail/SMTPMailer.inc.php 5 * 16 17// $Id: SMTPMailer.inc.php,v 1.5 2009/05/13 00:13:20 asmecher Exp $ 18 219 do { 220 $line = @fgets($this->socket); 221 } while($line !== false && substr($line, 3, 1) != ' ');SYLK.php https://gitlab.com/0sajib0/NECI | PHP | 450 lines
34 define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../'); 35 require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php'); 36} 44 */ 45class PHPExcel_Reader_SYLK extends PHPExcel_Reader_Abstract implements PHPExcel_Reader_IReader 46{ 213 /** 214 * Loads PHPExcel from file into PHPExcel instance 215 * 216 * @param string $pFilename 217 * @param PHPExcel $objPHPExcel 218 * @return PHPExcel 220 */ 221 public function loadIntoExisting($pFilename, PHPExcel $objPHPExcel) 222 {class-zip.php https://gitlab.com/endomorphosis/falkenstein | PHP | 306 lines
1<?php 2 117 if (is_array($read) && in_array($pipes[1], $read)) { 118 $w = fgets($pipes[1]); 119 // Logging all this really slows things down; use debug to mitigate 140 if (is_array($read) && in_array($pipes[2], $read)) { 141 $last_error = fgets($pipes[2]); 142 if (!empty($last_error)) $this->last_error = rtrim($last_error); 217 public function open($path, $flags = 0) { 218 if(!class_exists('PclZip')) include_once(ABSPATH.'/wp-admin/includes/class-pclzip.php'); 219 if(!class_exists('PclZip')) {recaptchalib.php https://gitlab.com/blueprintmrk/bladencountyrecords | PHP | 277 lines
1<?php 2/* 2/* 3 * This is a PHP library that handles calling reCAPTCHA. 4 * - Documentation and latest version 4 * - Documentation and latest version 5 * http://recaptcha.net/plugins/php/ 6 * - Get a reCAPTCHA API Key 74 $http_request .= "Content-Length: " . strlen($req) . "\r\n"; 75 $http_request .= "User-Agent: reCAPTCHA/PHP\r\n"; 76 $http_request .= "\r\n"; 86 while ( !feof($fs) ) 87 $response .= fgets($fs, 1160); // One TCP-IP packet 88 fclose($fs); 215 if (! function_exists ("mcrypt_encrypt")) { 216 die ("To use reCAPTCHA Mailhide, you need to have the mcrypt php module installed."); 217 }Socket.php https://github.com/jorgenils/zend-framework.git | PHP | 285 lines
1<?php 2 23 24require_once 'Zend/Uri/Http.php'; 25require_once 'Zend/Http/Client/Adapter/Interface.php'; 25require_once 'Zend/Http/Client/Adapter/Interface.php'; 26require_once 'Zend/Http/Client/Adapter/Exception.php'; 27 29 * A sockets based (fsockopen) adapter class for Zend_Http_Client. Can be used 30 * on almost every PHP environment, and does not require any special extensions. 31 * 184 $gotStatus = false; 185 while ($line = @fgets($this->socket)) { 186 $gotStatus = $gotStatus || (strpos($line, 'HTTP') !== false); 215 $chunk = ''; 216 $line = @fgets($this->socket); 217 $chunk .= $line;Download.php https://bitbucket.org/dnejedly/eaparts.git | PHP | 307 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 141 while (!feof($this->_handle)) { 142 $str = fgets($this->_handle, 1024); 143 if ($str == "\r\n") { 291 while (!feof($handle)) { 292 print fgets($handle, 1024); 293 }Stream.php https://gitlab.com/yousafsyed/easternglamor | PHP | 297 lines
1<?php 2/** 16/** 17 * Represents an HTTP response message as PHP stream resource 18 */ 175 if (!$headerComplete) { 176 while (false !== ($nextLine = fgets($stream))) { 177 $headersString .= trim($nextLine)."\r\n";generate_utf_tables.php https://github.com/VSEphpbb/phpbb.git | PHP | 575 lines
5* 6* @copyright (c) phpBB Limited <https://www.phpbb.com> 7* @license GNU General Public License, version 2 (GPL-2.0) 39 40require_once($phpbb_root_path . 'includes/utf/utf_normalizer.' . $phpEx); 41$file_contents = array(); 182{ 183 $p = explode(';', fgets($fp, 1024)); 184 $cp = hexdec($p[0]); 273 274 if (!$fp = fopen($phpbb_root_path . 'includes/utf/data/' . $file . '.' . $phpEx, 'wb')) 275 { 412 echo "Writing to search_indexer_$idx.$phpEx\n"; 413 $fp = fopen($phpbb_root_path . 'includes/utf/data/search_indexer_' . $idx . '.' . $phpEx, 'wb'); 414 fwrite($fp, '<?php return ' . my_var_export($contents) . ';');Stream.php https://bitbucket.org/gencer/zf2.git | PHP | 298 lines
1<?php 2/** 16/** 17 * Represents an HTTP response message as PHP stream resource 18 */ 175 if (!$headerComplete) { 176 while (false !== ($nextLine = fgets($stream))) { 177Abstract.php https://github.com/tanduy/zf.git | PHP | 411 lines
1<?php 2 27 */ 28require_once 'Zend/Validate.php'; 29 33 */ 34require_once 'Zend/Validate/Hostname.php'; 35 141 */ 142 require_once 'Zend/Mail/Protocol/Exception.php'; 143 throw new Zend_Mail_Protocol_Exception(join(', ', $this->_validHost->getMessages())); 251 */ 252 require_once 'Zend/Mail/Protocol/Exception.php'; 253 throw new Zend_Mail_Protocol_Exception($errorStr); 259 */ 260 require_once 'Zend/Mail/Protocol/Exception.php'; 261 throw new Zend_Mail_Protocol_Exception('Could not set stream timeout');excel.php https://github.com/toxik/SportsNews.git | PHP | 235 lines
1<?php 2/** 7 * This is used to export associative array data directly to MS-Excel 8 * @requires PHP 4 >= 4.3.2 9 * @author Ignatius Teo <ignatius@act28.com> 12 * @date 20 Jan 2005 13 * $Id: excel.php,v 1.3 2005/01/20 09:58:58 Owner Exp $ 14 */ 35 * @returns void 36 * @see http://www.phpdig.net/ref/rn45re877.html 37 */ 101 /** 102 * read the underlying stream resource (automatically called by fread/fgets) 103 * @todo modify this to convert an excel stream to an arrayclass-terminus.php https://gitlab.com/Blueprint-Marketing/cli | PHP | 417 lines
27 if(!$configurator) { 28 $configurator = new Terminus\Configurator(TERMINUS_ROOT . '/php/config-spec.php'); 29 } 211 212 $answer = trim(fgets(STDIN)); 213 337 338 $php_bin = self::get_php_binary(); 339 340 if(Terminus::is_test()) { 341 $script_path = __DIR__.'/boot-fs.php'; 342 } else { 354 private static function get_php_binary() { 355 if(defined('PHP_BINARY')) 356 return PHP_BINARY;akismet.php https://github.com/micz/elencode.git | PHP | 309 lines
1<?php 2/* 28 <div> 29 <input class="text" name="akismet_key" id="akismet_key" value="<?php bb_form_option('akismet_key'); ?>" /> 30 <p><?php _e('You do not need a key to run bbPress, but if you want to take advantage of Akismet\'s powerful spam blocking, you\'ll need one.'); ?></p> 30 <p><?php _e('You do not need a key to run bbPress, but if you want to take advantage of Akismet\'s powerful spam blocking, you\'ll need one.'); ?></p> 31 <p><?php _e('You can get an Akismet key at <a href="http://wordpress.com/api-keys/">WordPress.com</a>') ?></p> 32 </div> 41</form> 42<?php 43} 106 while ( !feof($fs) ) 107 $response .= fgets($fs, 1160); // One TCP-IP packet 108 fclose($fs); 272 if ( !bb_akismet_verify_key( bb_get_option( 'akismet_key' ) ) ) : ?> 273<div class="error"><p><?php printf(__('The API key you have specified is invalid. Please double check the <strong>Akismet Key</strong> set in <a href="%s">Akismet configuration</a>. If you don\'t have an API key yet, you can get one at <a href="%s">WordPress.com</a>.'), 'admin-base.php?plugin=bb_ksd_configuration_page', 'http://wordpress.com/api-keys/'); ?></p></div> 274<?php endif;class.pop3.php https://gitlab.com/vince.omega/General-Code-Dump-From-Desktop | PHP | 397 lines
1<?php 2/** 2/** 3 * PHPMailer POP-Before-SMTP Authentication Class. 4 * PHP Version 5 5 * @package PHPMailer 6 * @link https://github.com/PHPMailer/PHPMailer/ 7 * @author Marcus Bointon (Synchro/coolbru) <phpmailer@synchromedia.co.uk> 20/** 21 * PHPMailer POP-Before-SMTP Authentication Class. 22 * Specifically for PHPMailer to use for RFC1939 POP-before-SMTP authentication. 23 * Does not support APOP. 24 * @package PHPMailer 25 * @author Richard Davey (original author) <rich@corephp.co.uk> 25 * @author Richard Davey (original author) <rich@corephp.co.uk> 26 * @author Marcus Bointon (Synchro/coolbru) <phpmailer@synchromedia.co.uk> 27 * @author Jim Jagielski (jimjag) <jimjag@gmail.com>HttpClient.class.php https://github.com/bermi/akelos.git | PHP | 339 lines
1<?php 2 109 while (!feof($fp)) { 110 $line = fgets($fp, 4096); 111 if ($atStart) { 158 $this->debug('Content is gzip encoded, unzipping it'); 159 $this->content = substr($this->content, 10); // See http://www.php.net/manual/en/function.gzencode.php 160 $this->content = gzinflate($this->content);test_ext_stream.cpp https://github.com/diegoIta/hiphop-php.git | C++ | 440 lines
2 +----------------------------------------------------------------------+ 3 | HipHop for PHP | 4 +----------------------------------------------------------------------+ 6 +----------------------------------------------------------------------+ 7 | This source file is subject to version 3.01 of the PHP license, | 8 | that is bundled with this package in the file LICENSE, and is | 9 | available through the world-wide-web at the following url: | 10 | http://www.php.net/license/3_01.txt | 11 | If you did not receive a copy of the PHP license and are unable to | 12 | obtain it through the world-wide-web, please send a note to | 13 | license@php.net so we can mail you a copy immediately. | 14 +----------------------------------------------------------------------+ 131 Variant f = f_fopen("test/test_ext_file.tmp", "r"); 132 VS(f_fgets(f), "Testing Ext File\n"); 133 return Count(true);Data.php https://gitlab.com/flyhope/Hiblog | PHP | 404 lines
1<?php 2/** 389 if ($fp) { 390 while (!feof($fp) && ($current_line = fgets($fp)) !== false) { 391 $_result .= $current_line;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');Server.php https://gitlab.com/robfrawley/php-memcached-admin | PHP | 513 lines
1<?php 2/** 5 * @license http://www.apache.org/licenses/LICENSE-2.0 Apache-2.0 6 * @package phpMemcachedAdmin 7 */ 61 # Getting first line 62 $buffer = fgets($handle); 63 79 # Getting line 80 $line = fgets($handle); 81Database.php https://github.com/ckdimka/core.git | PHP | 419 lines
1<?php 2// vim: set ts=4 sw=4 sts=4 et: 11 * It is also available through the world-wide-web at this URL: 12 * http://opensource.org/licenses/osl-3.0.php 13 * If you did not receive a copy of the license and are unable to 16 * 17 * PHP version 5.3.0 18 * 21 * @copyright Copyright (c) 2011 Creative Development LLC <info@cdev.ru>. All rights reserved 22 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 23 * @link http://www.litecommerce.com/ 362 do { 363 $c .= fgets($fp, 1024); 364 $endPos = strlen($c) - 1; 365 366 } while (substr($c, $endPos) != PHP_EOL && !feof($fp)); 367transport_connection.php https://github.com/ksecor/civicrm.git | PHP | 257 lines
1<?php 2/** 49 * 50 * @todo The @ should be removed when PHP doesn't throw warnings for connect problems. 51 * 79 { 80 throw new ezcBaseExtensionNotFoundException( 'openssl', null, "PHP not configured --with-openssl." ); 81 } 205 { 206 // in case there is a problem with the connection fgets() returns false 207 while ( strpos( $data, self::CRLF ) === false ) 208 { 209 $line = fgets( $this->connection, 512 ); 210 210 211 /* If the mail server aborts the connection, fgets() will 212 * return false. We need to throw an exception here to preventProcess.php https://github.com/tumf/tepco.git | PHP | 264 lines
1<?php 2 15 * Process is a thin wrapper around proc_* functions to ease 16 * start independent PHP processes. 17 * 47 if (!function_exists('proc_open')) { 48 throw new \RuntimeException('The Process class relies on proc_open, which is not available on your PHP installation.'); 49 } 71 * 72 * @param Closure|string|array $callback A PHP callback to run whenever there is some 73 * output available on STDOUT or STDERR 128 $c = false; 129 if ($line = (binary) fgets($pipes[1], 1024)) { 130 $called = $c = true; 133 134 if ($line = fgets($pipes[2], 1024)) { 135 $called = $c = true;QuestionHelper.php https://gitlab.com/Isaki/le331.fr | PHP | 446 lines
1<?php 2 104 * 105 * This method is public for PHP 5.3 compatibility, it should be private. 106 * 134 if (false === $ret) { 135 $ret = fgets($inputStream, 4096); 136 if (false === $ret) { 349 shell_exec('stty -echo'); 350 $value = fgets($inputStream, 4096); 351 shell_exec(sprintf('stty %s', $sttyMode));graph.class.php https://github.com/LATC/EU-data-cloud.git | PHP | 381 lines
1<?php 2require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'moriarty.inc.php'; 2require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'moriarty.inc.php'; 3require_once MORIARTY_ARC_DIR . "ARC2.php"; 4require_once MORIARTY_DIR . 'httprequest.class.php'; 4require_once MORIARTY_DIR . 'httprequest.class.php'; 5require_once MORIARTY_DIR . 'httprequestfactory.class.php'; 6require_once MORIARTY_DIR . 'simplegraph.class.php'; 6require_once MORIARTY_DIR . 'simplegraph.class.php'; 7require_once MORIARTY_DIR . 'changeset.class.php'; 8/** 157 $lineCount=0; 158 while($line = fgets($pointer)){ 159 $batch.=$line;Akismet.class.php https://github.com/luthercollege/reason_package.git | PHP | 476 lines
13 * 14 * Please be aware that this class is PHP5 only. Attempts to run it under PHP4 will most likely fail. 15 * 21 * @copyright Alex Potsides, {@link http://www.achingbrain.net http://www.achingbrain.net} 22 * @license http://www.opensource.org/licenses/bsd-license.php BSD License 23 */ 25/** 26 * The Akismet PHP5 Class 27 * 113 /* 114 * This is necessary if the server PHP5 is running on has been set up to run PHP4 and 115 * PHP5 concurently and is actually running through a separate proxy al a these instructions: 115 * PHP5 concurently and is actually running through a separate proxy al a these instructions: 116 * http://www.schlitt.info/applications/blog/archives/83_How_to_run_PHP4_and_PHP_5_parallel.html 117 * and http://wiki.coggeshall.org/37.htmlfile.php https://github.com/jongwook/ksa14-kohana.git | PHP | 466 lines
1<?php defined('SYSPATH') or die('No direct script access.'); 2/** 32 * * Kohana 3.0.x 33 * * PHP 5.2.4 or greater 34 * 38 * @copyright (c) 2009-2010 Kohana Team 39 * @license http://kohanaphp.com/license 40 */ 79 } 80 // PHP < 5.3 exception handle 81 catch (ErrorException $e) 84 } 85 // PHP >= 5.3 exception handle 86 catch (UnexpectedValueException $e) 447 * 448 * @see http://php.net/manual/en/function.mkdir.php 449 * @param string directoryPOP35.php https://github.com/pixelephant/mak-web.git | PHP | 365 lines
1<?php 2 4 * * 5 * XPertMailer is a PHP Mail Class that can send and read messages in MIME format. * 6 * This file is part of the XPertMailer package (http://xpertmailer.sourceforge.net/) * 22 23if (!class_exists('FUNC5')) require_once 'FUNC5.php'; 24 39 do { 40 if ($result = fgets($conn, self::BLEN)) { 41 $resp[] = $result; 244 do { 245 if ($res = fgets($conn, self::BLEN)) $ret .= $res; 246 else { 286 do { 287 if ($res = fgets($conn, self::BLEN)) { 288 if (count($exp = explode(' ', substr($res, 0, -strlen(self::CRLF)))) == 2) {Abstract.php https://github.com/adrienne/Readability.git | PHP | 385 lines
1<?php 2 20 * @license http://framework.zend.com/license/new-bsd New BSD License 21 * @version $Id: Abstract.php 12395 2008-11-07 23:58:38Z nico $ 22 */ 27 */ 28require_once 'Zend/Validate.php'; 29 33 */ 34require_once 'Zend/Validate/Hostname.php'; 35 46 * @license http://framework.zend.com/license/new-bsd New BSD License 47 * @version $Id: Abstract.php 12395 2008-11-07 23:58:38Z nico $ 48 * @todo Implement proxy settings 136 */ 137 require_once 'Zend/Mail/Protocol/Exception.php'; 138 throw new Zend_Mail_Protocol_Exception(join(', ', $this->_validHost->getMessages()));index.php https://github.com/rbolliger/otokou.git | PHP | 186 lines
1<?php if ( isset($_GET["Action"]) && $_GET["Action"] == "ViewPHP") { $Script = $_GET["Script"]; highlight_file($Script); exit(); } ?> 2<?php if ( isset($_GET["Action"]) && $_GET["Action"] == "ViewHTML") { $Script = $_GET["Script"]; writeHTML($Script); exit(); } ?> 46 if ( !in_array($FileName,$Exclusion)) 47 $Tree[] = str_replace(".php","",$FileName); 48 } 69 <table style='border: 2px solid #FFFFFF;'><tr><td> 70 <div style='font-size: 11px; padding: 2px; color: #FFFFFF; background-color: #666666; border-bottom: 3px solid #484848; width: 222px;'> Release <?php echo $Version; ?></div> 71 <div style='border: 3px solid #D0D0D0; border-top: 1px solid #FFFFFF; background-color: #FAFAFA; width: 220px; overflow: auto'> 127 <script><br/> 128 addImage("testPicture","pictureMap","draw.php?ImageMap=get");<br/> 129 </script><br/> 153 document.getElementById("render").innerHTML = "<img src='scripts/"+FileName+".php?Seed="+Math.random(100)+"' id='testPicture' alt='' class='pChartPicture'/>"; 154 viewPHP("scripts/"+FileName+".php"); 155 166 167 URL = "index.php?Action=ViewPHP&Script=" + URL; 168mail.php https://gitlab.com/2202Programming/navxmxp | PHP | 406 lines
95 $header .= 'Return-Path: ' . $this->from . $this->newline; 96 $header .= 'X-Mailer: PHP/' . phpversion() . $this->newline; 97 $header .= 'Content-Type: multipart/related; boundary="' . $boundary . '"' . $this->newline . $this->newline; 162 163 while ($line = fgets($handle, 515)) { 164 if (substr($line, 3, 1) == ' ') { 171 172 while ($line = fgets($handle, 515)) { 173 $reply .= $line; 224 225 while ($line = fgets($handle, 515)) { 226 $reply .= $line; 241 242 while ($line = fgets($handle, 515)) { 243 $reply .= $line;Maildir.php https://github.com/kervin/kyzstudio.git | PHP | 475 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Maildir.php 20096 2010-01-06 02:05:09Z bkarwin $ 21 */ 26 */ 27#require_once 'Zend/Mail/Storage/Abstract.php'; 28 31 */ 32#require_once 'Zend/Mail/Message/File.php'; 33 36 */ 37#require_once 'Zend/Mail/Storage.php'; 38 124 */ 125 #require_once 'Zend/Mail/Storage/Exception.php'; 126 throw new Zend_Mail_Storage_Exception('id does not exist');Abstract.php https://bitbucket.org/baruffaldi/cms-php-bfcms.git | PHP | 385 lines
1<?php 2 20 * @license http://framework.zend.com/license/new-bsd New BSD License 21 * @version $Id: Abstract.php 8064 2008-02-16 10:58:39Z thomas $ 22 */ 27 */ 28require_once 'Zend/Validate.php'; 29 33 */ 34require_once 'Zend/Validate/Hostname.php'; 35 46 * @license http://framework.zend.com/license/new-bsd New BSD License 47 * @version $Id: Abstract.php 8064 2008-02-16 10:58:39Z thomas $ 48 * @todo Implement proxy settings 136 */ 137 require_once 'Zend/Mail/Protocol/Exception.php'; 138 throw new Zend_Mail_Protocol_Exception(join(', ', $this->_validHost->getMessages()));Proxy.php https://github.com/wzs/Scrappr.git | PHP | 268 lines
1<?php 2 18 * @subpackage Client_Adapter 19 * @version $Id: Proxy.php 9868 2008-07-02 06:47:38Z shahar $ 20 * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com) 23 24require_once 'Zend/Uri/Http.php'; 25require_once 'Zend/Http/Client.php'; 25require_once 'Zend/Http/Client.php'; 26require_once 'Zend/Http/Client/Adapter/Socket.php'; 27 96 $this->close(); 97 require_once 'Zend/Http/Client/Adapter/Exception.php'; 98 throw new Zend_Http_Client_Adapter_Exception( 103 if (!stream_set_timeout($this->socket, (int) $this->config['timeout'])) { 104 require_once 'Zend/Http/Client/Adapter/Exception.php'; 105 throw new Zend_Http_Client_Adapter_Exception('Unable to set the connection timeout');Abstract.php https://bitbucket.org/brunoMaurice/youfood.git | PHP | 385 lines
1<?php 2 20 * @license http://framework.zend.com/license/new-bsd New BSD License 21 * @version $Id: Abstract.php 16219 2009-06-21 19:45:39Z thomas $ 22 */ 27 */ 28require_once 'Zend/Validate.php'; 29 33 */ 34require_once 'Zend/Validate/Hostname.php'; 35 46 * @license http://framework.zend.com/license/new-bsd New BSD License 47 * @version $Id: Abstract.php 16219 2009-06-21 19:45:39Z thomas $ 48 * @todo Implement proxy settings 136 */ 137 require_once 'Zend/Mail/Protocol/Exception.php'; 138 throw new Zend_Mail_Protocol_Exception(join(', ', $this->_validHost->getMessages()));CsvBulkLoader.php https://gitlab.com/djpmedia/silverstripe-framework | PHP | 453 lines
1<?php 2 123 } 124 print $failedMessage . PHP_EOL; 125 } finally { 175 if ($this->hasHeaderRow) { 176 $header = fgets($from); 177 fwrite($to, $header); 185 while (!feof($from)) { 186 fwrite($to, fgets($from)); 187manager.cpp https://github.com/luizribeiro/smaco.old.git | C++ | 421 lines
107const char *url[2] = { 108 "http://acmicpc-live-archive.uva.es/nuevoportal/status.php", 109 "http://uva.onlinejudge.org/index.php?option=onlinejudge&Itemid=19" 130 int ic; 131 for(int k = 0; k < 28; ++k) fgets(line, 2048, stdin); 132 register char c; 160out: 161 while(fgets(line, 2048, stdin)); 162} 169 y[1] = y[4] = y[15] = y[17] = y[19] = y[22] = 1; 170 for(int i = 0; i < 231; ++i) fgets(line, 2048, stdin); 171 int ic, k; 210 } 211 while(fgets(line, 2048, stdin)); 212}Pop3.php https://github.com/bhaumik25/zend-framework.git | PHP | 400 lines
1<?php 2/** 22 */ 23require_once 'Zend/Mail/Transport/Exception.php'; 24 142 { 143 $result = fgets($this->_socket); 144 if (!is_string($result)) { 161 $message = ''; 162 $line = fgets($this->_socket); 163 while ($line && trim($line) != '.') { 164 $message .= $line; 165 $line = fgets($this->_socket); 166 };SMW_Factbox.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 176 lines
1<?php 2/** 124 if ( !isset( $parseroutput->mSMWData ) || $parseroutput->mSMWData->stubObject ) { 125 $semdata = smwfGetStore()->getSemanticData( SMWDIWikiPage::newFromTitle( $title ) ); 126 } else {community.php https://github.com/radicalsuz/amp.git | PHP | 85 lines
37<p>Se você é um <b>usuário comum do PHPlist</b> e acha que já o conhece bem, você pode ajudar respondendo às questões de outros usuários.</p> 38<p>Se você é <b>novo no PHPlist</b> e tem tido dificuldades em configurá-lo para funcionar em seu site, você pode ajudar tentando procurar a solução através das opções acima, depois postando imediatamente a mensagem "não funciona". Geralmente os problemas que você possa ter estão relacionados ao ambiente em que a sua instação do PHPlist está rodando. 39Ter somente um desenvolvedor para o PHPlist tem a desvantagem de não poder ser testado em todas as plataformas e em todas as versões do PHP.</p> 51<li> 52<p>Você pode usar o PHPlist para seus clientes pagos (se você é faz parte de uma equipe de web, por exemplo) e mostre que o sistema é uma grande ferramente para atingir os seus objetivos. Então, se eles quiserem algumas mudanças, você pode <b>encomendar novas características</b> que s&aeo; pagas pelos seus clientes. Se você quiser saber quanto custaria para incluir novas características ào PHPlist, <a href="mailto:phplist@tincan.co.uk?subject=request for quote to change PHPlist">entre em contato</a>. 53A maioria das novas características do PHPlist são adicionadas a pedidos de clientes pagos. Você será beneficiado pagando uma pequena quantia para alcançar seus objetivos, e também beneficiará a comunidade que ganhará com as novas características e ainda contribuirá com os desenvolvedores para ganhar algum dinheiro trabalhando no PHPlist :-)</p></li> 53A maioria das novas características do PHPlist são adicionadas a pedidos de clientes pagos. Você será beneficiado pagando uma pequena quantia para alcançar seus objetivos, e também beneficiará a comunidade que ganhará com as novas características e ainda contribuirá com os desenvolvedores para ganhar algum dinheiro trabalhando no PHPlist :-)</p></li> 54<li><p>Se você usa o PHPlist regularmente e tem uma <b>grande quantidade de inscritos</b> (mais de 1000), nós estamos interessados nas características do seus sistema e no envio de estatísticas. Como opção padrão o PHPlist enviará estatistísticas para <a href="mailto:phplist-stats@tincan.co.uk">phplist-stats@tincan.co.uk</a>, mas não enviará detalhes do seu sistema. Se você quer contribuir para que a aplicação funcione melhor, seria ótimo que você pudesse nos enviar as informações sobre seu sistema, assim como deixar ativada a opção para enviar as estatísticas ao endereço acima. 55As suas informações não estarão disponíveis para as pessoas, mas nós as analisaremos para ter uma idéia se o PHPlist tem funcionado bem.</p></li> 59<p><b><a name="lists"></a>Lista de Discussão</b><br/> 60O PHPlist costumava ter uma lista de discusão, mas foi encerrada. Você ainda pode ler os arquivos da lista. Para suporte ao PHPlist tente os <a href="#forums">fóruns</a>. 61<li>Para acessar os arquivos da lista de discussão <a href="http://lists.cupboard.org/archive/tincan.co.uk" target="_blank">clique aqui</a> 70<li>Versão do PHPlist: <?php echo VERSION?></li> 71<li>Versão do PHP: <?php echo phpversion()?></li> 72<li>Servido Web: <?php echo getenv("SERVER_SOFTWARE")?></li>start.html https://github.com/whitypig/emacs-cppref.git | HTML | 212 lines
14<meta name="keywords" content="c,io,start" /> 15<link rel="search" type="application/opensearchdescription+xml" href="/wiki/lib/exe/opensearch.php" title="C++ Reference" /> 16<link rel="start" href="/wiki/" /> 17<link rel="contents" href="/wiki/c/io/start?do=index" title="Index" /> 18<link rel="alternate" type="application/rss+xml" title="Recent Changes" href="/wiki/feed.php" /> 19<link rel="alternate" type="application/rss+xml" title="Current Namespace" href="/wiki/feed.php?mode=list&ns=c:io" /> 22<link rel="alternate" type="text/plain" title="Wiki Markup" href="/wiki/_export/raw/c/io/start" /> 23<link rel="stylesheet" media="all" type="text/css" href="/wiki/lib/exe/css.php?s=all&t=custom1" /> 24<link rel="stylesheet" media="screen" type="text/css" href="/wiki/lib/exe/css.php?t=custom1" /> 24<link rel="stylesheet" media="screen" type="text/css" href="/wiki/lib/exe/css.php?t=custom1" /> 25<link rel="stylesheet" media="print" type="text/css" href="/wiki/lib/exe/css.php?s=print&t=custom1" /> 26<script type="text/javascript" charset="utf-8" src="/wiki/lib/exe/js.php?edit=0&write=1" ></script> 87 <tr class="row7"> 88 <td class="col0"><a href="../../c/io/fgets.html" class="wikilink1" title="c:io:fgets">fgets</a></td><td class="col1">get a string of characters from a stream</td> 89 </tr>SYLK.php https://PHPExcel.svn.codeplex.com/svn | PHP | 507 lines
37/** PHPExcel */ 38require_once PHPEXCEL_ROOT . 'PHPExcel.php'; 39 40/** PHPExcel_Reader_IReader */ 41require_once PHPEXCEL_ROOT . 'PHPExcel/Reader/IReader.php'; 42 43/** PHPExcel_Worksheet */ 44require_once PHPEXCEL_ROOT . 'PHPExcel/Worksheet.php'; 45 46/** PHPExcel_Cell */ 47require_once PHPEXCEL_ROOT . 'PHPExcel/Cell.php'; 48 52 /** PHPExcel_Reader_DefaultReadFilter */ 53require_once PHPEXCEL_ROOT . 'PHPExcel/Reader/DefaultReadFilter.php'; 54passwd.php https://github.com/Excito/horde3.git | PHP | 445 lines
1<?php 2/** 22 * 23 * $Horde: framework/Auth/Auth/passwd.php,v 1.16.10.20 2009/01/06 15:22:50 jan Exp $ 24 * 24 * 25 * Copyright 1997-2007 Rasmus Lerdorf <rasmus@php.net> 26 * Copyright 2002-2009 The Horde Project (http://www.horde.org/) 28 * See the enclosed file COPYING for license information (LGPL). If you 29 * did not receive this file, see http://opensource.org/licenses/lgpl-license.php. 30 * 30 * 31 * @author Rasmus Lerdorf <rasmus@php.net> 32 * @author Chuck Hagenbuch <chuck@horde.org> 167 while (!feof($fp)) { 168 $line = trim(fgets($fp, 128)); 169 if (empty($line)) {generate-includes.php https://gitlab.com/Griffolion/Game-Embargo-Tracker | PHP | 192 lines
137// stub 138$php = "<?php 139 164echo "Writing HTMLPurifier.includes.php... "; 165file_put_contents('HTMLPurifier.includes.php', $php); 166echo "done!\n"; 167 168$php = "<?php 169 184foreach ($files as $file) { 185 $php .= "require_once \$__dir . '/$file';" . PHP_EOL; 186} 188echo "Writing HTMLPurifier.safe-includes.php... "; 189file_put_contents('HTMLPurifier.safe-includes.php', $php); 190echo "done!\n";mailtrafficlib.php https://bitbucket.org/Nemcio/kloxo-mr.git | PHP | 183 lines
1<?php 2 49 } 50 $string = fgets($fp); 51 $totstring .= $string; 170 while(!feof($fp)) { 171 $string = fgets($fp); 172 if (csa($string, $domainname)) {File.php https://github.com/bicho44/imglistados.git | PHP | 492 lines
1<?php 2/** 32 * * Kohana 3.0.x 33 * * PHP 5.2.4 or greater 34 * 152 153 // Run first fgets(). Cache data starts from the second line 154 // as the first contains the lifetime timestamp 154 // as the first contains the lifetime timestamp 155 $data->fgets(); 156 160 { 161 $cache .= $data->fgets(); 162 } 439 * 440 * @link http://php.net/manual/en/function.mkdir.php 441 * @param string $directory directory pathVarnishAdminSocket.php https://github.com/arjenschat/php-varnish.git | PHP | 281 lines
1<?php 2/** 144 while ( ! feof($this->fp) ) { 145 $response = fgets( $this->fp, 1024 ); 146 if( ! $response ){ 162 while ( ! feof($this->fp) && strlen($response) < $len ) { 163 $response .= fgets( $this->fp, 1024 ); 164 }SMTP.php https://gitlab.com/staging06/myproject | PHP | 452 lines
1<?php 2 10 11require_once dirname(__FILE__) . "/../ClassLoader.php"; 12Swift_ClassLoader::load("Swift_ConnectionBase"); 211 * See the constants ENC_TLS, ENC_SSL and ENC_OFF 212 * NOTE: PHP needs to have been compiled with OpenSSL for SSL and TLS to work 213 * NOTE: Some PHP installations will not have the TLS stream wrapper 246 stream_set_timeout($this->handle, $this->timeout); 247 $tmp = @fgets($this->handle); 248 if ($tmp === false && !feof($this->handle)) 359 { 360 if (preg_match("/^[A-Za-z0-9-]+\\.php\$/", $file) && $file != "index.php") 361 {update_check.php https://github.com/robertleeplummerjr/bluebox.git | PHP | 107 lines
1<?PHP 2/** 13 while (!feof($rfh)) { 14 $line = fgets($rfh); 15 if (strstr($line,"AMPDBUSER=")) {share.php https://gitlab.com/AaronDeb/cloudbox | PHP | 190 lines
1<?PHP 2include 'init.php'; 58 59 while ($line = fgets($fh)) { 60 $fileArray[$i] = $line;console.php https://gitlab.com/BeS/io.schiessle.org | PHP | 169 lines
1#!/usr/bin/env php 2<?php 25$helptext = <<<ENDOFHELP 26console.php - provide an interactive PHP interpreter for testing 27 59 } else { 60 return fgets(STDIN); 61 } 64/** 65 * On Unix-like systems where PHP readline extension isn't present, 66 * -cough- Mac OS X -cough- we can shell out to bash to do it for us. 96 // Shell probably spit out an error message, sorry :( 97 // Fall through to fgets()... 98 } else { 110 } 111 return fgets(STDIN); 112}File.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 * 148 if ($length === null) { 149 return @fgets($this->fh); 150 } 151 152 return @fgets($this->fh, $length); 153 }function.fgets.html https://bitbucket.org/thncr/manuals.git | HTML | 178 lines
9 <div class="prev" style="text-align: left; float: left;"><a href="function.fgetcsv.html">fgetcsv</a></div> 10 <div class="next" style="text-align: right; float: right;"><a href="function.fgetss.html">fgetss</a></div> 11 <div class="up"><a href="ref.filesystem.html">Filesystem 函数</a></div> 15 <h1 class="refname">fgets</h1> 16 <p class="verinfo">(PHP 4, PHP 5)</p><p class="refpurpose"><span class="refname">fgets</span> — <span class="dc-title">从文件指针中读取一行</span></p> 17 132<div class="phpcode"><code><span style="color: #000000"> 133<span style="color: #0000BB"><?php<br />$handle </span><span style="color: #007700">= @</span><span style="color: #0000BB">fopen</span><span style="color: #007700">(</span><span style="color: #DD0000">"/tmp/inputfile.txt"</span><span style="color: #007700">, </span><span style="color: #DD0000">"r"</span><span style="color: #007700">);<br />if (</span><span style="color: #0000BB">$handle</span><span style="color: #007700">) {<br /> while ((</span><span style="color: #0000BB">$buffer </span><span style="color: #007700">= </span><span style="color: #0000BB">fgets</span><span style="color: #007700">(</span><span style="color: #0000BB">$handle</span><span style="color: #007700">, </span><span style="color: #0000BB">4096</span><span style="color: #007700">)) !== </span><span style="color: #0000BB">false</span><span style="color: #007700">) {<br /> echo </span><span style="color: #0000BB">$buffer</span><span style="color: #007700">;<br /> }<br /> if (!</span><span style="color: #0000BB">feof</span><span style="color: #007700">(</span><span style="color: #0000BB">$handle</span><span style="color: #007700">)) {<br /> echo </span><span style="color: #DD0000">"Error: unexpected fgets() fail\n"</span><span style="color: #007700">;<br /> }<br /> </span><span style="color: #0000BB">fclose</span><span style="color: #007700">(</span><span style="color: #0000BB">$handle</span><span style="color: #007700">);<br />}<br /></span><span style="color: #0000BB">?></span> 134</span> 160 <ul class="simplelist"> 161 <li class="member"> <span class="function"><a href="function.fgetss.html" class="function" rel="rdfs-seeAlso">fgetss()</a> - 从文件指针中读取一行并过滤掉 HTML 标记</span></li> 162 <li class="member"> <span class="function"><a href="function.fread.html" class="function" rel="rdfs-seeAlso">fread()</a> - 读取文件(可安全用于二进制文件)</span></li> 174 <div class="prev" style="text-align: left; float: left;"><a href="function.fgetcsv.html">fgetcsv</a></div> 175 <div class="next" style="text-align: right; float: right;"><a href="function.fgetss.html">fgetss</a></div> 176 <div class="up"><a href="ref.filesystem.html">Filesystem 函数</a></div>Maildir.php https://github.com/gryzz/crystal_magento.git | PHP | 475 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Maildir.php 18951 2009-11-12 16:26:19Z alexander $ 21 */ 26 */ 27#require_once 'Zend/Mail/Storage/Abstract.php'; 28 31 */ 32#require_once 'Zend/Mail/Message/File.php'; 33 36 */ 37#require_once 'Zend/Mail/Storage.php'; 38 124 */ 125 #require_once 'Zend/Mail/Storage/Exception.php'; 126 throw new Zend_Mail_Storage_Exception('id does not exist');class.p3-profiler-reader.php https://gitlab.com/mattswann/launch-housing | PHP | 374 lines
1<?php 2if ( !defined('P3_PATH') ) 62 /** 63 * Number of plugin related function calls (does not include php internal 64 * calls due to a limitation of how the tick handler works) 160 while ( !feof( $fp ) ) { 161 $line = fgets( $fp ); 162 if ( empty( $line) ) { 197 $this->report_date = strtotime( $o->date ); 198 $scheme = parse_url( $o->url, PHP_URL_SCHEME ); 199 $host = parse_url( $o->url, PHP_URL_HOST ); 199 $host = parse_url( $o->url, PHP_URL_HOST ); 200 $path = parse_url( $o->url, PHP_URL_PATH ); 201 $this->report_url = sprintf( '%s://%s%s', $scheme, $host, $path ); 328 $possible_paths = array( 329 WP_PLUGIN_DIR . "/$plugin.php", 330 WP_PLUGIN_DIR . "/$plugin/$plugin.php",webkitdlib.php https://github.com/picklingjar/Webkitd.git | PHP | 458 lines
1<?php 2/* 68 $str = ''; 69 $len = fgets($fd, 1024); 70 $tlen = 0; 81 fwrite($fd, CMDURL." ".$url."\n"); 82 $str = fgets($fd, 1024); 83 if(trim($str) == 'ok'){ 91 fwrite($fd, CMDGET."\n"); 92 $str = fgets($fd, 1024); 93 if(trim($str) == 'ok'){ 101 fwrite($fd, CMDPOST."\n"); 102 $str = fgets($fd, 1024); 103 if(trim($str) == 'ok'){ 111 fwrite($fd, CMDSETPOSTVAL." ".$key." ".$val."\n"); 112 $str = fgets($fd, 1024); 113 if(trim($str) == 'ok'){ideal.class.php https://bitbucket.org/anneivycat/ebcookhouse.git | PHP | 466 lines
1<?php 2/*----------------------------------------------------------------------- 243 while (!feof($fp)) { 244 $buf .= fgets($fp, 128); 245 }Pop3.php https://github.com/ayamyau/concrete5.git | PHP | 472 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Pop3.php 23775 2011-03-01 17:25:24Z ralph $ 21 */ 107 */ 108 require_once 'Zend/Mail/Protocol/Exception.php'; 109 throw new Zend_Mail_Protocol_Exception('cannot connect to host; error = ' . $errstr . 129 */ 130 require_once 'Zend/Mail/Protocol/Exception.php'; 131 throw new Zend_Mail_Protocol_Exception('cannot enable TLS'); 152 */ 153 require_once 'Zend/Mail/Protocol/Exception.php'; 154 throw new Zend_Mail_Protocol_Exception('send failed - connection closed?'); 167 { 168 $result = @fgets($this->_socket); 169 if (!is_string($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');Pop3.php https://bitbucket.org/Sinfin/pawtucket.git | PHP | 472 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Pop3.php 20096 2010-01-06 02:05:09Z bkarwin $ 21 */ 107 */ 108 require_once 'Zend/Mail/Protocol/Exception.php'; 109 throw new Zend_Mail_Protocol_Exception('cannot connect to host; error = ' . $errstr . 129 */ 130 require_once 'Zend/Mail/Protocol/Exception.php'; 131 throw new Zend_Mail_Protocol_Exception('cannot enable TLS'); 152 */ 153 require_once 'Zend/Mail/Protocol/Exception.php'; 154 throw new Zend_Mail_Protocol_Exception('send failed - connection closed?'); 167 { 168 $result = @fgets($this->_socket); 169 if (!is_string($result)) {SVN2FTP.php https://github.com/bigwhoop/SVN2FTP.git | PHP | 354 lines
1<?php 2namespace BigWhoop; 39 * Try to load a class according to PSR-0 40 * http://groups.google.com/group/php-standards/web/psr-0-final-proposal 41 * 54 55 $fileName .= str_replace('_', DIRECTORY_SEPARATOR, $className) . '.php'; 56 104 105 echo PHP_EOL; 106 } 120 121 return trim(fgets(STDIN)); 122 } 151 } catch (\Zend_Console_Getopt_Exception $e) { 152 echo 'Some of the arguments are missing or wrong.' . PHP_EOL . PHP_EOL; 153 echo $e->getUsageMessage();Request.php https://bitbucket.org/d1rk/lithium.git | PHP | 203 lines
1<?php 2/** 2/** 3 * Lithium: the most rad php framework 4 * 5 * @copyright Copyright 2012, Union of RAD (http://union-of-rad.org) 6 * @license http://opensource.org/licenses/bsd-license.php The BSD License 7 */ 94 if (!is_resource($this->_config['input'])) { 95 $this->input = fopen('php://stdin', 'r'); 96 } 171 public function input() { 172 return fgets($this->input); 173 }tidy.php https://github.com/socialplanning/oc-js.git | PHP | 179 lines
1<?php 2 /** This PHP file is intended for use with XMLHTTPRequest from Xinha 73 { 74 $result .= fgets($socket); 75 } 102 { 103 // PHP's urldecode doesn't understand %uHHHH for unicode 104 $_REQUEST['content'] = preg_replace('/%u([a-f0-9]{4,4})/ei', 'utf8_chr(0x$1)', $_REQUEST['content']); 161 ?> 162 {action:'setHTML',value:'<?php echo js_encode($content) ?>'}; 163 <?php 168 {action:'alert',value:'Tidy failed. Check your HTML for syntax errors.'}; 169 <?php 170 } 175 {action:'alert',value:"You don't have anything to tidy!"} 176 <?php 177 }Akismet.class.php https://github.com/ot2sen/Molajo.git | PHP | 390 lines
13 * 14 * Please be aware that this class is PHP5 only. Attempts to run it under PHP4 will most likely fail. 15 * 21 * @copyright Alex Potsides, {@link http://www.achingbrain.net http://www.achingbrain.net} 22 * @license http://www.opensource.org/licenses/bsd-license.php BSD License 23 */ 25/** 26 * The Akismet PHP5 Class 27 * 109 /* 110 * This is necessary if the server PHP5 is running on has been set up to run PHP4 and 111 * PHP5 concurently and is actually running through a separate proxy al a these instructions: 111 * PHP5 concurently and is actually running through a separate proxy al a these instructions: 112 * http://www.schlitt.info/applications/blog/archives/83_How_to_run_PHP4_and_PHP_5_parallel.html 113 * and http://wiki.coggeshall.org/37.htmlshitja.php https://bitbucket.org/galanx/faturimi.git | PHP | 418 lines
1<?php 2 class Negenet_Shitja_Controller extends Base_Controller{ 65 while(!feof($file)){ 66 $string = fgets($file); 67 if(Kode::where("kodi","like","%".$string."%")->first()){vnstat.php https://gitlab.com/billyprice1/QuickBox | PHP | 136 lines
1<?php 2 7 8 if (isset($_SERVER['PHP_SELF'])) { 9 $script = $_SERVER['PHP_SELF']; 59 while (!feof($fd)) { 60 $buffer .= fgets($fd); 61 }OPS.php https://github.com/axxtel/agilebill.git | PHP | 667 lines
1<?php 2/* 4 * 5 * OpenSRS-PHP 6 * 28 * vim: set expandtab tabstop=4 shiftwidth=4: 29 * $Id: OPS.php,v 1.1 2004/09/30 09:25:23 Tony Exp $ 30 * 34 35require_once 'PEAR.php'; 36 142 143 /* PHP doesn't have timeout for fread ... we just set the timeout for the socket */ 144 146 147 $line = fgets($fh, 4000); 148TestEnvCommand.php https://gitlab.com/RonLab1987/YupePlusClear | PHP | 182 lines
1<?php 2/** 62 self::COMMAND_DIR.self::CONFIG_DIR, 63 'db-test.php', 64 'db.back.php' 88 89 $this->replaceDbOptionsInConfig(self::COMMAND_DIR.self::CONFIG_DIR."/db-test.php"); 90 $this->replaceDbOptionsInConfig(self::COMMAND_DIR.self::ROOT_DIR."/codeception.yml"); 100 { 101 $this->removeConfigFile(self::COMMAND_DIR.self::CONFIG_DIR."/db-test.php"); 102 $this->removeConfigFile(self::COMMAND_DIR.self::ROOT_DIR."/codeception.yml"); 145 { 146 $stdin = substr(trim(fgets(STDIN)), 0, 50); 147 $value = (strlen($stdin) > 0) ? $stdin : $value;Proxy.php https://bitbucket.org/lanoversolutions/afterschool.git | PHP | 272 lines
1<?php 2 18 * @subpackage Client_Adapter 19 * @version $Id: Proxy.php 20947 2010-02-06 17:09:07Z padraic $ 20 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) 26 */ 27require_once 'Zend/Uri/Http.php'; 28/** 30 */ 31require_once 'Zend/Http/Client.php'; 32/** 34 */ 35require_once 'Zend/Http/Client/Adapter/Socket.php'; 36 124 if (! $this->socket) { 125 require_once 'Zend/Http/Client/Adapter/Exception.php'; 126 throw new Zend_Http_Client_Adapter_Exception("Trying to write but we are not connected");QuestionHelper.php https://gitlab.com/rocs/Streaming-Safe-for-Kids | PHP | 449 lines
1<?php 2 132 if (false === $ret) { 133 $ret = fgets($inputStream, 4096); 134 if (false === $ret) { 350 shell_exec('stty -echo'); 351 $value = fgets($inputStream, 4096); 352 shell_exec(sprintf('stty %s', $sttyMode));Socket.php https://github.com/jessfishenden/mrbs-mcr.git | PHP | 456 lines
1<?php 2// 3// +----------------------------------------------------------------------+ 4// | PHP Version 4 | 5// +----------------------------------------------------------------------+ 5// +----------------------------------------------------------------------+ 6// | Copyright (c) 1997-2003 The PHP Group | 7// +----------------------------------------------------------------------+ 7// +----------------------------------------------------------------------+ 8// | This source file is subject to version 2.0 of the PHP license, | 9// | that is bundled with this package in the file LICENSE, and is | 10// | available at through the world-wide-web at | 11// | http://www.php.net/license/2_02.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// +----------------------------------------------------------------------+Shell.php https://github.com/AJenbo/ubuntudanmark.dk.git | PHP | 229 lines
1<?php 2 16use Symfony\Component\Process\ProcessBuilder; 17use Symfony\Component\Process\PhpExecutableFinder; 18 21 * 22 * Support for history and completion only works with a PHP compiled 23 * with readline support (either --with-readline or --with-libedit) 38 * 39 * If there is no readline support for the current PHP executable 40 * a \RuntimeException exception is thrown. 66 $this->output->writeln($this->getHeader()); 67 $php = null; 68 if ($this->processIsolation) { 68 if ($this->processIsolation) { 69 $finder = new PhpExecutableFinder(); 70 $php = $finder->find();Pop3.php https://bitbucket.org/simukti/zf1.git | PHP | 472 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Pop3.php 24593 2012-01-05 20:35:02Z matthew $ 21 */ 107 */ 108 require_once 'Zend/Mail/Protocol/Exception.php'; 109 throw new Zend_Mail_Protocol_Exception('cannot connect to host; error = ' . $errstr . 129 */ 130 require_once 'Zend/Mail/Protocol/Exception.php'; 131 throw new Zend_Mail_Protocol_Exception('cannot enable TLS'); 152 */ 153 require_once 'Zend/Mail/Protocol/Exception.php'; 154 throw new Zend_Mail_Protocol_Exception('send failed - connection closed?'); 167 { 168 $result = @fgets($this->_socket); 169 if (!is_string($result)) {Mbox.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 447 lines
1<?php 2/** 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'); 158 while ($bodyLines-- && ftell($this->_fh) < $this->_positions[$id - 1]['end']) { 159 $message .= fgets($this->_fh); 160 }Error.php https://bitbucket.org/vaneves/repono.git | PHP | 220 lines
1<?php 2/* 16 /** 17 * Método que é executado quando ocorre algum erro no PHP 18 * @param int $type tipo do erro, que pode ser E_STRICT 65 /** 66 * Método executado quando ocorre algum erro fatal no PHP, esse método é chamado 67 * antes que o PHP pare a execução da página 97 if (Debug::enabled()) 98 return require_once root . 'core/error/debug.php'; 99 100 $files = array(); 101 $files[0] = root . 'app/views/_error/' . $number . '.php'; 102 $files[1] = root . 'core/error/default.php'; 176 177 while ($i <= $end && (($buffer = fgets($handle, 4096)) !== false)) 178 {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');Abstract.php https://github.com/acmewebservices/ZFBootstrap.git | PHP | 385 lines
1<?php 2 20 * @license http://framework.zend.com/license/new-bsd New BSD License 21 * @version $Id: Abstract.php 18951 2009-11-12 16:26:19Z alexander $ 22 */ 27 */ 28require_once 'Zend/Validate.php'; 29 33 */ 34require_once 'Zend/Validate/Hostname.php'; 35 46 * @license http://framework.zend.com/license/new-bsd New BSD License 47 * @version $Id: Abstract.php 18951 2009-11-12 16:26:19Z alexander $ 48 * @todo Implement proxy settings 136 */ 137 require_once 'Zend/Mail/Protocol/Exception.php'; 138 throw new Zend_Mail_Protocol_Exception(join(', ', $this->_validHost->getMessages()));Proxy.php https://github.com/kervin/kyzstudio.git | PHP | 284 lines
1<?php 2 18 * @subpackage Client_Adapter 19 * @version $Id: Proxy.php 21792 2010-04-08 00:27:06Z stas $ 20 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) 26 */ 27#require_once 'Zend/Uri/Http.php'; 28/** 30 */ 31#require_once 'Zend/Http/Client.php'; 32/** 34 */ 35#require_once 'Zend/Http/Client/Adapter/Socket.php'; 36 125 if (! $this->socket) { 126 #require_once 'Zend/Http/Client/Adapter/Exception.php'; 127 throw new Zend_Http_Client_Adapter_Exception("Trying to write but we are not connected");AConsole.php https://github.com/ckdimka/core.git | PHP | 332 lines
1<?php 2// vim: set ts=4 sw=4 sts=4 et: 11 * It is also available through the world-wide-web at this URL: 12 * http://opensource.org/licenses/osl-3.0.php 13 * If you did not receive a copy of the license and are unable to 16 * 17 * PHP version 5.3.0 18 * 21 * @copyright Copyright (c) 2011 Creative Development LLC <info@cdev.ru>. All rights reserved 22 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 23 * @link http://www.litecommerce.com/ 80 $this->printContent( 81 PHP_EOL . 'Execution time: ' 82 . date('H:i:s', floor($duration) - intval(date('Z'))) 83 . '.' . sprintf('%04d', $micro * 10000) . ' sec.' 84 . PHP_EOL 85 );redis.php https://github.com/jlarmstrong/cake-redisdb.git | PHP | 374 lines
1<?php 2/******************************************************************************* 2/******************************************************************************* 3 * Redis PHP Bindings - http://code.google.com/p/redis/ 4 * 5 * Copyright 2009 Ludovico Magnocavallo 6 * Copyright 2009 Salvatore Sanfilippo (ported it to PHP5, fixed some bug) 7 * Released under the same license as Redis. 307 private function read($len=1024) { 308 if ($s = fgets($this->_sock)) 309 return $s;passwd.php https://github.com/wrobel/horde-fw3.git | PHP | 445 lines
1<?php 2/** 22 * 23 * $Horde: framework/Auth/Auth/passwd.php,v 1.16.10.20 2009-01-06 15:22:50 jan Exp $ 24 * 24 * 25 * Copyright 1997-2007 Rasmus Lerdorf <rasmus@php.net> 26 * Copyright 2002-2009 The Horde Project (http://www.horde.org/) 28 * See the enclosed file COPYING for license information (LGPL). If you 29 * did not receive this file, see http://opensource.org/licenses/lgpl-license.php. 30 * 30 * 31 * @author Rasmus Lerdorf <rasmus@php.net> 32 * @author Chuck Hagenbuch <chuck@horde.org> 167 while (!feof($fp)) { 168 $line = trim(fgets($fp, 128)); 169 if (empty($line)) {Pop3.php https://bitbucket.org/ksekar/campus.git | PHP | 472 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Pop3.php 24594 2012-01-05 21:27:01Z matthew $ 21 */ 107 */ 108 require_once 'Zend/Mail/Protocol/Exception.php'; 109 throw new Zend_Mail_Protocol_Exception('cannot connect to host; error = ' . $errstr . 129 */ 130 require_once 'Zend/Mail/Protocol/Exception.php'; 131 throw new Zend_Mail_Protocol_Exception('cannot enable TLS'); 152 */ 153 require_once 'Zend/Mail/Protocol/Exception.php'; 154 throw new Zend_Mail_Protocol_Exception('send failed - connection closed?'); 167 { 168 $result = @fgets($this->_socket); 169 if (!is_string($result)) {pgt-file.php https://github.com/nadavkav/Moodle-RTL--Shenkar-Translation-Team-.git | PHP | 249 lines
1<?php 2 3/** 4 * @file CAS/PGTStorage/pgt-file.php 5 * Basic class for PGT file storage 108 { 109 phpCAS::traceBegin(); 110 // call the ancestor's constructor 119 if (!preg_match('`^[a-zA-Z]:`', $path)) { 120 phpCAS::error('an absolute path is needed for PGT storage to file'); 121 } 127 if ( $path[0] != '/' ) { 128 phpCAS::error('an absolute path is needed for PGT storage to file'); 129 } 143 default: 144 phpCAS::error('unknown PGT file storage format (`'.CAS_PGT_STORAGE_FILE_FORMAT_PLAIN.'\' and `'.CAS_PGT_STORAGE_FILE_FORMAT_XML.'\' allowed)'); 145 }Worldpay.php https://bitbucket.org/anneivycat/ebcookhouse.git | PHP | 177 lines
1<?php 2 72 73 $errors = "\nUsing BUILT-IN PHP curl methods\n"; 74 // Run through the posted array 159 while (!feof($fp)) { 160 $this->ipnResponse .= fgets($fp, 1024); 161 }smtp.php https://github.com/lucasgoicoechea/prolab.git | PHP | 248 lines
5 * begin : Wed May 09 2001 6 * copyright : (C) 2001 The phpBB Group 7 * email : support@phpbb.com 8 * 9 * $Id: smtp.php,v 1.16.2.5 2003/06/12 19:20:20 acydburn Exp $ 10 * 12/*************************************************************************** 13* phpbb2 forums port version 2.0.5 (c) 2003 - Nuke Cops (http://nukecops.com) 14* 14* 15* Ported by Nuke Cops to phpbb2 standalone 2.0.5 Test 16* and debugging completed by the Elite Nukers and site members. 26* 27* This is version 2.0.5 of the phpbb2 forum port for PHP-Nuke. Work is based 28* on Tom Nitzschner's forum port version 2.0.6. Tom's 2.0.6 port was basedConsole.php https://bitbucket.org/areeves42/openfisma.git | PHP | 312 lines
1<?php 2/** 25 */ 26// require_once 'Zend/Tool/Framework/Client/Abstract.php'; 27 30 */ 31// require_once 'Zend/Tool/Framework/Client/Interactive/InputInterface.php'; 32 35 */ 36// require_once 'Zend/Tool/Framework/Client/Interactive/OutputInterface.php'; 37 79 /** 80 * main() - This is typically called from zf.php. This method is a 81 * self contained main() function. 224 225 echo PHP_EOL; 226 return;zones.php https://github.com/voldern/wmbind.git | PHP | 312 lines
1<?php 2 248 249 for ($i = 0; fgets($fd); $i++) 250 $addr[$i] = ftell($fd);StreamBuffer.php https://gitlab.com/techniconline/kmc | PHP | 321 lines
1<?php 2 162 if (isset($this->_out) && !feof($this->_out)) { 163 $line = fgets($this->_out); 164 if (strlen($line) == 0) {Sendmail.php https://github.com/yvestan/sendnews.git | PHP | 352 lines
1<?php 2 10 11require_once dirname(__FILE__) . "/../ClassLoader.php"; 12Swift_ClassLoader::load("Swift_ConnectionBase"); 212 stream_set_timeout($this->pipes[1], $this->timeout); 213 $tmp = @fgets($this->pipes[1]); 214 if ($tmp === false) 306 throw new Swift_ConnectionException( 307 "The sendmail process failed to start. Please verify that the path exists and PHP has permission to execute it."); 308 }Config.php https://github.com/srhinow/myContaoSearchPortal.git | PHP | 315 lines
1<?php if (!defined('TL_ROOT')) die('You cannot access this file directly!'); 2 22 * 23 * PHP version 5 24 * @copyright Leo Feyer 2005-2011 90 { 91 include(TL_ROOT . '/system/config/config.php'); 92 include(TL_ROOT . '/system/config/localconfig.php'); 96 { 97 $strFile = sprintf('%s/system/modules/%s/config/config.php', TL_ROOT, $strModule); 98 @include($strFile); 100 101 include(TL_ROOT . '/system/config/localconfig.php'); 102 104 $strMode = 'top'; 105 $resFile = fopen(TL_ROOT . '/system/config/localconfig.php', 'rb'); 106HttpClient.php https://gitlab.com/xuebutayan/yshop | PHP | 338 lines
1<?php 2/* Version 0.9, 6th April 2003 - Simon Willison ( http://simon.incutio.com/ ) 108 while (!feof($fp)) { 109 $line = fgets($fp, 4096); 110 if ($atStart) { 157 $this->debug('Content is gzip encoded, unzipping it'); 158 $this->content = substr($this->content, 10); // See http://www.php.net/manual/en/function.gzencode.php 159 $this->content = gzinflate($this->content);Maildir.php https://gitlab.com/devtoannh/cafe | PHP | 475 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Maildir.php 23775 2011-03-01 17:25:24Z ralph $ 21 */ 26 */ 27require_once 'Zend/Mail/Storage/Abstract.php'; 28 31 */ 32require_once 'Zend/Mail/Message/File.php'; 33 36 */ 37require_once 'Zend/Mail/Storage.php'; 38 124 */ 125 require_once 'Zend/Mail/Storage/Exception.php'; 126 throw new Zend_Mail_Storage_Exception('id does not exist');