PageRenderTime 1716ms queryTime 188ms sortTime 41ms getByIdsTime 987ms findMatchingLines 385ms

100+ results results for 'php fgets' (1716 ms)

Not the results you expected?
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");
                    
                
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	}
                    
                
SYLK.php https://gitlab.com/rezaul007/content-management-system | 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;
                    
                
functions.recaptchalib.php https://github.com/Dhaanu/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   }
                    
                
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";
                    
                
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))) {
                    
177
                    
                
class-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>
                    
                
Abstract.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');
                    
                
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;
                    
                
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);
                    
81
                    
                
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));
                    
                
mail.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;
                    
                
transport_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 prevent
                    
                
Abstract.php https://bitbucket.org/baruffaldi/website-2008-computer-shopping-3.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()));
                    
                
file.php https://bitbucket.org/bodva/progr.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   directory 
                    
                
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()));
                    
                
Abstract.php https://bitbucket.org/mercysam/zfs.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()));
                    
                
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));
                    
187
                    
                
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            };
                    
                
community.php https://github.com/radicalsuz/amp.git | PHP | 85 lines
                    
37<p>Se voc&ecirc; &eacute; um <b>usu&aacute;rio comum do PHPlist</b> e acha que j&aacute; o conhece bem, voc&ecirc; pode ajudar respondendo &agrave;s quest&otilde;es de outros usu&aacute;rios.</p>
                    
38<p>Se voc&ecirc; &eacute; <b>novo no PHPlist</b> e tem tido dificuldades em configur&aacute;-lo para funcionar em seu site, voc&ecirc; pode ajudar tentando procurar a solu&ccedil;&atilde;o atrav&eacute;s das op&ccedil;&otilde;es acima, depois postando imediatamente a mensagem "n&atilde;o funciona". Geralmente os problemas que voc&ecirc; possa ter est&atilde;o relacionados ao ambiente em que a sua  insta&ccedil;&atilde;o do PHPlist est&aacute; rodando.
                    
39Ter somente um desenvolvedor para o PHPlist tem a desvantagem de n&atilde;o poder ser testado em todas as plataformas e em todas as vers&otilde;es do PHP.</p>
                    
51<li>
                    
52<p>Voc&ecirc; pode usar o PHPlist para seus clientes pagos (se voc&ecirc &eacute; faz parte de uma equipe de web, por exemplo) e mostre que o sistema &eacute; uma grande ferramente para atingir os seus objetivos. Ent&atilde;o, se eles quiserem algumas mudan&ccedil;as, voc&ecirc; pode <b>encomendar novas caracter&iacute;sticas</b> que s&aeo; pagas pelos seus clientes. Se voc&ecirc; quiser saber quanto custaria para incluir novas caracter&iacute;sticas &agrave;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&iacute;sticas do PHPlist s&atilde;o adicionadas a pedidos de clientes pagos. Voc&ecirc; ser&aacute; beneficiado pagando uma pequena quantia para alcan&ccedil;ar seus objetivos, e tamb&eacute;m beneficiar&aacute; a comunidade que ganhar&aacute; com as novas caracter&iacute;sticas e ainda contribuir&aacute; com os desenvolvedores para ganhar algum dinheiro trabalhando no PHPlist :-)</p></li>
                    
53A maioria das novas caracter&iacute;sticas do PHPlist s&atilde;o adicionadas a pedidos de clientes pagos. Voc&ecirc; ser&aacute; beneficiado pagando uma pequena quantia para alcan&ccedil;ar seus objetivos, e tamb&eacute;m beneficiar&aacute; a comunidade que ganhar&aacute; com as novas caracter&iacute;sticas e ainda contribuir&aacute; com os desenvolvedores para ganhar algum dinheiro trabalhando no PHPlist :-)</p></li>
                    
54<li><p>Se voc&ecirc; usa o PHPlist regularmente e tem uma <b>grande quantidade de inscritos</b> (mais de 1000), n&oacute;s estamos interessados nas caracter&iacute;sticas do seus sistema e no envio de estat&iacute;sticas. Como op&ccedil;&atilde;o padr&atilde;o o PHPlist enviar&aacute; estatist&iacute;sticas para <a href="mailto:phplist-stats@tincan.co.uk">phplist-stats@tincan.co.uk</a>, mas n&atilde;o enviar&aacute; detalhes do seu sistema. Se voc&ecirc; quer contribuir para que a aplica&ccedil;&atilde;o funcione melhor, seria &oacute;timo que voc&ecirc; pudesse nos enviar as informa&ccedil;&otilde;es sobre seu sistema, assim como deixar ativada a op&ccedil;&atilde;o para enviar as estat&iacute;sticas ao endere&ccedil;o acima.
                    
55As suas informa&ccedil;&otilde;es n&atilde;o estar&atilde;o dispon&iacute;veis para as pessoas, mas n&oacute;s as analisaremos para ter uma id&eacute;ia se o PHPlist tem funcionado bem.</p></li>
                    
59<p><b><a name="lists"></a>Lista de Discuss&atilde;o</b><br/>
                    
60O PHPlist costumava ter uma lista de discus&atilde;o, mas foi encerrada. Voc&ecirc; ainda pode ler os arquivos da lista. Para suporte ao PHPlist tente os <a href="#forums">f&oacute;runs</a>.
                    
61<li>Para acessar os arquivos da lista de discuss&atilde;o <a href="http://lists.cupboard.org/archive/tincan.co.uk" target="_blank">clique aqui</a>
                    
70<li>Vers&atilde;o do PHPlist: <?php echo VERSION?></li>
                    
71<li>Vers&atilde;o do PHP: <?php echo phpversion()?></li>
                    
72<li>Servido Web: <?php echo getenv("SERVER_SOFTWARE")?></li>
                    
                
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';
                    
54
                    
                
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";
                    
                
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 path
                    
                
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        {
                    
                
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;
                    
                
Proxy.php https://bitbucket.org/baruffaldi/website-2008-computer-shopping-3.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');
                    
                
Maildir.php https://bitbucket.org/kdms/sh-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 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');
                    
                
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}
                    
                
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",
                    
                
manager.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}
                    
                
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)) {
                    
                
Pop3.php https://bitbucket.org/babanesma/mysimpleadmin.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)) {
                    
                
start.html https://github.com/emacsmirror/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&amp;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&amp;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&amp;t=custom1" />
                    
26<script type="text/javascript" charset="utf-8" src="/wiki/lib/exe/js.php?edit=0&amp;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>
                    
                
shitja.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            }
                    
                
TestEnvCommand.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;
                    
                
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));
                    
                
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            }
                    
                
Pop3.php https://gitlab.com/fabiorf/curso-zend1-aula1 | 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)) {
                    
                
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)) {
                    
                
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) {
                    
                
Shell.php https://gitlab.com/oytunistrator/92five | 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();
                    
                
HttpClient.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');
                    
                
File.php https://gitlab.com/shinvdu/php-webim | PHP | 180 lines
                    
1<?php
                    
2namespace WebIM\Store;
                    
27                    unlink($dir . $file);
                    
28                    //echo "delete ".$dir . $file.PHP_EOL;
                    
29                    $n++;
                    
33                    $n++;
                    
34                    //echo "rmdir ".$dir . $file . PHP_EOL;
                    
35                    //rmdir($dir . $file . '/');
                    
88        {
                    
89            while (($line = fgets($handle, 4096)) !== false)
                    
90            {
                    
160        }
                    
161        fwrite($this->history_fp, json_encode($log).PHP_EOL);
                    
162        $this->history_write_count ++;
                    
                
Abstract.php https://github.com/pkeane/cola-zend.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()));
                    
                
LogTarget.php https://gitlab.com/itlboy/yii2-starter-installed | PHP | 183 lines
                    
1<?php
                    
2/**
                    
80        $manifest = '';
                    
81        while (($buffer = fgets($fp)) !== false) {
                    
82            $manifest .= $buffer;
                    
                
file.php https://gitlab.com/ken3/bluSky | 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-2012 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	 * @link    http://php.net/manual/en/function.mkdir.php
                    
449	 * @param   string    $directory
                    
                
SConfig.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 195 lines
                    
1<?php
                    
2define ("CONF_COMMENT", "#");
                    
183        while (!feof ($fd)) {
                    
184            $buffer .= fgets($fd, 4096);
                    
185        }
                    
                
Maildir.php https://gitlab.com/yousafsyed/easternglamor | PHP | 475 lines
                    
1<?php
                    
2/**
                    
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');
                    
136             */
                    
137            #require_once 'Zend/Mail/Storage/Exception.php';
                    
138            throw new Zend_Mail_Storage_Exception('field does not exist');
                    
                
Maildir.php https://github.com/tuteke/isaved.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');
                    
                
Proxy.php https://bitbucket.org/kdms/sh-magento.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");
                    
                
CSV.php git://github.com/jasonhinkle/phreeze.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	{
                    
                
Proxy.php https://gitlab.com/endomorphosis/jeffersonsmithmayor | PHP | 270 lines
                    
1<?php
                    
2
                    
18 * @subpackage Client_Adapter
                    
19 * @version    $Id: Proxy.php 17059 2009-07-25 11:24:49Z shahar $
                    
20 * @copyright  Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
                    
29 */
                    
30require_once 'Microsoft/Uri/Http.php';
                    
31/**
                    
33 */
                    
34require_once 'Microsoft/Http/Client.php';
                    
35/**
                    
37 */
                    
38require_once 'Microsoft/Http/Client/Adapter/Socket.php';
                    
39
                    
122        if (! $this->socket) {
                    
123            require_once 'Microsoft/Http/Client/Adapter/Exception.php';
                    
124            throw new Microsoft_Http_Client_Adapter_Exception("Trying to write but we are not connected");
                    
                
st_upload.php https://github.com/hendrowicaksono/s3st12-soap.git | PHP | 110 lines
                    
1<?php
                    
2/**
                    
23// main system configuration
                    
24require '../../../sysconfig.inc.php';
                    
25// start the session
                    
25// start the session
                    
26require SENAYAN_BASE_DIR.'admin/default/session.inc.php';
                    
27require SENAYAN_BASE_DIR.'admin/default/session_check.inc.php';
                    
45if (isset($_POST['stUpload']) && isset($_FILES['stFile'])) {
                    
46    require SIMBIO_BASE_DIR.'simbio_FILE/simbio_file_upload.inc.php';
                    
47    // create upload object
                    
70            $curr_time = date('Y-m-d H:i:s');
                    
71            $item_code = fgetss($stfile, 512);
                    
72            $item_code = trim($item_code);
                    
101    <?php echo __('STOCK TAKE UPLOAD - Upload a plain text file (.txt) containing list of Item Code to stock take. Each Item Code separated by line.'); ?><hr />
                    
102    <form name="uploadForm" method="post" enctype="multipart/form-data" action="<?php echo MODULES_WEB_ROOT_DIR.'stock_take/st_upload.php'; ?>" target="uploadAction" style="display: inline;">
                    
103    <?php echo __(' File'); //mfc ?>: <input type="file" name="stFile" id="stFile" /> Maximum <?php echo $sysconf['max_upload']; ?> KB
                    
                
ZipStreamWrapper.php https://gitlab.com/ilyales/vigma | PHP | 200 lines
                    
1<?php
                    
2
                    
3/**
                    
4 * PHPExcel_Shared_ZipStreamWrapper
                    
5 *
                    
5 *
                    
6 * Copyright (c) 2006 - 2015 PHPExcel
                    
7 *
                    
21 *
                    
22 * @category   PHPExcel
                    
23 * @package    PHPExcel_Shared
                    
23 * @package    PHPExcel_Shared
                    
24 * @copyright  Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
25 * @license    http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt    LGPL
                    
27 */
                    
28class PHPExcel_Shared_ZipStreamWrapper
                    
29{
                    
                
PoFileLoader.php https://gitlab.com/ealexis.t/trends | PHP | 151 lines
                    
1<?php
                    
2
                    
75
                    
76        while ($line = fgets($stream)) {
                    
77            $line = trim($line);
                    
                
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    }
                    
                
Console.php https://gitlab.com/yousafsyed/easternglamor | 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;
                    
                
akismet.php git://github.com/klevo/wildflower.git | PHP | 394 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.html
                    
                
Csv.php https://gitlab.com/mbase2/source-code | PHP | 564 lines
                    
2
                    
3namespace PhpOffice\PhpSpreadsheet\Reader;
                    
4
                    
4
                    
5use PhpOffice\PhpSpreadsheet\Cell\Coordinate;
                    
6use PhpOffice\PhpSpreadsheet\Shared\StringHelper;
                    
6use PhpOffice\PhpSpreadsheet\Shared\StringHelper;
                    
7use PhpOffice\PhpSpreadsheet\Spreadsheet;
                    
8
                    
105            case 'UTF-16LE':
                    
106                fgets($this->fileHandle, 3) == "\xFF\xFE" ?
                    
107                    fseek($this->fileHandle, 2) : fseek($this->fileHandle, 0);
                    
334    /**
                    
335     * Loads PhpSpreadsheet from file into PhpSpreadsheet instance.
                    
336     *
                    
                
Pop3Connection.php https://gitlab.com/staging06/myproject | PHP | 176 lines
                    
1<?php
                    
2
                    
10
                    
11require_once dirname(__FILE__) . "/../../ClassLoader.php";
                    
12
                    
155  {
                    
156    if (false === $response = fgets($this->handle))
                    
157    {
                    
                
citrix.php https://gitlab.com/billyprice1/whmcs-customizations | PHP | 313 lines
                    
1<?PHP
                    
2
                    
113		do {
                    
114			$line = fgets($ssh_output);
                    
115			lg_debug2($line);
                    
281	do {
                    
282		$line = fgets($ssh_output);
                    
283		lg_debug2($line);
                    
303	do {
                    
304		$line = fgets($ssh_output);
                    
305		lg_debug2($line);
                    
                
EncodingHelper.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 175 lines
                    
1<?php
                    
2
                    
88
                    
89            $hasBOM = ($this->globalFunctionsHelper->fgets($filePointer, $numBytesInBom + 1) === $potentialBom);
                    
90        }
                    
144        } else {
                    
145            throw new EncodingConversionException("The conversion from $sourceEncoding to $targetEncoding is not supported. Please install \"iconv\" or \"PHP Intl\".");
                    
146        }
                    
166     * Returns whether "mb_string" functions can be used.
                    
167     * These functions come with the PHP Intl package.
                    
168     *
                    
                
cli.php https://bitbucket.org/sriedel/iccrm-wip.git | PHP | 438 lines
                    
1<?php
                    
2/**
                    
9 * @copyright  2010 - 2012 Fuel Development Team
                    
10 * @link       http://fuelphp.com
                    
11 */
                    
22 * @author		Phil Sturgeon
                    
23 * @link		http://docs.fuelphp.com/classes/cli.html
                    
24 */
                    
86		// Readline is an extension for PHP that makes interactive with PHP much more bash-like
                    
87		// http://www.php.net/manual/en/readline.installation.php
                    
88		static::$readline_support = extension_loaded('readline');
                    
95	 * Named options must be in the following formats:
                    
96	 * php index.php user -v --v -name=John --name=John
                    
97	 *
                    
114	 * Named options must be in the following formats:
                    
115	 * php index.php user -v --v -name=John --name=John
                    
116	 *
                    
                
checkSyntax.php https://gitlab.com/link233/bootmw | PHP | 350 lines
                    
26/**
                    
27 * Maintenance script to check syntax of all PHP files in MediaWiki.
                    
28 *
                    
38		parent::__construct();
                    
39		$this->addDescription( 'Check syntax for all PHP files in MediaWiki' );
                    
40		$this->addOption( 'with-extensions', 'Also recurse the extensions folder' );
                    
91			"/activemq_stomp/",
                    
92			"EmailPage/PHPMailer",
                    
93			"FCKeditor/fckeditor/",
                    
95			"/svggraph/",
                    
96			"\bjsmin.php$",
                    
97			"PEAR/File_Ogg/",
                    
225		$ext = pathinfo( $file, PATHINFO_EXTENSION );
                    
226		if ( $ext != 'php' && $ext != 'inc' && $ext != 'php5' ) {
                    
227			return false;
                    
                
function.fetch.php https://gitlab.com/flyhope/Hiblog | PHP | 221 lines
                    
1<?php
                    
2/**
                    
14 *
                    
15 * @link   http://www.smarty.net/manual/en/language.function.fetch.php {fetch}
                    
16 *         (Smarty online manual)
                    
44        if ($protocol) {
                    
45            // remote resource (or php stream, …)
                    
46            if (!$template->smarty->security_policy->isTrustedUri($params['file'])) {
                    
192                while (!feof($fp)) {
                    
193                    $content .= fgets($fp, 4096);
                    
194                }
                    
                
tracefile-analyser.php https://gitlab.com/yousafsyed/easternglamor | PHP | 207 lines
                    
1<?php
                    
2
                    
42{
                    
43	echo "usage:\n\tphp run-cli tracefile [sortkey] [elements]\n\n";
                    
44	echo "Allowed sortkeys:\n\tcalls, time-inclusive, memory-inclusive, time-own, memory-own\n";
                    
77		$this->stackFunctions = array();
                    
78		$header1 = fgets( $this->handle );
                    
79		$header2 = fgets( $this->handle );
                    
95		{
                    
96			$buffer = fgets( $this->handle, 4096 );
                    
97			$read += strlen( $buffer );
                    
                
FilesystemAdapter.php https://gitlab.com/pr0055/symfonypizza | PHP | 158 lines
                    
1<?php
                    
2
                    
65            }
                    
66            if ($now >= (int) $expiresAt = fgets($h)) {
                    
67                fclose($h);
                    
71            } else {
                    
72                $i = rawurldecode(rtrim(fgets($h)));
                    
73                $value = stream_get_contents($h);
                    
                
function.fetch.php https://gitlab.com/virtualrealms/d7civicrm | PHP | 221 lines
                    
1<?php
                    
2/**
                    
14 * Purpose:  fetch file, web or ftp data and display results
                    
15 * @link http://smarty.php.net/manual/en/language.function.fetch.php {fetch}
                    
16 *       (Smarty online manual)
                    
32        $_params = array('resource_type' => 'file', 'resource_name' => $params['file']);
                    
33        require_once(SMARTY_CORE_DIR . 'core.is_secure.php');
                    
34        if(!smarty_core_is_secure($_params, $smarty)) {
                    
41            while(!feof($fp)) {
                    
42                $content .= fgets ($fp,4096);
                    
43            }
                    
180                    while(!feof($fp)) {
                    
181                        $content .= fgets($fp,4096);
                    
182                    }
                    
199                while(!feof($fp)) {
                    
200                    $content .= fgets ($fp,4096);
                    
201                }
                    
                
File.php https://gitlab.com/staging06/myproject | PHP | 208 lines
                    
1<?php
                    
2
                    
11
                    
12require_once dirname(__FILE__) . "/ClassLoader.php";
                    
13Swift_ClassLoader::load("Swift_FileException");
                    
38  /**
                    
39   * The status of magic_quotes in php.ini
                    
40   * @var boolean
                    
138    {
                    
139      $ret = fgets($this->handle);
                    
140    }
                    
                
SmtpMailer.php https://gitlab.com/paveltizek/shop | PHP | 195 lines
                    
1<?php
                    
2
                    
185		$s = '';
                    
186		while (($line = fgets($this->connection, 1e3)) != NULL) { // intentionally ==
                    
187			$s .= $line;
                    
                
StreamBuffer.php https://gitlab.com/dsasmita/talita-shop | PHP | 327 lines
                    
1<?php
                    
2
                    
164        if (isset($this->_out) && !feof($this->_out)) {
                    
165            $line = fgets($this->_out);
                    
166            if (strlen($line)==0) {
                    
                
Proxy.php https://github.com/phpmywave/phpMyWave.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");
                    
                
sms_at.inc.php https://gitlab.com/mattyhead/mysms | PHP | 409 lines
                    
1<?php
                    
2#-----------------------------------------------------------------
                    
8   var $VERSION;
                    
9   var $REQUIRED_PHP_VERSION;
                    
10
                    
32       $this->VERSION              = "0.1";
                    
33       $this->REQUIRED_PHP_VERSION = "4.0";
                    
34       
                    
179    while(!feof($fp)) {
                    
180       $response .= fgets($fp, 128);
                    
181    }
                    
                
common.php https://github.com/gcao/jsgameviewer4bbs.git | PHP | 135 lines
                    
1<?php
                    
2/************************************************************************ 
                    
99				while (!feof($file)){
                    
100					$buffer = trim(fgets($file));
                    
101					if ($buffer{0} == '*' || ($buffer{0} == '/' && 
                    
                
googlespell.php https://gitlab.com/ppapadatis/Videolearn | PHP | 170 lines
                    
1<?php
                    
2/**
                    
102				while (!feof($fp))
                    
103					$xml .= fgets($fp, 128);
                    
104
                    
                
class-wp-cli.php https://gitlab.com/clakeb/wp-cli | PHP | 468 lines
                    
37		if ( !$configurator ) {
                    
38			$configurator = new WP_CLI\Configurator( WP_CLI_ROOT . '/php/config-spec.php' );
                    
39		}
                    
259
                    
260			$answer = trim( fgets( STDIN ) );
                    
261
                    
281			$raw_value = '';
                    
282			while ( ( $line = fgets( STDIN ) ) !== false ) {
                    
283				$raw_value .= $line;
                    
393
                    
394		$php_bin = self::get_php_binary();
                    
395
                    
406	/**
                    
407	 * Get the path to the PHP binary used when executing WP-CLI.
                    
408	 * Environment values permit specific binaries to be indicated.
                    
                
Maildir.php https://gitlab.com/Ltaimao/wecenter | PHP | 475 lines
                    
1<?php
                    
2/**
                    
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');
                    
136             */
                    
137            //require_once 'Zend/Mail/Storage/Exception.php';
                    
138            throw new Zend_Mail_Storage_Exception('field does not exist');
                    
                
Maildir.php https://bitbucket.org/alexandretaz/maniac_divers.git | PHP | 408 lines
                    
1<?php
                    
2/**
                    
166        while (!feof($fh)) {
                    
167            $line = fgets($fh);
                    
168            if (!trim($line)) {
                    
195        while (!feof($fh)) {
                    
196            $line = fgets($fh);
                    
197            if (!trim($line)) {
                    
                
viewtbl.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 424 lines
                    
208		<!-- Data Table -->
                    
209		<DIV style="WIDTH: 900px; HEIGHT: <?php echo $div_height;?>px; OVERFLOW: auto; border: solid 1px <?php echo $bordercolor; ?>">
                    
210		<form name='addnew' method="get" action="">
                    
286						?>
                    
287					<TR id="dataRow<?php echo $id; ?>" onMouseOver="change(this,'<?php echo $hightlightcolor; ?>')" onMouseOut="undo(this)" style="cursor: hand">
                    
288					<TD TF_colKey="check" align="center" class="tdtext">
                    
288					<TD TF_colKey="check" align="center" class="tdtext">
                    
289					<input type="checkbox" name="chkbox<?php echo $counter; ?>" value="<?php echo $id; ?>" onClick="javascript:colorRow(this);">
                    
290					</TD>
                    
393				<p class="formindex"><?php echo $strAll; ?>
                    
394				<input type="text" onkeyup="TF_filterTable(dataTable, filter)" name="s<?php echo $field_array[$i]; ?>" TF_colKey="<?php echo $field_array[$i]; ?>" TF_searchType="substring1" class="shortinput">
                    
395				<br><?php echo $strHavein; ?>
                    
395				<br><?php echo $strHavein; ?>
                    
396				<input type="text" onkeyup="TF_filterTable(dataTable, filter)" name="s<?php echo $field_array[$i]; ?>" TF_colKey="<?php echo $field_array[$i]; ?>" TF_searchType="substring" class="shortinput"></p>
                    
397				</td>
                    
                
af.lib.rdf.php https://github.com/nekrad/metux-joomla.git | PHP | 176 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3* @version $Id: af.lib.rdf.php v.2.1b7 2007-11-26 16:44:59Z GMT-3 $
                    
4* @package ArtForms 2.1b7
                    
45            //while(!feof($fp))
                    
46            fwrite($local, fgets($fp, 128));
                    
47            fclose($local);
                    
150    {
                    
151                @require_once(JPATH_SITE.DS.'includes'.DS.'domit'.DS.'xml_domit_rss.php');
                    
152		$rssdoc =& new xml_domit_rss_document($url);
                    
                
Maildir.php https://github.com/basdog22/Qool.git | PHP | 475 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Maildir.php 24594 2012-01-05 21:27:01Z matthew $
                    
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');
                    
                
Delimiter.php https://bitbucket.org/moodle/moodle.git | PHP | 151 lines
                    
1<?php
                    
2
                    
2
                    
3namespace PhpOffice\PhpSpreadsheet\Reader\Csv;
                    
4
                    
131            // Get the next line in the file
                    
132            $newLine = fgets($this->fileHandle);
                    
133
                    
                
Http.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 87 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) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
43</form>
                    
44<?php
                    
45             exit;
                    
71
                    
72                        $buffer = fgets($read, 4096);
                    
73                        $import = Mage::getModel('dataflow/import');
                    
                
PopBeforeSmtpPlugin.php https://gitlab.com/Gashler/sg | PHP | 286 lines
                    
1<?php
                    
2
                    
156        
                    
157        if (false === $greeting = fgets($this->_socket))
                    
158        {
                    
247    
                    
248    if (false === $response = fgets($this->_socket))
                    
249    {
                    
                
Digest.php https://bitbucket.org/kdms/sh-magento.git | PHP | 252 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Digest.php 23088 2010-10-11 19:53:24Z padraic $
                    
21 */
                    
26 */
                    
27#require_once 'Zend/Auth/Adapter/Interface.php';
                    
28
                    
188                 */
                    
189                #require_once 'Zend/Auth/Adapter/Exception.php';
                    
190                throw new Zend_Auth_Adapter_Exception("Option '$optionRequired' must be set before authentication");
                    
197             */
                    
198            #require_once 'Zend/Auth/Adapter/Exception.php';
                    
199            throw new Zend_Auth_Adapter_Exception("Cannot open '$this->_filename' for reading");
                    
213
                    
214        while ($line = trim(fgets($fileHandle))) {
                    
215            if (substr($line, 0, $idLength) === $id) {
                    
                
update.php https://github.com/jptoto/barcampphilly.git | PHP | 173 lines
                    
1<?php
                    
2/**
                    
11 *
                    
12 * The WordPress version, PHP version, and Locale is sent. Checks against the WordPress server at
                    
13 * api.wordpress.org. Will only check if PHP has fsockopen enabled and WordPress isn't installing.
                    
25	global $wp_version;
                    
26	$php_version = phpversion();
                    
27
                    
41
                    
42	$http_request  = "GET /core/version-check/1.1/?version=$wp_version&php=$php_version&locale=$locale HTTP/1.0\r\n";
                    
43	$http_request .= "Host: api.wordpress.org\r\n";
                    
51		while ( !feof( $fs ) )
                    
52			$response .= fgets( $fs, 1160 ); // One TCP-IP packet
                    
53		fclose( $fs );
                    
76 *
                    
77 * The WordPress version, PHP version, and Locale is sent along with a list of all plugins installed.
                    
78 * Checks against the WordPress server at api.wordpress.org.
                    
                
paypal_connect.php https://gitlab.com/staging06/myproject | PHP | 140 lines
                    
1<?php
                    
2/**
                    
9* It is also available through the world-wide-web at this URL:
                    
10* http://opensource.org/licenses/afl-3.0.php
                    
11* If you did not receive a copy of the license and are unable to
                    
22*  @copyright 2007-2015 PrestaShop SA
                    
23*  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
                    
24*  International Registered Trademark & Property of PrestaShop SA
                    
119			while (!feof($fp))
                    
120				$tmp .= trim(fgets($fp, 1024));
                    
121
                    
                
Maildir.php https://github.com/bhaumik25/zend-framework.git | PHP | 222 lines
                    
1<?php
                    
2/**
                    
23 */
                    
24require_once 'Zend/Mail/Abstract.php';
                    
25
                    
28 */
                    
29require_once 'Zend/Mail/Message.php';
                    
30
                    
33 */
                    
34require_once 'Zend/Mail/Exception.php';
                    
35
                    
124        while(!feof($fh) && ($inHeader || $bodyLines--)) {
                    
125            $line = fgets($fh);
                    
126            if ($inHeader && !trim($line)) {
                    
                
 

Source

Language