PageRenderTime 2369ms queryTime 116ms sortTime 126ms getByIdsTime 1073ms findMatchingLines 359ms

100+ results results for 'php fopen' (2369 ms)

Not the results you expected?
update.php https://gitlab.com/endomorphosis/OLAAaction | PHP | 476 lines
                    
45	/**
                    
46	 * Does the server support URL fopen() wrappers?
                    
47	 * @return bool
                    
185	 */
                    
186	private function getUpdateINIfopen()
                    
187	{
                    
294			jimport('joomla.utilities.date');
                    
295			require_once JPATH_COMPONENT_ADMINISTRATOR.DS.'version.php';
                    
296			$curdate = new JDate(ADMINTOOLS_DATE);
                    
350		// ii. Moment of truth: try to open write-only
                    
351		$fp = @fopen($target, 'wb');
                    
352		if( $fp === false )
                    
409			} else {
                    
410				// PHP 4 way (actually, it's just a fallback as we can't run Admin Tools in PHP4)
                    
411				ini_set('user_agent', 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0)');
                    
                
HTML.php https://bitbucket.org/crowdguru/phpexcel.git | PHP | 495 lines
                    
34	define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../');
                    
35	require(PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php');
                    
36}
                    
149		// Create new PHPExcel
                    
150		$objPHPExcel = new PHPExcel();
                    
151
                    
430	/**
                    
431	 * Loads PHPExcel from file into PHPExcel instance
                    
432	 *
                    
433	 * @param 	string 		$pFilename
                    
434	 * @param	PHPExcel	$objPHPExcel
                    
435	 * @return 	PHPExcel
                    
437	 */
                    
438	public function loadIntoExisting($pFilename, PHPExcel $objPHPExcel)
                    
439	{
                    
                
String.php https://github.com/almonk/Deadweight-CMS-1.git | PHP | 497 lines
                    
1<?php
                    
2
                    
290		$temp = tempnam($cacheDir, 'temp');
                    
291		if (!($file = @fopen($temp, 'wb'))) {
                    
292			$temp = $cacheDir . uniqid('temp');
                    
292			$temp = $cacheDir . uniqid('temp');
                    
293			if (!($file = @fopen($temp, 'wb'))) {
                    
294				trigger_error('Error writing temporary file \''.$temp.'\'', E_USER_WARNING);
                    
355					if (class_exists('Dwoo_Compiler', false) === false) {
                    
356						include DWOO_DIRECTORY . 'Dwoo/Compiler.php';
                    
357					}
                    
424		}
                    
425		return $dwoo->getCompileDir() . $this->compileId.'.d'.Dwoo::RELEASE_TAG.'.php';
                    
426	}
                    
454	/**
                    
455	 * returns some php code that will check if this template has been modified or not
                    
456	 *
                    
                
lib.php https://bitbucket.org/ngmares/moodle.git | PHP | 327 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
24 */
                    
25require_once($CFG->dirroot . '/repository/lib.php');
                    
26require_once($CFG->libdir.'/flickrlib.php');
                    
58
                    
59        $this->flickr = new phpFlickr($this->api_key, $this->secret, $this->token);
                    
60
                    
157    /**
                    
158     * Converts result received from phpFlickr::photo_search to Filepicker/repository format
                    
159     *
                    
255        $path = $this->prepare_file($file);
                    
256        $fp = fopen($path, 'w');
                    
257        $c = new curl;
                    
295            $instance = array_shift($instances);
                    
296            $callbackurl = $CFG->wwwroot.'/repository/repository_callback.php?repo_id='.$instance->id;
                    
297            $mform->addElement('static', 'callbackurl', '', get_string('callbackurltext', 'repository_flickr', $callbackurl));
                    
                
wp_loaded.php https://gitlab.com/najomie/fit-hippie | PHP | 281 lines
                    
1<?php
                    
2
                    
214								if ($log_storage){									
                    
215									$log = @fopen($log_file, 'a+');				
                    
216									@fwrite($log, $log_data);
                    
                
define_pages_editor.php https://github.com/ZenMagick/zc-base.git | PHP | 270 lines
                    
125<!-- header //-->
                    
126<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
                    
127<!-- header_eof //-->
                    
228              <tr>
                    
229                <td class="smallText"><a href="<?php echo zen_href_link($_GET['filename'], 'lngdir=' . $_SESSION['language'] . '&filename=' . $filename); ?>"><b><?php echo $filename; ?></b></a></td>
                    
230<?php
                    
233    if ($dir) {
                    
234      $file_extension = substr($PHP_SELF, strrpos($PHP_SELF, '.'));
                    
235      while ($file = $dir->read()) {
                    
264<!-- footer //-->
                    
265<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
                    
266<!-- footer_eof //-->
                    
269</html>
                    
270<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
                    
271
                    
                
airfoil.cpp https://github.com/OP2/OP2-Common.git | C++ | 314 lines
                    
2 * Open source copyright declaration based on BSD open source template:
                    
3 * http://www.opensource.org/licenses/bsd-license.php
                    
4 *
                    
88  FILE *fp;
                    
89  if ((fp = fopen("./new_grid.dat", "r")) == NULL) {
                    
90    op_printf("can't open file new_grid.dat\n");
                    
                
file.php https://github.com/boluak/lifefm-github.git | PHP | 379 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * @version		$Id: file.php 10707 2008-08-21 09:52:47Z eddieajau $
                    
4 * @package		Joomla.Framework
                    
6 * @copyright	Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
                    
7 * @license		GNU/GPL, see LICENSE.php
                    
8 * Joomla! is free software. This version may have been modified pursuant
                    
11 * other free or open source software licenses.
                    
12 * See COPYRIGHT.php for copyright notices and details.
                    
13 */
                    
238		if($amount && $chunksize > $amount) { $chunksize = $amount; }
                    
239		if (false === $fh = fopen($filename, 'rb', $incpath)) {
                    
240			JError::raiseWarning(21, 'JFile::read: '.JText::_('Unable to open file') . ": '$filename'");
                    
304	 *
                    
305	 * @param string $src The name of the php (temporary) uploaded file
                    
306	 * @param string $dest The path (including filename) to move the uploaded file to
                    
                
class-wp-image-editor.php https://gitlab.com/Gashler/dp | PHP | 403 lines
                    
1<?php
                    
2/**
                    
341
                    
342			$fp = fopen( $filename, 'w' );
                    
343
                    
                
mcu-cli.php https://gitlab.com/Slind/MCUpdater | PHP | 380 lines
                    
1#!/usr/bin/env php
                    
2<?php
                    
10 *    server jar.
                    
11 * 1) Copy the default config to 'mcu-cli-config.php'
                    
12 * 2) Edit your new config, updating at a minimum the pack url, server id,
                    
13 *    server jar, and memory settings.
                    
14 * 3) Execute mcu-cli.php and hope for the best :)
                    
15 *
                    
22
                    
23msg("MCU-CLI.php Starting...");
                    
24msg(date("r"));
                    
38// load config, copying from default if one is not found
                    
39$cfg_default_filename = "mcu-cli-config.default.php";
                    
40$cfg_filename = "mcu-cli-config.php";
                    
176	$ch = curl_init($url);
                    
177	$fp = fopen($fname, "w");
                    
178
                    
                
Preview.php https://github.com/michaelmcandrew/vaw.git | PHP | 235 lines
                    
1<?php
                    
2
                    
36
                    
37require_once 'CRM/Core/Form.php';
                    
38require_once 'CRM/Member/Import/Parser/Membership.php';
                    
217            
                    
218            if ( $fd = fopen( $errorFile, 'w' ) ) {
                    
219                fwrite($fd, implode('\n', $errorMessage));
                    
                
CSV.php https://gitlab.com/hoanghung.dev/aloads | PHP | 352 lines
                    
27 */
                    
28class PHPExcel_Writer_CSV extends PHPExcel_Writer_Abstract implements PHPExcel_Writer_IWriter
                    
29{
                    
89     *
                    
90     * @param    PHPExcel    $phpExcel    PHPExcel object
                    
91     */
                    
108        $saveDebugLog = PHPExcel_Calculation::getInstance($this->phpExcel)->getDebugLog()->getWriteDebugLog();
                    
109        PHPExcel_Calculation::getInstance($this->phpExcel)->getDebugLog()->setWriteDebugLog(false);
                    
110        $saveArrayReturnType = PHPExcel_Calculation::getArrayReturnType();
                    
110        $saveArrayReturnType = PHPExcel_Calculation::getArrayReturnType();
                    
111        PHPExcel_Calculation::setArrayReturnType(PHPExcel_Calculation::RETURN_ARRAY_AS_VALUE);
                    
112
                    
150        PHPExcel_Calculation::setArrayReturnType($saveArrayReturnType);
                    
151        PHPExcel_Calculation::getInstance($this->phpExcel)->getDebugLog()->setWriteDebugLog($saveDebugLog);
                    
152    }
                    
                
import.php https://github.com/pauln/moodle.git | PHP | 247 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
24
                    
25require_once(dirname(__FILE__).'/../../../config.php');
                    
26require_once($CFG->dirroot.'/lib/formslib.php');
                    
26require_once($CFG->dirroot.'/lib/formslib.php');
                    
27require_once($CFG->dirroot.'/grade/lib.php');
                    
28require_once($CFG->libdir.'/gradelib.php');
                    
28require_once($CFG->libdir.'/gradelib.php');
                    
29require_once('import_outcomes_form.php');
                    
30
                    
34
                    
35$PAGE->set_url('/grade/edit/outcome/import.php', array('courseid' => $courseid));
                    
36$PAGE->set_pagelayout('admin');
                    
46    if (empty($CFG->enableoutcomes)) {
                    
47        redirect('../../index.php?id='.$courseid);
                    
48    }
                    
                
backup_db.php https://bitbucket.org/flth/xtcm.git | PHP | 351 lines
                    
58        if ($data!=''){
                    
59          $fp=fopen($df,'ab');
                    
60          fwrite($fp,$data);
                    
287    <!-- header //-->
                    
288    <?php require(DIR_WS_INCLUDES . 'header.php'); ?>
                    
289    <!-- header_eof //-->
                    
298            <!-- left_navigation //-->
                    
299            <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
                    
300            <!-- left_navigation_eof //-->
                    
309                  <tr>
                    
310                    <td class="pageHeading"><?php echo HEADING_TITLE; ?><span class="smallText"> [<?php echo VERSION; ?>]</span></td>
                    
311                    <td class="pageHeading" align="right"><?php echo xtc_draw_separator('pixel_trans.gif', HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
                    
341    <!-- footer //-->
                    
342    <?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
                    
343    <!-- footer_eof //-->
                    
                
DtoTest.php https://gitlab.com/cezar.zaleski/commonsphp | PHP | 328 lines
                    
1<?php
                    
2
                    
5// Necessário para simular o DtoInvalido com namespace Commons/Dto
                    
6require_once __DIR__ . '/Mock/Escola.php';
                    
7require_once __DIR__ . '/Mock/Aluno.php';
                    
7require_once __DIR__ . '/Mock/Aluno.php';
                    
8require_once __DIR__ . '/Mock/Matricula.php';
                    
9
                    
16 */
                    
17class DtoTest extends \PHPUnit_Framework_TestCase
                    
18{
                    
54            array(
                    
55                fopen(__DIR__ . '/DtoTest.php', 'r')
                    
56            ),
                    
                
file_helper.php https://gitlab.com/lisit1003/TTPHPServer | PHP | 479 lines
                    
4 *
                    
5 * An open source application development framework for PHP 5.1.6 or newer
                    
6 *
                    
52
                    
53		if ( ! $fp = @fopen($file, FOPEN_READ))
                    
54		{
                    
87{
                    
88	function write_file($path, $data, $mode = FOPEN_WRITE_CREATE_DESTRUCTIVE)
                    
89	{
                    
89	{
                    
90		if ( ! $fp = @fopen($path, $mode))
                    
91		{
                    
334 *
                    
335 * Translates a file extension into a mime type based on config/mimes.php.
                    
336 * Returns FALSE if it can't determine the type, or open the mime config file
                    
                
Random.php https://gitlab.com/Gashler/dp | PHP | 243 lines
                    
56function crypt_random_string($length) {
                    
57    // PHP_OS & "\xDF\xDF\xDF" == strtoupper(substr(PHP_OS, 0, 3)), but a lot faster
                    
58    if ((PHP_OS & "\xDF\xDF\xDF") === 'WIN') {
                    
64        // method 2. openssl_random_pseudo_bytes was introduced in PHP 5.3.0 but prior to PHP 5.3.4 there was,
                    
65        // to quote <http://php.net/ChangeLog-5.php#5.3.4>, "possible blocking behavior". as of 5.3.4
                    
66        // openssl_random_pseudo_bytes and mcrypt_create_iv do the exact same thing on Windows. ie. they both
                    
69        // https://github.com/php/php-src/blob/7014a0eb6d1611151a286c0ff4f2238f92c120d6/ext/openssl/openssl.c#L5008
                    
70        // https://github.com/php/php-src/blob/7014a0eb6d1611151a286c0ff4f2238f92c120d6/ext/mcrypt/mcrypt.c#L1392
                    
71        //
                    
73        //
                    
74        // https://github.com/php/php-src/blob/7014a0eb6d1611151a286c0ff4f2238f92c120d6/win32/winutil.c#L80
                    
75        //
                    
95        // method 3. pretty much does the same thing as method 2 per the following url:
                    
96        // https://github.com/php/php-src/blob/7014a0eb6d1611151a286c0ff4f2238f92c120d6/ext/mcrypt/mcrypt.c#L1391
                    
97        // surprisingly slower than method 2. maybe that's because mcrypt_create_iv does a bunch of error checking that we're
                    
                
file_helper.php https://gitlab.com/fredec/ionizecms-1.0.8.x | PHP | 479 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 5.1.6 or newer
                    
6 *
                    
52
                    
53		if ( ! $fp = @fopen($file, FOPEN_READ))
                    
54		{
                    
87{
                    
88	function write_file($path, $data, $mode = FOPEN_WRITE_CREATE_DESTRUCTIVE)
                    
89	{
                    
89	{
                    
90		if ( ! $fp = @fopen($path, $mode))
                    
91		{
                    
240
                    
241			// foreach (scandir($source_dir, 1) as $file) // In addition to being PHP5+, scandir() is simply not as fast
                    
242			while (FALSE !== ($file = readdir($fp)))
                    
                
updates.php https://github.com/cladjidane/D-mo-HTML5-CSS3.git | PHP | 377 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * @version		$Id: updates.php 222 2011-06-11 17:32:06Z happy_noodle_boy $
                    
4 * @package   	JCE
                    
17// load base model
                    
18require_once(dirname(__FILE__) . DS . 'model.php');
                    
19
                    
22    
                    
23	var $url = 'https://www.joomlacontenteditor.net/index.php?option=com_updates&format=raw';
                    
24	
                    
27		if (!function_exists('curl_init')) {
                    
28			return function_exists('file_get_contents') && function_exists('ini_get') && ini_get('allow_url_fopen');
                    
29		}
                    
318			if ($download) {
                    
319				$fp = @fopen ($download, 'wb');						
                    
320				@curl_setopt($ch, CURLOPT_FILE, $fp);
                    
                
http-messages.rst https://gitlab.com/x33n/respond | ReStructuredText | 483 lines
                    
82
                    
83.. code-block:: php
                    
84
                    
224
                    
225.. code-block:: php
                    
226
                    
243This method returns a ``GuzzleHttp\Query`` object. A Query object can be
                    
244accessed like a PHP array, iterated in a foreach statement like a PHP array,
                    
245and cast to a string.
                    
280convert the complex structure into a string. Query objects will use
                    
281`PHP style query strings <http://www.php.net/http_build_query>`_ when complex
                    
282query string parameters are converted to a string. You can customize how
                    
452
                    
453    Guzzle uses the ``json_decode()`` method of PHP and uses arrays rather than
                    
454    ``stdClass`` objects for objects.
                    
                
import.php https://github.com/tcubansk/moodle.git | PHP | 246 lines
                    
1<?php
                    
2// This file is part of Moodle - http://moodle.org/
                    
24
                    
25require_once(dirname(__FILE__).'/../../../config.php');
                    
26require_once($CFG->dirroot.'/lib/formslib.php');
                    
26require_once($CFG->dirroot.'/lib/formslib.php');
                    
27require_once($CFG->dirroot.'/grade/lib.php');
                    
28require_once($CFG->libdir.'/gradelib.php');
                    
28require_once($CFG->libdir.'/gradelib.php');
                    
29require_once('import_outcomes_form.php');
                    
30
                    
34
                    
35$PAGE->set_url('/grade/edit/outcome/import.php', array('courseid' => $courseid));
                    
36
                    
45    if (empty($CFG->enableoutcomes)) {
                    
46        redirect('../../index.php?id='.$courseid);
                    
47    }
                    
                
CliDumperTest.php https://gitlab.com/rmoshiur81/Larave-Grading | PHP | 506 lines
                    
44        $out = preg_replace('/[ \t]+$/m', '', $out);
                    
45        $intMax = PHP_INT_MAX;
                    
46        $res = (int) $var['res'];
                    
232    {
                    
233        $out = fopen('php://memory', 'r+b');
                    
234
                    
286  seekable: true
                    
287  uri: "php://memory"
                    
288%Aoptions: []
                    
293        src: {
                    
294          %sTwig.php:19: """
                    
295                // line 2\\n
                    
355
                    
356        $out = fopen('php://memory', 'r+b');
                    
357        $data = $cloner->cloneVar($var);
                    
                
Backup.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 402 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 */
                    
183
                    
184        $fResource = @fopen($this->getPath() . DS . $this->getFileName(), "rb");
                    
185        if (!$fResource) {
                    
                
RedirectPluginTest.php https://gitlab.com/techniconline/kmc | PHP | 277 lines
                    
1<?php
                    
2
                    
189        $request->configureRedirects(true);
                    
190        $body = EntityBody::factory(fopen($this->getServer()->getUrl(), 'r'));
                    
191        $body->read(1);
                    
                
Mbox.php https://github.com/openstate/HNS.dev.git | PHP | 434 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Mbox.php 8064 2008-02-16 10:58:39Z thomas $
                    
21 */
                    
27 */
                    
28// require_once 'Zend/Loader.php';
                    
29
                    
32 */
                    
33require_once 'Zend/Mail/Storage/Abstract.php';
                    
34
                    
37 */
                    
38require_once 'Zend/Mail/Message.php';
                    
39
                    
121             */
                    
122            require_once 'Zend/Mail/Storage/Exception.php';
                    
123            throw new Zend_Mail_Storage_Exception('id does not exist');
                    
                
BodyTest.php https://gitlab.com/leon0399/damnit-engine | PHP | 401 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * @link      https://github.com/slimphp/Slim
                    
6 * @copyright Copyright (c) 2011-2015 Josh Lockhart
                    
6 * @copyright Copyright (c) 2011-2015 Josh Lockhart
                    
7 * @license   https://github.com/slimphp/Slim/blob/master/LICENSE.md (MIT License)
                    
8 */
                    
42    {
                    
43        $stream = fopen('php://temp', $mode);
                    
44        fwrite($stream, $this->text);
                    
242    {
                    
243        $stream = fopen('php://temp', 'w');
                    
244        $body = new Body($this->stream);
                    
268    {
                    
269        $stream = fopen('php://temp', 'r');
                    
270        $body = new Body($this->stream);
                    
                
pearcmd.php https://bitbucket.org/kucing2k/ediassoc.git | PHP | 444 lines
                    
59if (!isset($_SERVER['argv']) && !isset($argv) && !isset($HTTP_SERVER_VARS['argv'])) {
                    
60    echo 'ERROR: either use the CLI php executable, or set register_argc_argv=On in php.ini';
                    
61    exit(1);
                    
132// this is used in the error handler to retrieve a relative path
                    
133$_PEAR_PHPDIR = $config->get('php_dir');
                    
134$ui->setConfig($config);
                    
166                );
                    
167                $config->set('php_dir', $pearbase . DIRECTORY_SEPARATOR . 'php');
                    
168                $config->set('data_dir', $pearbase . DIRECTORY_SEPARATOR . 'data');
                    
320    global $progname, $all_commands;
                    
321    $stdout = fopen('php://stdout', 'w');
                    
322    if (PEAR::isError($error)) {
                    
376        return "PEAR Version: ".$GLOBALS['pear_package_version'].
                    
377               "\nPHP Version: ".phpversion().
                    
378               "\nZend Engine Version: ".zend_version().
                    
                
image.php https://gitlab.com/Blueprint-Marketing/interoccupy.net | PHP | 412 lines
                    
1<?php
                    
2/**
                    
30		if ( ! file_exists( $src_file ) ) {
                    
31			// If the file doesn't exist, attempt a url fopen on the src link.
                    
32			// This can occur with certain file replication plugins.
                    
359 * If the attached file is not present on the local filesystem (usually due to replication plugins),
                    
360 * then the url of the file is returned if url fopen is supported.
                    
361 *
                    
375		}
                    
376	} elseif ( function_exists( 'fopen' ) && function_exists( 'ini_get' ) && true == ini_get( 'allow_url_fopen' ) ) {
                    
377		$filepath = apply_filters( 'load_image_to_edit_attachmenturl', wp_get_attachment_url( $attachment_id ), $attachment_id, $size );
                    
                
errors.lang.php https://bitbucket.org/speedealing/speedealing.git | PHP | 146 lines
                    
56		'ErrorFieldsRequired' => 'No se indicaron algunos campos obligatorios',
                    
57		'ErrorFailedToCreateDir' => 'Error en la creación de un directorio. Compruebe que el usuario del servidor Web tiene derechos de escritura en los directorios de documentos de Speedealing. Si el  parámetro <b>safe_mode</b> está activo en este PHP, Compruebe que los archivos php Speedealing pertenecen al usuario del servidor Web.',
                    
58		'ErrorNoMailDefinedForThisUser' => 'E-Mail no definido para este usuario',
                    
63		'ErrorDirNotFound' => 'Directorio<b>%s</b>no encontrado (Ruta incorrecta, permisos inadecuados o acceso prohibido por el parámetro PHP openbasedir o safe_mode)',
                    
64		'ErrorFunctionNotAvailableInPHP' => 'La función  <b>%s</b> es requerida por esta funcionalidad, pero no se encuetra disponible en esta versión/instalación de PHP.',
                    
65		'ErrorDirAlreadyExists' => 'Ya existe un directorio con ese nombre.',
                    
114		'ErrorLoginDisabled' => 'Su cuenta está desactivada',
                    
115		'ErrorFailedToRunExternalCommand' => 'Error de ejecución del comando externo. Compruebe que está disponible y ejecutable por su servidor PHP. Si el PHP <b>Safe Mode</b> está activo, compruebe que el comando se encuentra en un directorio definido en el parámetro <b>safe_mode_exec_dir</b>.',
                    
116		'ErrorFailedToChangePassword' => 'Error en la modificación de la contraseña',
                    
126		'ErrorFileRequired' => 'Se requiere un archivo de paquete Speedealing en formato zip',
                    
127		'ErrorPhpCurlNotInstalled' => 'La extensión PHP CURL no se encuentra instalada, es indispensable para dialogar con Paypal.',
                    
128		'ErrorFailedToAddToMailmanList' => 'Ha ocurrido un error al intentar añadir un registro a la lista Mailman o base de datos SPIP',
                    
134		'WarningSafeModeOnCheckExecDir' => 'Atención, está activada la opción PHP <b>safe_mode</b>, el comando deberá estar dentro de un directorio declarado dentro del parámetro php <b>safe_mode_exec_dir</b>.',
                    
135		'WarningAllowUrlFopenMustBeOn' => 'El parámetro <b>allow_url_fopen</b> debe ser especificado a <b>on</b> en el archivo <b>php.ini</b> para disponer de este módulo completamente activo. Debe modificar este archivo manualmente',
                    
136		'WarningBuildScriptNotRunned' => 'El script <b>%s</b> todavía no ha ejecutado la construcción de gráficos.',
                    
                
Backup.php https://bitbucket.org/mengqing/magento-mirror.git | PHP | 402 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 */
                    
183
                    
184        $fResource = @fopen($this->getPath() . DS . $this->getFileName(), "rb");
                    
185        if (!$fResource) {
                    
                
plugins.php https://github.com/sarriaroman/Cronos-Aion.git | PHP | 389 lines
                    
1<?php
                    
2
                    
55function create_database_schema_from_file($file) {
                    
56    $fh = fopen($file, 'r');
                    
57    $sql = fread($fh, filesize($file));
                    
179
                    
180        return urlencode( base_url . 'admin.php?plugin=' . $plg->invoke_name . '&section=' . $section );
                    
181    } else {
                    
205
                    
206        return urlencode( base_url . 'admin.php?plugin=' . $plg->invoke_name . '&section=' . $section . "&module=" . $module );
                    
207    } else {
                    
231
                    
232        return urlencode( base_url . 'admin.php?plugin=' . $plg->invoke_name . '&section=' . $section . "&module=" . $module );
                    
233    } else {
                    
312        $label = "";
                    
313        include( $dir . $directory . '/description.php' );
                    
314        array_push($array, array( "label" => ( $label == "" ) ? $directory : $label, "invoke" => $directory, "url" => get_plugin_section_url_by_path($directory, $plg->path) ) );
                    
                
Cache.php https://github.com/FranckErnewein/citron.git | PHP | 245 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: Cache.php 20096 2010-01-06 02:05:09Z bkarwin $
                    
20 */
                    
131            // security controls are explicit
                    
132            // require_once str_replace('_', DIRECTORY_SEPARATOR, $backendClass) . '.php';
                    
133        } else {
                    
144            if (!$autoload) {
                    
145                $file = str_replace('_', DIRECTORY_SEPARATOR, $backendClass) . '.php';
                    
146                if (!(self::_isReadable($file))) {
                    
173            // security controls are explicit
                    
174            // require_once str_replace('_', DIRECTORY_SEPARATOR, $frontendClass) . '.php';
                    
175        } else {
                    
227     * Returns TRUE if the $filename is readable, or FALSE otherwise.
                    
228     * This function uses the PHP include_path, where PHP's is_readable()
                    
229     * does not.
                    
                
PDF.php https://github.com/libersoft/fengoffice-ls.git | PHP | 461 lines
                    
22 * @package    PHPExcel_Writer
                    
23 * @copyright  Copyright (c) 2006 - 2008 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license    http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt	LGPL
                    
34 * @package    PHPExcel_Writer
                    
35 * @copyright  Copyright (c) 2006 - 2008 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
36 */
                    
36 */
                    
37class PHPExcel_Writer_PDF implements PHPExcel_Writer_IWriter {
                    
38	/**
                    
68	 *
                    
69	 * @param 	PHPExcel	$phpExcel	PHPExcel object
                    
70	 */
                    
71	public function __construct(PHPExcel $phpExcel) {
                    
72		$this->_phpExcel = $phpExcel;
                    
73		$this->_sheetIndex 	= 0;
                    
                
Curl.php https://gitlab.com/nboscode_starter/nbos_dev_php_starter | PHP | 401 lines
                    
1<?php
                    
2namespace NBOS\http;
                    
31			if(!file_exists($log_file_path)){
                    
32				$fp = fopen($log_file_path, 'a');
                    
33				fclose($fp);
                    
                
cURL.php https://gitlab.com/x33n/ampache | PHP | 349 lines
                    
1<?php
                    
2/**
                    
25	 *
                    
26	 * @var array cURL information array, see {@see http://php.net/curl_getinfo}
                    
27	 */
                    
92		if ($options['filename'] !== false) {
                    
93			$this->stream_handle = fopen($options['filename'], 'wb');
                    
94			curl_setopt($this->fp, CURLOPT_FILE, $this->stream_handle);
                    
204		if ($options['filename'] !== false) {
                    
205			$this->stream_handle = fopen($options['filename'], 'wb');
                    
206			curl_setopt($this->fp, CURLOPT_FILE, $this->stream_handle);
                    
313	 * @param string $url
                    
314	 * @param array|object $data Data to build query using, see {@see http://php.net/http_build_query}
                    
315	 * @return string URL with data
                    
                
functions.php https://bitbucket.org/zachisit/zachis.it-m.git | PHP | 367 lines
                    
122	$installerRescue = duplicator_safe_path(DUPLICATOR_PLUGIN_PATH  . 'files/installer.rescue.php');
                    
123	$installerCore	 = duplicator_safe_path(DUPLICATOR_SSDIR_PATH)  . "/{$uniquename}_installer.php";
                    
124
                    
158		} else {
                    
159			$fp2 = fopen($installerCore, 'w')  or die(duplicator_log("log:fun__create_installerFile=>file-open-error-w" . $err_msg));
                    
160		}
                    
299	//SSDIR: Create Index File
                    
300	$ssfile = @fopen($path_ssdir .'/index.php', 'w');
                    
301	@fwrite($ssfile, '<?php error_reporting(0);  if (stristr(php_sapi_name(), "fcgi")) { $url  =  "http://" . $_SERVER["HTTP_HOST"]; header("Location: {$url}/404.html");} else { header("HTML/1.1 404 Not Found", true, 404);} exit(); ?>');
                    
305	$tokenfile = @fopen($path_ssdir .'/dtoken.php', 'w');
                    
306	@fwrite($tokenfile, '<?php error_reporting(0);  if (stristr(php_sapi_name(), "fcgi")) { $url  =  "http://" . $_SERVER["HTTP_HOST"]; header("Location: {$url}/404.html");} else { header("HTML/1.1 404 Not Found", true, 404);} exit(); ?>');
                    
307	@fclose($tokenfile);
                    
320	$tokenfile2 = @fopen($path_plugin .'files/dtoken.php', 'w');
                    
321	@fwrite($tokenfile2, '<?php @error_reporting(0); @require_once("../../../../wp-admin/admin.php"); global $wp_query; $wp_query->set_404(); header("HTML/1.1 404 Not Found", true, 404); header("Status: 404 Not Found"); @include(get_template_directory () . "/404.php"); ?>');
                    
322	@fclose($tokenfile2);
                    
                
SCP.php https://gitlab.com/code26/selah | PHP | 373 lines
                    
3/**
                    
4 * Pure-PHP implementation of SCP.
                    
5 *
                    
5 *
                    
6 * PHP versions 4 and 5
                    
7 *
                    
7 *
                    
8 * The API for this library is modeled after the API from PHP's {@link http://php.net/book.ftp FTP extension}.
                    
9 *
                    
11 * <code>
                    
12 * <?php
                    
13 *    include 'Net/SCP.php';
                    
13 *    include 'Net/SCP.php';
                    
14 *    include 'Net/SSH2.php';
                    
15 *
                    
                
index.php https://bitbucket.org/gencer/punbb.git | PHP | 244 lines
                    
128else if (isset($_PHPA))
                    
129	$php_accelerator = '<a href="http://www.php-accelerator.co.uk/">ionCube PHP Accelerator</a>';
                    
130else if (ini_get('apc.enabled'))
                    
130else if (ini_get('apc.enabled'))
                    
131	$php_accelerator ='<a href="http://www.php.net/apc/">Alternative PHP Cache (APC)</a>';
                    
132else if (ini_get('zend_optimizer.optimization_level'))
                    
204					<h3 class="ct-legend hn"><span><?php echo $lang_admin_index['Server load'] ?></span></h3>
                    
205					<p><span><?php echo $server_load ?> (<?php echo $num_online.' '.$lang_admin_index['users online']?>)</span></p>
                    
206				</div>
                    
213						<li><span><?php echo $lang_admin_index['Operating system'] ?>: <?php echo PHP_OS ?></span></li>
                    
214						<li><span>PHP: <?php echo PHP_VERSION ?> - <a href="<?php echo forum_link($forum_url['admin_index']) ?>?action=phpinfo"><?php echo $lang_admin_index['Show info'] ?></a></span></li>
                    
215						<li><span><?php echo $lang_admin_index['Accelerator'] ?>: <?php echo $php_accelerator ?></span></li>
                    
226						<li><span><?php echo $lang_admin_index['Rows'] ?>: <?php echo forum_number_format($total_records) ?></span></li>
                    
227						<li><span><?php echo $lang_admin_index['Size'] ?>: <?php echo $total_size ?></span></li>
                    
228<?php endif; ?>
                    
                
install.php https://gitlab.com/e0/X2CRM | PHP | 95 lines
                    
2  'required but missing' => '필요하지만 누락',
                    
3  'Your server\'s PHP version' => '서버의 \\ &#39;의 PHP 버전',
                    
4  'version 5.3 or later is required' => '버전 5.3 이상이 필요합니다',
                    
24  'News Outlet' => '뉴스 아울렛',
                    
25  'This directory is not writable by PHP processes run by the webserver.' => '이 디렉토리는 웹 서버에 의해 실행 PHP 프로세스에 의해 쓸 수 없습니다.',
                    
26  'PHP scripts are not permitted to run the function "chmod".' => 'PHP 스크립트는 함수 &quot;chmod를&quot;를 실행 할 수 없습니다.',
                    
29  'Built-in error reporter will not work' => '내장 된 오류 기자가 작동하지 않습니다',
                    
30  'The PHP configuration option "allow_url_fopen" is disabled. CURL will be used for making all HTTP requests during updates.' => 'PHP 구성 옵션 &quot;allow_url_fopen을&quot;이 비활성화되어 있습니다. CURL을 업데이트하는 동안 모든 HTTP 요청을 만드는 데 사용됩니다.',
                    
31  'This will result in the inability to import and export custom modules.' => '이 사용자 정의 모듈을 가져오고 내보낼 수 없게됩니다.',
                    
33  'All other essential requirements were met.' => '다른 모든 필수 요구 사항을 충족 하였다.',
                    
34  'The version of the PCRE library included in this build of PHP is {thisVer}, but {reqVer} or later is required.' => 'PHP의이 빌드에 포함 된 PCRE 라이브러리의 버전은 {thisVer} 하지만, {reqVer} 이상 이상이 필요합니다.',
                    
35  'The "openssl" and "mcrypt" libraries are not available. If any application credentials (i.e. email account passwords) are entered into X2Engine, they  will be stored in the database in plain text (without any encryption whatsoever). Thus, if the database is ever compromised, those passwords will be readable by unauthorized parties.' => '&quot;OpenSSL을&quot;과 &quot;Mcrypt 라이브러리&quot;라이브러리는 사용할 수 없습니다. 모든 응용 프로그램 자격 증명 (예 : 전자 메일 계정 암호가) X2Engine에 입력하면, 그들은 일반 텍스트 데이터베이스 (어떠한 암호화없이)에 저장됩니다. 데이터베이스도 손상된 경우 따라서, 이러한 암호는 무단으로 읽을 수 있습니다.',
                    
65  'The path defined in session.save_path ({ssp}) is not writable.' => '때 session.save_path에 정의 된 경로 ( {ssp} ) 쓸 수 없습니다.',
                    
66  'The PHP configuration option "allow_url_fopen" is disabled in addition to the CURL extension missing. This means there is no possible way to make outbound HTTP/HTTPS requests.' => '&quot;allow_url_fopen을&quot;PHP 설정 옵션이없는 CURL 확장에 추가하여 사용할 수 없습니다. 이는 아웃 바운드 HTTP / HTTPS 요청을 수행하는 가능한 방법이 없다는 것을 의미한다.',
                    
67  'Software updates will have to be performed using the "offline" method, and Google integration will not work.' => '소프트웨어 업데이트는 &quot;오프라인&quot;방법을 사용하여 수행해야합니다, 구글의 통합이 작동하지 않습니다.',
                    
                
WindowsAzure.php https://github.com/necrogami/zf2.git | PHP | 448 lines
                    
1<?php
                    
2/**
                    
55    const RETURN_STRING = 2; // return data as string
                    
56    const RETURN_STREAM = 3; // return PHP stream
                    
57
                    
182        if ($returnType == self::RETURN_STREAM) {
                    
183            return fopen($returnPath, $openMode);
                    
184        }
                    
203            $temporaryFilePath = tempnam('', 'azr');
                    
204            $fpDestination     = fopen($temporaryFilePath, 'w');
                    
205
                    
                
chunk.php https://gitlab.com/hschoenburg/tlworks2 | PHP | 392 lines
                    
1<?php
                    
2
                    
2
                    
3include __DIR__ . "/XmlStreamReader/autoload.php";
                    
4
                    
57   *
                    
58   * @var resource The fopen() resource
                    
59   * @access private
                    
91    $is_html = false;
                    
92    $f = @fopen($file, "rb");       
                    
93    while (!@feof($f)) {
                    
234        else
                    
235           $path = 'php://filter/read=preprocessxml/resource=' . $this->file;
                    
236    }
                    
368
                    
369class preprocessXml_filter extends php_user_filter {    
                    
370
                    
                
ARC2_TestHandler.php https://gitlab.com/klausmig/CloudSemanticWeb | PHP | 434 lines
                    
1<?php
                    
2/*
                    
61      unset($this->reader);
                    
62      $fp = @fopen('tmp/' . $fname, "w");
                    
63      @fwrite($fp, $r);
                    
                
template.php https://github.com/condesan/infoandina.git | PHP | 286 lines
                    
98
                    
99    $cantestremoteimages = ini_get('allow_url_fopen');
                    
100    if (($checkfullimages || $checkimagesexist) && sizeof($images)) {
                    
116            } else {
                    
117              print $GLOBALS['I18N']->get("Image")." $key => ".$GLOBALS['I18N']->get('cannot check, "allow_url_fopen" disabled in PHP settings')."<br/>\n";
                    
118            }
                    
198<tr>
                    
199  <td colspan=2><?php echo $GLOBALS['I18N']->get('Content of the template.')?><br /><?php echo $GLOBALS['I18N']->get('The content should at least have <b>[CONTENT]</b> somewhere.')?><br/><?php echo $GLOBALS['I18N']->get('You can upload a template file or paste the text in the box below'); ?></td>
                    
200</tr>
                    
201<tr>
                    
202  <td><?php echo $GLOBALS['I18N']->get('Template file.')?></td>
                    
203    <td><input type=file name="file_template" /></td>
                    
277<tr>
                    
278  <td><?php echo $GLOBALS['I18N']->get('Check that all external images exist')?></td>
                    
279  <td><input type=checkbox name="checkimagesexist" <?php echo $checkimagesexist?"checked":""?>></td>
                    
                
layout.php https://gitlab.com/hunt9310/ras | PHP | 307 lines
                    
1<?php
                    
2
                    
39				// create file & store layout information
                    
40				$fp = fopen( $file, 'w' );
                    
41				fwrite( $fp, '[wr_layout name="' . $layout_name . '"]' );
                    
123		static function extract_layout_data( $path, $data ) {
                    
124			$fp = @fopen( $path, 'r' );
                    
125			if ( $fp ) {
                    
                
backupdb.php https://gitlab.com/Conors99/ppm-1.8 | PHP | 484 lines
                    
1<?php
                    
2/**
                    
52
                    
53$page->add_breadcrumb_item($lang->database_backups, "index.php?module=tools-backupdb");
                    
54
                    
61		flash_message($lang->error_file_not_specified, 'error');
                    
62		admin_redirect("index.php?module=tools-backupdb");
                    
63	}
                    
80
                    
81		$handle = fopen(MYBB_ADMIN_DIR.'backups/'.$file, 'rb');
                    
82		while(!feof($handle))
                    
90		flash_message($lang->error_invalid_backup, 'error');
                    
91		admin_redirect("index.php?module=tools-backupdb");
                    
92	}
                    
98	{
                    
99		admin_redirect("index.php?module=tools-backupdb");
                    
100	}
                    
                
HttpClient.php https://github.com/slee2004/moodle.git | PHP | 352 lines
                    
1<?php
                    
2/**
                    
25 */
                    
26require_once 'Zend/Http/Client.php';
                    
27
                    
98                                             $useIncludePath = false) {
                    
99        $fp = @fopen($file, "r", $useIncludePath);
                    
100        if (!$fp) {
                    
100        if (!$fp) {
                    
101            require_once 'Zend/Gdata/App/InvalidArgumentException.php';
                    
102            throw new Zend_Gdata_App_InvalidArgumentException('Failed to open private key file for AuthSub.');
                    
115     *
                    
116     * In order to call this method, openssl must be enabled in your PHP
                    
117     * installation.  Otherwise, a Zend_Gdata_App_InvalidArgumentException
                    
126        if ($key != null && !function_exists('openssl_pkey_get_private')) {
                    
127            require_once 'Zend/Gdata/App/InvalidArgumentException.php';
                    
128            throw new Zend_Gdata_App_InvalidArgumentException(
                    
                
helper.php https://gitlab.com/wuhang2003/core | PHP | 297 lines
                    
1<?php
                    
2/**
                    
33	/**
                    
34	 * @dataProvider phpFileSizeProvider
                    
35	 */
                    
35	 */
                    
36	public function testPhpFileSize($expected, $input)
                    
37	{
                    
37	{
                    
38		$result = OC_Helper::phpFileSize($input);
                    
39		$this->assertEquals($expected, $result);
                    
41
                    
42	public function phpFileSizeProvider()
                    
43	{
                    
192		if (is_string($source)) {
                    
193			$source = fopen($source, 'r');
                    
194		}
                    
                
functions.php https://bitbucket.org/samsanders/love-courage-hope.git | PHP | 384 lines
                    
1<?php if (!defined('OT_VERSION')) exit('No direct script access allowed');
                    
2/**
                    
331    /* can't write to the file return false */
                    
332    if ( !$f = @fopen( $filepath, 'w' ) )
                    
333      return false;
                    
                
sql.inc.php https://gitlab.com/sylver.gocloud/gocloudasia-college-system-framework | PHP | 238 lines
                    
1<?php
                    
2if (!$error && $_POST["export"]) {
                    
23	} elseif ($_POST["webfile"]) {
                    
24		$fp = @fopen((file_exists("adminer.sql")
                    
25			? "adminer.sql"
                    
186<form action="" method="post" enctype="multipart/form-data" id="form">
                    
187<?php
                    
188$execute = "<input type='submit' value='" . lang('Execute') . "' title='Ctrl+Enter'>";
                    
                
functions.php https://gitlab.com/reasonat/test8 | PHP | 329 lines
                    
1<?php
                    
2namespace GuzzleHttp;
                    
91
                    
92    return fopen('php://output', 'w');
                    
93}
                    
113
                    
114    if (ini_get('allow_url_fopen')) {
                    
115        $handler = $handler
                    
139        }
                    
140        $defaultAgent .= ' PHP/' . PHP_VERSION;
                    
141    }
                    
295 * @throws \InvalidArgumentException if the JSON cannot be decoded.
                    
296 * @link http://www.php.net/manual/en/function.json-decode.php
                    
297 */
                    
317 * @throws \InvalidArgumentException if the JSON cannot be encoded.
                    
318 * @link http://www.php.net/manual/en/function.json-encode.php
                    
319 */
                    
                
Search.php https://gitlab.com/digitalpoetry/exceptionally-timed | PHP | 462 lines
                    
1<?php namespace Myth\Docs;
                    
2/**
                    
28 * @license     http://opensource.org/licenses/MIT  (MIT)
                    
29 * @link        http://sprintphp.com
                    
30 * @since       Version 1.0
                    
64     */
                    
65    protected $allowed_file_types = 'html|htm|php|php4|php5|txt|md';
                    
66
                    
178            // Read in the file text
                    
179            $handle = fopen($path, 'r');
                    
180            $text = fread($handle, $this->byte_size);
                    
                
zones.php https://github.com/voldern/wmbind.git | PHP | 312 lines
                    
1<?php
                    
2
                    
157			// Write the zone file
                    
158			$fd = fopen($this->registry->zones_path . 
                    
159                        preg_replace('/\//', '-', $zone['name']), 'w');
                    
218					// Write record to end of file
                    
219					$fd = fopen($this->registry->zones_path . 
                    
220                                preg_replace('/\//', '-', $zone['name']), 'a');
                    
241						// Remove the last record from the zone file that caused the error
                    
242						$fd = fopen($this->registry->zones_path . 
                    
243                                    preg_replace('/\//', '-', $zone['name']), 'r+');
                    
284
                    
285			$fd = fopen($this->registry->conf_path, 'w')
                    
286				or die('Cannot open: ' . $this->registry->conf_path);
                    
                
elfinder.ko.js https://gitlab.com/r.collas/site_central | JavaScript | 340 lines
                    
28			'errConf'              : 'Backend 환경설정이 올바르지 않습니다',
                    
29			'errJSON'              : 'PHP JSON 모듈이 설치되지 않았습니다',
                    
30			'errNoVolumes'         : '읽기 가능한 볼률이 없습니다',
                    
114			/******************************** notifications ********************************/
                    
115			'ntfopen'     : '폴더 열기',
                    
116			'ntffile'     : '파일 열기',
                    
289			'kindTextPlain'   : '보통 텍스트',
                    
290			'kindPHP'         : 'PHP 소스',
                    
291			'kindCSS'         : 'CSS 문서',
                    
                
SCP.php https://gitlab.com/daniruizcamacho/pfcascensores | PHP | 361 lines
                    
3/**
                    
4 * Pure-PHP implementation of SCP.
                    
5 *
                    
5 *
                    
6 * PHP versions 4 and 5
                    
7 *
                    
7 *
                    
8 * The API for this library is modeled after the API from PHP's {@link http://php.net/book.ftp FTP extension}.
                    
9 *
                    
11 * <code>
                    
12 * <?php
                    
13 *    include('Net/SCP.php');
                    
13 *    include('Net/SCP.php');
                    
14 *    include('Net/SSH2.php');
                    
15 *
                    
                
CrossRefExportPlugin.inc.php https://github.com/mcrider/pkpUpgradeTestSuite.git | PHP | 302 lines
                    
1<?php
                    
2
                    
3/**
                    
4 * @file plugins/importexport/crossref/CrossRefExportPlugin.inc.php
                    
5 *
                    
164		if (!empty($outputFile)) {
                    
165			if (($h = fopen($outputFile, 'w'))===false) return false;
                    
166			fwrite($h, XMLCustomWriter::getXML($doc));
                    
224		if (!empty($outputFile)) {
                    
225			if (($h = fopen($outputFile, 'w'))===false) return false;
                    
226			fwrite($h, XMLCustomWriter::getXML($doc));
                    
                
Logger.php https://gitlab.com/hoanghung.dev/phunuvadoisong.com | PHP | 456 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Logger.php
                    
4 *
                    
447		// Append log line
                    
448		if (($fp = fopen($logFile, "a")) != null) {
                    
449			fputs($fp, $message);
                    
                
String.php https://github.com/joshbhamilton/todophp.git | PHP | 440 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Lithium: the most rad php framework
                    
4 *
                    
5 * @copyright     Copyright 2011, Union of RAD (http://union-of-rad.org)
                    
6 * @license       http://opensource.org/licenses/mit-license.php The MIT License
                    
7 */
                    
126				return static::$_source;
                    
127			case is_readable('/dev/urandom') && $fp = fopen('/dev/urandom', 'rb'):
                    
128				return static::$_source = function($bytes) use (&$fp) {
                    
154	 *
                    
155	 * @link http://php.net/manual/en/function.hash.php PHP Manual: `hash()`
                    
156	 * @link http://php.net/manual/en/function.hash-hmac.php PHP Manual: `hash_hmac()`
                    
156	 * @link http://php.net/manual/en/function.hash-hmac.php PHP Manual: `hash_hmac()`
                    
157	 * @link http://php.net/manual/en/function.hash-algos.php PHP Manual: `hash_algos()`
                    
158	 * @param string $string The string to hash.
                    
                
test_ext_stream.cpp https://github.com/zsj888/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   +----------------------------------------------------------------------+
                    
125bool TestExtStream::test_stream_copy_to_stream() {
                    
126  Variant src = f_fopen("test/test_ext_file.txt", "r");
                    
127  Variant dest = f_fopen("test/test_ext_file.tmp", "w");
                    
                
GenCRC32Section.c https://gitlab.com/envieidoc/Clover | C | 313 lines
                    
6which accompanies this distribution.  The full text of the license may be found at        
                    
7http://opensource.org/licenses/bsd-license.php                                            
                    
8                                                                                          
                    
185    FileName  = argv[Start + Index];
                    
186    InputFile = fopen (FileName, "rb");
                    
187    if (InputFile == NULL) {
                    
277
                    
278  OutputFile = fopen (OutputFileName, "wb");
                    
279  if (OutputFile == NULL) {
                    
                
FilesystemAdapter.php https://gitlab.com/milton2913/myBlog | PHP | 433 lines
                    
1<?php
                    
2
                    
118    {
                    
119        $stream = fopen($file->getRealPath(), 'r+');
                    
120
                    
164     */
                    
165    public function prepend($path, $data, $separator = PHP_EOL)
                    
166    {
                    
181     */
                    
182    public function append($path, $data, $separator = PHP_EOL)
                    
183    {
                    
                
install.php https://gitlab.com/e0/X2CRM | PHP | 95 lines
                    
2  'required but missing' => 'nécessaire, mais manquant',
                    
3  'Your server\'s PHP version' => 'Votre serveur PHP version',
                    
4  'version 5.3 or later is required' => 'version 5.3 ou ultérieure est requis',
                    
24  'News Outlet' => 'Nouvelles Outlet',
                    
25  'This directory is not writable by PHP processes run by the webserver.' => 'Ce répertoire n&#39;est pas accessible en écriture par processus PHP gérés par le serveur web.',
                    
26  'PHP scripts are not permitted to run the function "chmod".' => 'Scripts PHP ne sont pas autorisées à exécuter la fonction &quot;chmod&quot;.',
                    
29  'Built-in error reporter will not work' => 'Construit en erreur journaliste ne fonctionnera pas',
                    
30  'The PHP configuration option "allow_url_fopen" is disabled. CURL will be used for making all HTTP requests during updates.' => 'L&#39;option de configuration &quot;allow_url_fopen&quot; PHP est désactivée. CURL sera utilisé pour la fabrication de toutes les requêtes HTTP au cours de mises à jour.',
                    
31  'This will result in the inability to import and export custom modules.' => 'Cela se traduira par l&#39;impossibilité d&#39;importer et d&#39;exporter des modules personnalisés.',
                    
33  'All other essential requirements were met.' => 'Toutes les autres exigences essentielles sont remplies.',
                    
34  'The version of the PCRE library included in this build of PHP is {thisVer}, but {reqVer} or later is required.' => 'La version de la bibliothèque PCRE inclus dans cette version de PHP est {thisVer} , mais {reqVer} ou ultérieure est nécessaire.',
                    
35  'The "openssl" and "mcrypt" libraries are not available. If any application credentials (i.e. email account passwords) are entered into X2Engine, they  will be stored in the database in plain text (without any encryption whatsoever). Thus, if the database is ever compromised, those passwords will be readable by unauthorized parties.' => 'Le &quot;openssl&quot; et &quot;bibliothèques mcrypt&quot; ne sont pas disponibles. Si les informations d&#39;identification de l&#39;application (par exemple, les mots de passe de compte de messagerie) sont entrés dans X2Engine, ils seront stockés dans la base de données en texte clair (sans cryptage que ce soit). Ainsi, si la base de données est compromise, ces mots de passe pourront être lus par des tiers non autorisés.',
                    
65  'The path defined in session.save_path ({ssp}) is not writable.' => 'Le chemin défini dans session.save_path ( {ssp} ) n&#39;est pas modifiable.',
                    
66  'The PHP configuration option "allow_url_fopen" is disabled in addition to the CURL extension missing. This means there is no possible way to make outbound HTTP/HTTPS requests.' => 'L&#39;option de configuration de PHP &quot;allow_url_fopen&quot; est désactivée en plus de l&#39;extension CURL manquant. Cela signifie qu&#39;il n&#39;existe aucun moyen possible de faire sortants requêtes HTTP / HTTPS.',
                    
67  'Software updates will have to be performed using the "offline" method, and Google integration will not work.' => 'Mises à jour logicielles devront être effectuées en utilisant la méthode «hors ligne», et l&#39;intégration de Google ne fonctionne pas.',
                    
                
Console.php https://github.com/necrogami/zf2.git | PHP | 521 lines
                    
1<?php
                    
2/**
                    
181    {
                    
182       $stream = @fopen($resource, 'w');
                    
183
                    
203            if (!defined('STDOUT')) {
                    
204                $this->_outputStream = fopen('php://stdout', 'w');
                    
205            } else {
                    
221        if ($width === null || !is_integer($width)) {
                    
222            if (substr(PHP_OS, 0, 3) === 'WIN') {
                    
223                // We have to default to 79 on windows, because the windows
                    
464            case self::FINISH_ACTION_EOL:
                    
465                $this->_outputData(PHP_EOL);
                    
466                break;
                    
                
upload.php https://gitlab.com/plusplusminus/isissoftware | PHP | 245 lines
                    
1<?php
                    
2
                    
7/**
                    
8 * upload.php
                    
9 *
                    
168				// Open temp file
                    
169				$out = @fopen( "{$file_path}.part", $chunk == 0 ? 'wb' : 'ab' );
                    
170				if ( $out ) {
                    
171					// Read binary input stream and append it to temp file
                    
172					$in = @fopen( $_FILES['file']['tmp_name'], 'rb' );
                    
173
                    
192			// Open temp file
                    
193			$out = @fopen( "{$file_path}.part", $chunk == 0 ? 'wb' : 'ab' );
                    
194			if ( $out ) {
                    
195				// Read binary input stream and append it to temp file
                    
196				$in = @fopen( 'php://input', 'rb' );
                    
197
                    
                
mo.php https://gitlab.com/VTTE/sitios-vtte | PHP | 349 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * @version $Id: mo.php 1157 2015-11-20 04:30:11Z dd32 $
                    
6 * @package pomo
                    
9
                    
10require_once __DIR__ . '/translations.php';
                    
11require_once __DIR__ . '/streams.php';
                    
56		function export_to_file( $filename ) {
                    
57			$fh = fopen( $filename, 'wb' );
                    
58			if ( ! $fh ) {
                    
69		function export() {
                    
70			$tmp_fh = fopen( 'php://temp', 'r+' );
                    
71			if ( ! $tmp_fh ) {
                    
198
                    
199			// bug in PHP 5.0.2, see https://savannah.nongnu.org/bugs/?func=detailitem&item_id=10565
                    
200			$magic_little    = (int) - 1794895138;
                    
                
cake.php https://github.com/adivik2000/nigraha.git | PHP | 511 lines
                    
2<?php
                    
3/* SVN FILE: $Id: cake.php 5318 2007-06-20 09:01:21Z phpnut $ */
                    
4/**
                    
10 *
                    
11 * CakePHP(tm) :  Rapid Development Framework <http://www.cakephp.org/>
                    
12 * Copyright 2005-2007,	Cake Software Foundation, Inc.
                    
20 * @copyright		Copyright 2005-2007, Cake Software Foundation, Inc.
                    
21 * @link				http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
                    
22 * @package			cake
                    
148		}
                    
149		define('PHP5', (phpversion() >= 5));
                    
150		define('DS', DIRECTORY_SEPARATOR);
                    
162		$this->stdout = fopen('php://stdout', 'w');
                    
163		$this->stderr = fopen('php://stderr', 'w');
                    
164
                    
                
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');
                    
                
WebDAVCollaboratorTest.php https://gitlab.com/rsilveira1987/Expresso | PHP | 138 lines
                    
1<?php
                    
2/**
                    
13 */
                    
14require_once dirname(dirname(dirname(dirname(dirname(__FILE__))))) . DIRECTORY_SEPARATOR . 'TestHelper.php';
                    
15
                    
19 */
                    
20class Addressbook_Convert_Contact_VCard_WebDAVCollaboratorTest extends PHPUnit_Framework_TestCase
                    
21{
                    
34    {
                    
35        $suite  = new PHPUnit_Framework_TestSuite('Tine 2.0 Addressbook WebDAV Collaborator Contact Tests');
                    
36        PHPUnit_TextUI_TestRunner::run($suite);
                    
65    {
                    
66        $vcardStream = fopen(dirname(__FILE__) . '/../../../Import/files/WebDAVCollaborator.vcf', 'r');
                    
67        
                    
                
EMClientTest.php https://gitlab.com/rsilveira1987/Expresso | PHP | 138 lines
                    
1<?php
                    
2/**
                    
13 */
                    
14require_once dirname(dirname(dirname(dirname(dirname(__FILE__))))) . DIRECTORY_SEPARATOR . 'TestHelper.php';
                    
15
                    
18 */
                    
19class Addressbook_Convert_Contact_VCard_EMClientTest extends PHPUnit_Framework_TestCase
                    
20{
                    
33    {
                    
34        $suite  = new PHPUnit_Framework_TestSuite('Tine 2.0 Addressbook WebDAV EMClient Contact Tests');
                    
35        PHPUnit_TextUI_TestRunner::run($suite);
                    
64    {
                    
65        $vcardStream = fopen(dirname(__FILE__) . '/../../../Import/files/emclient_addressbook.vcf', 'r');
                    
66        
                    
                
FlysystemFileResponse.php https://gitlab.com/koodersmiikka/operaatio-terveys | PHP | 260 lines
                    
1<?php
                    
2
                    
13 * @author Niklas Fiekas <niklas.fiekas@tu-clausthal.de>
                    
14 * @author stealth35 <stealth35-php@live.fr>
                    
15 * @author Igor Wiedler <igor@wiedler.ch>
                    
221
                    
222        $out = fopen('php://output', 'wb');
                    
223        $file = $this->filesystem->readStream($this->file->getPath());
                    
                
CsvBulkLoader.php https://gitlab.com/djpmedia/silverstripe-framework | PHP | 453 lines
                    
1<?php
                    
2
                    
123            }
                    
124            print $failedMessage . PHP_EOL;
                    
125        } finally {
                    
169
                    
170        $to = fopen($new, 'w+');
                    
171        $from = fopen($path, 'r');
                    
195
                    
196                $to = fopen($new, 'w+');
                    
197
                    
                
BrowserEmulator.html https://github.com/cybernet/CyBerFuN-CoDeX.git | HTML | 204 lines
                    
2
                    
3<!-- Generated by phpdocgen 0.16 on Wed Sep 17 18:43:07 2008 -->
                    
4
                    
6<HEAD>
                    
7<TITLE>IMDBPHP</TITLE>
                    
8<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
                    
84Make an file call to $url with the parameters set by previous member
                    
85   method calls.</TD></TR><TR><TD valign='top' align='left'>mixed </TD><TD WIDTH='100%' valign='top' align='left'><b><A HREF="#fopen()">fopen</A></b>(string $url)<BR>
                    
86Make an fopen call to $url with the parameters set by previous member
                    
119</DD></DL><HR>
                    
120<A NAME="fopen()"></A><H3>fopen()</H3>
                    
121<PRE>
                    
198</P>
                    
199<P><SPAN CLASS='small'>This document was generated by <A HREF="http://www.arakhne.org/tools/phpdocgen/" target="_top">phpdocgen 0.16</A>.<BR>
                    
200Copyright &copy; 2002-03 <A HREF="mailto:galland@arakhne.prg">Stéphane GALLAND</A> (under the <A HREF="http://www.gnu.org/copyleft/gpl.html" target="_top">GNU General Public License</A>)</SPAN>
                    
                
Cache.php https://github.com/daK76/pyrocms.git | PHP | 431 lines
                    
1<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
                    
2
                    
201		// Check if the cache can be opened, if not return FALSE
                    
202		if ( ! $fp = @fopen($filepath, FOPEN_READ))
                    
203		{
                    
301			{
                    
302				// create non existing dirs, asumes PHP5
                    
303				if ( ! @mkdir($test_path, DIR_WRITE_MODE, TRUE)) return FALSE;
                    
310		// Open the file and log if an error occures
                    
311		if ( ! $fp = @fopen($cache_path, FOPEN_WRITE_CREATE_DESTRUCTIVE))
                    
312		{
                    
429
                    
430/* End of file Cache.php */
                    
431/* Location: ./application/libraries/Cache.php */
                    
                
Model.php https://gitlab.com/x33n/ImpressPages | PHP | 183 lines
                    
1<?php
                    
2/**
                    
63        $sqlFile = self::ipFile('Plugin/Install/sql/data.sql');
                    
64        $fh = fopen($sqlFile, 'r');
                    
65        $sql = fread($fh, utf8_decode(filesize($sqlFile)));
                    
109                'value' => 'changeThis',
                    
110                'comment' => 'PHP 5 requires timezone to be set.',
                    
111            ),
                    
147
                    
148        $configCode = "<"."?php
                    
149
                    
                
MessageTest.php https://github.com/telkins/zf2.git | PHP | 431 lines
                    
1<?php
                    
2/**
                    
21 */
                    
22class MessageTest extends \PHPUnit_Framework_TestCase
                    
23{
                    
71    {
                    
72        $fh = fopen($this->_file, 'r');
                    
73        $message = new Message(array('file' => $fh));
                    
110
                    
111        $this->assertEquals(substr($message->getContent(), 0, 5), '<?php');
                    
112
                    
116
                    
117        $this->assertEquals(substr($message->getContent(), 0, 6), "\t<?php");
                    
118    }
                    
185            if ($num == 1) {
                    
186                // explicit call of __toString() needed for PHP < 5.2
                    
187                $this->assertEquals(substr($part->__toString(), 0, 14), 'The first part');
                    
                
admin.htm https://bitbucket.org/johnroyer/phpwind8.7.git | HTML | 204 lines
                    
14        <span class="bt2"><span><button type="button" value="DedeCMS" onclick="SetType(2)">DedeCMS</button></span></span>
                    
15        <span class="bt2"><span><button type="button" value="PHP168" onclick="SetType(3)">PHP168</button></span></span>
                    
16        <span class="bt2"><span><button type="button" value="phpwind" onclick="SetType(4)">phpwind</button></span></span>
                    
182	if(getObj('serverurl').defaultValue == ''){
                    
183		var serverurl = {0 : '',1 : 'shopex',2 : 'dedecms',3 : 'php168',4 : 'phpwind'};
                    
184		getObj('serverurl').value = url + serverurl[type];
                    
186
                    
187	var loginurl = {0 : '',1 : 'login.php',2 : 'member/login.php',3 : 'login.php',4 : 'login.php'};
                    
188	getObj('loginurl').value = loginurl[type];
                    
189
                    
190	var loginouturl = {0 : '',1 : 'user_logout.php',2 : 'index_do.php?fmdo=login&dopost=exit',3 : 'login.php?action=quit',4 : 'login.php?action=quit'};
                    
191	getObj('loginouturl').value = loginouturl[type];
                    
192
                    
193	var regurl = {0 : '',1 : 'user_register.php',2 : 'member/index_do.php?fmdo=user&dopost=regnew',3 : 'reg.php',4 : 'register.php'};
                    
194	getObj('regurl').value = regurl[type];
                    
                
test.php https://github.com/xmak/ezComponents.git | PHP | 301 lines
                    
1<?php
                    
2/**
                    
153        $path = $tempDir . DIRECTORY_SEPARATOR . $value;
                    
154        $fh = fopen( $path, "wb" );
                    
155        fwrite( $fh, "some values" );
                    
188        $path = $tempDir . DIRECTORY_SEPARATOR . $value;
                    
189        $fh = fopen( $path, "wb" );
                    
190        fwrite( $fh, "some values" );
                    
                
files.php https://gitlab.com/webbroteam/satisfaction-mvc | PHP | 306 lines
                    
3 *
                    
4 * This file is part of phpFastCache.
                    
5 *
                    
17use phpFastCache\Core\DriverAbstract;
                    
18use phpFastCache\Exceptions\phpFastCacheDriverException;
                    
19
                    
29     * @param array $config
                    
30     * @throws phpFastCacheDriverException
                    
31     */
                    
37        if (!$this->checkdriver() && !isset($config[ 'skipError' ])) {
                    
38            throw new phpFastCacheDriverException("Can't use this driver for your website!");
                    
39        }
                    
58     * @return string
                    
59     * @throws phpFastCacheDriverException
                    
60     */
                    
                
CSV.php https://github.com/damanlovett/FTEP.git | PHP | 299 lines
                    
22 * @package    PHPExcel_Writer
                    
23 * @copyright  Copyright (c) 2006 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license    http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt	LGPL
                    
33 * @package    PHPExcel_Writer
                    
34 * @copyright  Copyright (c) 2006 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
35 */
                    
88	 *
                    
89	 * @param 	PHPExcel	$phpExcel	PHPExcel object
                    
90	 */
                    
91	public function __construct(PHPExcel $phpExcel) {
                    
92		$this->_phpExcel 	= $phpExcel;
                    
93		$this->_delimiter 	= ',';
                    
109		$saveArrayReturnType = PHPExcel_Calculation::getArrayReturnType();
                    
110		PHPExcel_Calculation::setArrayReturnType(PHPExcel_Calculation::RETURN_ARRAY_AS_VALUE);
                    
111
                    
                
import_c_member.php https://github.com/openpne/OpenPNE2.git | PHP | 252 lines
                    
1<?php
                    
2/**
                    
3 * @copyright 2005-2008 OpenPNE Project
                    
4 * @license   http://www.php.net/license/3_01.txt PHP License 3.01
                    
5 */
                    
29
                    
30        $handle = fopen($member_file['tmp_name'], 'r');
                    
31
                    
                
API.php https://code.google.com/p/molinos-cms/ | PHP | 383 lines
                    
1<?php
                    
2/**
                    
57
                    
58		if (ini_get('allow_url_fopen')) {
                    
59			$result = $this->fetch_fopen($url, $options, $outfile);
                    
95	{
                    
96		$in = fopen($url, 'rb');
                    
97		$out = fopen($this->ctx->addTempFile($fileName = tempnam(MCMS_TEMP_FOLDER, 'mcms-fetch.')), 'wb');
                    
168		$ch = curl_init($url);
                    
169		$fp = fopen($outfile, "wb+");
                    
170
                    
208	/**
                    
209	 * ?????????? ????? ?????????? fopen().
                    
210	 */
                    
210	 */
                    
211	protected function fetch_fopen($url, $options, $outfile)
                    
212	{
                    
                
workspace.inc.php https://github.com/larscwallin/revolution.git | PHP | 188 lines
                    
1<?php
                    
2/**
                    
73$_lang['package_err_transfer'] = 'Could not transfer package [[+sourceFile]] to [[+packageDir]].';
                    
74$_lang['package_err_transfer_fopen'] = 'Could not transfer package [[+sourceFile]] to [[+packageDir]]; allow_url_fopen is not enabled on your configuration.';
                    
75$_lang['package_err_uninstall'] = 'Error uninstalling package with signature: [[+signature]]';
                    
141$_lang['provider_err_no_api_key'] = 'This Provider requires an API Key to connect. Please specify one.';
                    
142$_lang['provider_err_no_client'] = '<p><b>You do not have a viable REST client for your system.</b></p><p>Please install the cURL PHP extension or enable fsockopen, and try again.</p>';
                    
143$_lang['provider_err_nfs'] = 'Provider not found with ID [[+id]]';
                    
                
lib.php https://github.com/plymouthstate/mahara.git | PHP | 290 lines
                    
1<?php
                    
2/**
                    
28defined('INTERNAL') || die();
                    
29require_once(get_config('docroot') . 'auth/lib.php');
                    
30
                    
79        if (! function_exists('imap_open')) {
                    
80            throw new ConfigException('IMAP is not available in your PHP environment. Check that it is properly installed');
                    
81        }
                    
91        try {
                    
92            $connection = imap_open($connectionstring, $user->username, $password, OP_HALFOPEN);
                    
93            if ($connection) {
                    
                
FileTest.class.php https://github.com/Gamepay/xp-framework.git | PHP | 361 lines
                    
105      $this->assertNotEquals(
                    
106        create(new File(fopen($fn, 'r')))->hashCode(),
                    
107        create(new File($fn))->hashCode()
                    
240    public function fromResource() {
                    
241      $this->assertNull(create(new File(fopen($this->fileKnownToExist(), 'r')))->getURI());
                    
242    }
                    
249    public function stderr() {
                    
250      $this->assertEquals('php://stderr', create(new File('php://stderr'))->getURI());
                    
251    }
                    
258    public function stdout() {
                    
259      $this->assertEquals('php://stdout', create(new File('php://stdout'))->getURI());
                    
260    }
                    
267    public function stdin() {
                    
268      $this->assertEquals('php://stdin', create(new File('php://stdin'))->getURI());
                    
269    }
                    
                
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/**
                    
154    $responses = array();
                    
155    $pointer = fopen($filename, 'r');
                    
156    $batch = '';
                    
                
PHPArray.php https://github.com/rogerwu99/punch_bantana.git | PHP | 258 lines
                    
6// +----------------------------------------------------------------------+
                    
7// | This source file is subject to version 2.0 of the PHP license,       |
                    
8// | that is bundled with this package in the file LICENSE, and is        |
                    
9// | available at through the world-wide-web at                           |
                    
10// | http://www.php.net/license/2_02.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// +----------------------------------------------------------------------+
                    
17//
                    
18// $Id: PHPArray.php 306488 2010-12-20 08:45:09Z cweiske $
                    
19
                    
20/**
                    
21* Config parser for common PHP configuration array
                    
22* such as found in the horde project.
                    
                
Config_Options.cpp https://github.com/volkszaehler/vzlogger.git | C++ | 324 lines
                    
6 * @package vzlogger
                    
7 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
                    
8 */
                    
63	/* open configuration file */
                    
64	FILE *file = fopen(_config.c_str(), "r");
                    
65	if (file == NULL) {
                    
                
Document.php https://gitlab.com/Japang-Jawara/jawara-penilaian | PHP | 404 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * @package php-svg-lib
                    
4 * @link    http://github.com/PhenX/php-svg-lib
                    
123
                    
124        $fp = fopen($this->filename, "r");
                    
125        while ($line = fread($fp, 8192)) {
                    
220
                    
221        $fp = fopen($this->filename, "r");
                    
222        while ($line = fread($fp, 8192)) {
                    
                
File.php https://gitlab.com/yousafsyed/easternglamor | PHP | 166 lines
                    
1<?php
                    
2/**
                    
26 */
                    
27#require_once 'Zend/Auth/Adapter/Http/Resolver/Interface.php';
                    
28
                    
72             */
                    
73            #require_once 'Zend/Auth/Adapter/Http/Resolver/Exception.php';
                    
74            throw new Zend_Auth_Adapter_Http_Resolver_Exception('Path not readable: ' . $path);
                    
117             */
                    
118            #require_once 'Zend/Auth/Adapter/Http/Resolver/Exception.php';
                    
119            throw new Zend_Auth_Adapter_Http_Resolver_Exception('Username is required');
                    
123             */
                    
124            #require_once 'Zend/Auth/Adapter/Http/Resolver/Exception.php';
                    
125            throw new Zend_Auth_Adapter_Http_Resolver_Exception('Username must consist only of printable characters, '
                    
131             */
                    
132            #require_once 'Zend/Auth/Adapter/Http/Resolver/Exception.php';
                    
133            throw new Zend_Auth_Adapter_Http_Resolver_Exception('Realm is required');
                    
                
ShellTest.php https://gitlab.com/Laolballs/cbtapp | PHP | 325 lines
                    
76        $config = $this->getConfig(array(
                    
77            'defaultIncludes' => array('/file.php'),
                    
78            'configFile'      => __DIR__ . '/../../fixtures/empty.php',
                    
83        $includes = $shell->getIncludes();
                    
84        $this->assertEquals('/file.php', $includes[0]);
                    
85    }
                    
106
                    
107        $this->assertContains('PHP Parse error', $streamContents);
                    
108        $this->assertContains('message', $streamContents);
                    
160        $this->assertContains(Shell::VERSION, $shell->getVersion());
                    
161        $this->assertContains(phpversion(), $shell->getVersion());
                    
162        $this->assertContains(php_sapi_name(), $shell->getVersion());
                    
302    {
                    
303        $stream = fopen('php://memory', 'w+');
                    
304        $this->streams[] = $stream;
                    
                
functions.php https://gitlab.com/i-have-a-green/digitemis-v3 | PHP | 334 lines
                    
1<?php
                    
2namespace GuzzleHttp;
                    
91
                    
92    return fopen('php://output', 'w');
                    
93}
                    
113
                    
114    if (ini_get('allow_url_fopen')) {
                    
115        $handler = $handler
                    
139        }
                    
140        $defaultAgent .= ' PHP/' . PHP_VERSION;
                    
141    }
                    
298 * @throws Exception\InvalidArgumentException if the JSON cannot be decoded.
                    
299 * @link http://www.php.net/manual/en/function.json-decode.php
                    
300 */
                    
321 * @throws Exception\InvalidArgumentException if the JSON cannot be encoded.
                    
322 * @link http://www.php.net/manual/en/function.json-encode.php
                    
323 */
                    
                
plugin-editor.php https://github.com/enoex/artisanchairs.git | PHP | 230 lines
                    
79		if ( ! is_plugin_active($file) )
                    
80			activate_plugin($file, "plugin-editor.php?file=$file&phperror=1"); // we'll override this later if the plugin can be included without fatal error
                    
81
                    
126 <div id="message" class="updated fade"><p><?php _e('File edited successfully.') ?></p></div>
                    
127<?php elseif (isset($_GET['phperror'])) : ?>
                    
128 <div id="message" class="updated fade"><p><?php _e('This plugin has been deactivated because your changes resulted in a <strong>fatal error</strong>.') ?></p>
                    
130		if ( wp_verify_nonce($_GET['_error_nonce'], 'plugin-activation-error_' . $file) ) { ?>
                    
131	<iframe style="border:0" width="100%" height="70px" src="<?php bloginfo('wpurl'); ?>/wp-admin/plugins.php?action=error_scrape&amp;plugin=<?php echo esc_attr($file); ?>&amp;_wpnonce=<?php echo esc_attr($_GET['_error_nonce']); ?>"></iframe>
                    
132	<?php } ?>
                    
194?>
                    
195		<li<?php echo $file == $plugin_file ? ' class="highlight"' : ''; ?>><a href="plugin-editor.php?file=<?php echo $plugin_file; ?>&amp;plugin=<?php echo $plugin; ?>"><?php echo $plugin_file ?></a></li>
                    
196<?php endforeach; ?>
                    
206		<?php if ( !empty( $docs_select ) ) : ?>
                    
207		<div id="documentation"><label for="docs-list"><?php _e('Documentation:') ?></label> <?php echo $docs_select ?> <input type="button" class="button" value="<?php esc_attr_e( 'Lookup' ) ?> " onclick="if ( '' != jQuery('#docs-list').val() ) { window.open( 'http://api.wordpress.org/core/handbook/1.0/?function=' + escape( jQuery( '#docs-list' ).val() ) + '&amp;locale=<?php echo urlencode( get_locale() ) ?>&amp;version=<?php echo urlencode( $wp_version ) ?>&amp;redirect=true'); }" /></div>
                    
208		<?php endif; ?>
                    
                
LOB.php https://github.com/edmondscommerce/XAMPP-Magento-Demo-Site.git | PHP | 264 lines
                    
1<?php
                    
2// +----------------------------------------------------------------------+
                    
2// +----------------------------------------------------------------------+
                    
3// | PHP version 5                                                        |
                    
4// +----------------------------------------------------------------------+
                    
9// | MDB2 is a merge of PEAR DB and Metabases that provides a unified DB  |
                    
10// | API as well as database abstraction for PHP applications.            |
                    
11// | This LICENSE is in the BSD license style.                            |
                    
44//
                    
45// $Id: LOB.php,v 1.34 2006/10/25 11:52:21 lsmith Exp $
                    
46
                    
52
                    
53require_once 'MDB2.php';
                    
54
                    
86     *
                    
87     * @param string specifies the URL that was passed to fopen()
                    
88     * @param string the mode used to open the file
                    
                
OLE_Root.php https://PHPExcel.svn.codeplex.com/svn | PHP | 482 lines
                    
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   |
                    
22
                    
23require_once 'PHPExcel/Shared/OLE/OLE_PPS.php';
                    
24
                    
31*/
                    
32class PHPExcel_Shared_OLE_PPS_Root extends PHPExcel_Shared_OLE_PPS
                    
33	{
                    
150		for ($i = 0; $i < count($raList); $i++) {
                    
151			if ($raList[$i]->Type == PHPExcel_Shared_OLE::OLE_PPS_TYPE_FILE) {
                    
152				$raList[$i]->Size = $raList[$i]->_DataLen();
                    
388		if ($iCnt % $iBCnt) {
                    
389			for ($i = 0; $i < (($iBCnt - ($iCnt % $iBCnt)) * PHPExcel_Shared_OLE::OLE_PPS_SIZE); $i++) {
                    
390				fwrite($this->_FILEH_, "\x00");
                    
                
Reports.php https://gitlab.com/dmsapiens/physicians | PHP | 327 lines
                    
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2
                    
309        header( 'Content-Disposition: attachment;filename=report'.$filename);
                    
310        $fp = fopen('php://output', 'w');
                    
311    
                    
                
smarty_internal_data.php https://gitlab.com/mike_tm555/batiste | PHP | 404 lines
                    
1<?php
                    
2/**
                    
387        $_result = '';
                    
388        $fp = fopen($variable, 'r+');
                    
389        if ($fp) {
                    
                
Files.php https://github.com/manubamba/site.git | PHP | 270 lines
                    
1<?php
                    
2/**
                    
251    		if (! file_exists($dir.$hash)) {
                    
252	    		if (($fh = fopen($dir.$hash, "w"))) {
                    
253	    			fwrite($fh, $row['data_fil']);
                    
                
cache.php https://github.com/sarriaroman/PuntoUBP.git | PHP | 439 lines
                    
1<?php
                    
2	/**
                    
321			
                    
322			return fopen($path . $filename, $rw);
                    
323		}
                    
                
file.php https://bitbucket.org/crevillo/enetcall.git | PHP | 509 lines
                    
1<?php
                    
2/**
                    
154        {
                    
155            $this->fp = @fopen( $fileName, "r+b" );
                    
156            if ( $this->fp )
                    
165            // Try to open it in read-only mode.
                    
166            $this->fp = @fopen( $fileName, "rb" );
                    
167            $this->fileAccess = self::READ_ONLY;
                    
196                // Append mode available?
                    
197                $b = @fopen( $fileName, "ab" );
                    
198                if ( $b !== false )
                    
213                    {
                    
214                        $b = @fopen( $fileName, "wb" );
                    
215                        if ( $b !== false )
                    
266            fclose( $this->fp );
                    
267            $this->fp = @fopen( $this->fileName, "ab" );
                    
268            if ( $this->fp === false )
                    
                
Local.php https://gitlab.com/Ofcadavidm/RentCarApp | PHP | 420 lines
                    
1<?php
                    
2
                    
114        $this->ensureDirectory(dirname($location));
                    
115        $stream = fopen($location, 'w+');
                    
116
                    
139        $location = $this->applyPathPrefix($path);
                    
140        $stream = fopen($location, 'r');
                    
141
                    
                
Ftp.php https://gitlab.com/puntodos/ean-landings | PHP | 448 lines
                    
1<?php
                    
2
                    
186    {
                    
187        $stream = fopen('php://temp', 'w+b');
                    
188        fwrite($stream, $contents);
                    
397    {
                    
398        $stream = fopen('php://temp', 'w+');
                    
399        $result = ftp_fget($this->getConnection(), $stream, $path, $this->transferMode);
                    
                
config.php https://gitlab.com/OOTTEE/OARF | PHP | 147 lines
                    
1<?php
                    
2    function write_ini_file($assoc_arr, $path, $has_sections=FALSE) {
                    
33
                    
34        if (!$handle = fopen($path, 'w')) {
                    
35            return false;
                    
99<div class="container">
                    
100    <?php if($ERROR == 'FIELDS'): ?>
                    
101        <div class="alert alert-warning" >
                    
103        </div>
                    
104    <?php endif; ?>
                    
105    <?php if($ERROR == 'DB'): ?>
                    
108        </div>
                    
109    <?php endif; ?>
                    
110    <div class="jumbotron">
                    
110    <div class="jumbotron">
                    
111        <form action="config.php" method="post" >
                    
112            <div class="well">
                    
                
Filesystem.php https://github.com/libersoft/fengoffice-ls.git | PHP | 222 lines
                    
1<?php
                    
2/**
                    
23/** Zend_Search_Lucene_Storage_File */
                    
24require_once 'Zend/Search/Lucene/Storage/File.php';
                    
25
                    
26/** Zend_Search_Lucene_Exception */
                    
27require_once 'Zend/Search/Lucene/Exception.php';
                    
28
                    
54    {
                    
55        global $php_errormsg;
                    
56
                    
64
                    
65        $this->_fileHandle = @fopen($filename, $mode);
                    
66
                    
68            ini_set('track_errors', $trackErrors);
                    
69            throw new Zend_Search_Lucene_Exception($php_errormsg);
                    
70        }
                    
                
install.php https://gitlab.com/pbarnhardtHG/dopresskit | PHP | 209 lines
                    
1<?php
                    
2
                    
7 * To install this script you will need a FTP program.
                    
8 * Put the install.php file in an empty directory on your server to install.
                    
9 * Put the install.php file in the root folder of a completed installation to upgrade your installation.
                    
16	
                    
17	if( ini_get('allow_url_fopen') ) {
                    
18		copy($remote_url, $local_file);
                    
21        
                    
22	$fp = fopen($local_file, 'w+');
                    
23
                    
39{
                    
40	echo('<h1>Server Environment Check Failed: PHP Safe Mode Enabled</h1><p>Sadly, you or your host seem to have enabled PHP Safe Mode. PHP Safe Mode results in unexpected behaviour with user-installed scripts on your server and might cause presskit() to not function correctly. Please upgrade to PHP 5.4.0 or later or disable Safe Mode to continue.</p><p>If you cannot disable Safe Mode nor upgrade and are comfortable installing scripts, please download the <a href="http://ramiismail.com/kit/press/manual-install.zip">manual installation package</a>.</p>');
                    
41	die();
                    
92	dl_r('pclzip.lib');
                    
93	rename('pclzip.lib','pclzip.lib.php');
                    
94	require_once('pclzip.lib.php');
                    
                
 

Source

Language