100+ results for 'php ini_set'
Not the results you expected?
myartisan.php (https://gitlab.com/pedramkousari/soratjalase) PHP · 110 lines
1 <?php
2 if (@$_SERVER['HTTP_X_REQUESTED_WITH']=='XMLHttpRequest') {
3 chdir('..');
4 putenv("COMPOSER_HOME=/var/www/html/Application/laravel2/.composer");
5 if(strpos($_REQUEST['command'], 'composer') === 0) {
6 ini_set("memory_limit", "-1");
7 set_time_limit(0);
8 $res = shell_exec("/usr/bin/php -dmemory_limit=2048M /usr/bin/" . @$_REQUEST['command'] . ' 2>&1');
9 } elseif(strpos($_REQUEST['command'], 'artisan') === 0) {
10 $res = shell_exec('/usr/bin/php -dmemory_limit=2048M ' . @$_REQUEST['command'] . ' 2>&1');
11 } else {
12 $res = false;
css.php (https://github.com/yuiti/Bshe.git) PHP · 256 lines
90 if (false == class_exists('xajaxControl')) {
91 $sCore = '/xajax_core';
92 include_once($sRoot . $sCore . '/xajaxControl.inc.php');
93 }
95 $sControls = '/xajax_controls';
96 include_once($sRoot . $sControls . '/document.inc.php');
97 include_once($sRoot . $sControls . '/content.inc.php');
223 <tr>
224 <td align='center' valign='top' width="50%">
225 <div><?php $buttonLoadCSS1->printHTML(); ?><?php $buttonUnloadCSS1->printHTML(); ?></div>
226 <div><?php $buttonLoadCSS2->printHTML(); ?><?php $buttonUnloadCSS2->printHTML(); ?></div>
238 <div><?php $buttonLoadCSS1_Print->printHTML(); ?><?php $buttonUnloadCSS1_Print->printHTML(); ?></div>
239 <div><?php $buttonLoadCSS2_Print->printHTML(); ?><?php $buttonUnloadCSS2_Print->printHTML(); ?></div>
240 </td>
241 </tr>
Db.php (https://bitbucket.org/tschrock52/ethodeshare.git) PHP · 180 lines
1 <?php
2 /**
3 * Magento
8 * that is bundled with this package in the file LICENSE.txt.
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
12 * obtain it through the world-wide-web, please send an email
22 * @package Mage_Backup
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 */
89 public function renderSql()
90 {
91 ini_set('max_execution_time', 0);
92 $sql = $this->getHeader();
setupDatabase.php (https://github.com/idiosyncraticee/ranaeschallenge.git) PHP · 250 lines
1 <?php
2 header("Content-Type: text/javascript");
3 header("Cache-Control: no-cache, must-revalidate");
26 if($production) {
27 ini_set('display_errors', 0);
28 ini_set('error_reporting', 'E_ALL');
29 ini_set('log_errors', 1);
30 ini_set('error_log', './chris_error.txt');
31 } else if($development) {
32 ini_set('display_errors', 1);
33 ini_set('error_reporting', 'E_ALL');
34 ini_set('log_errors', 1);
35 ini_set('error_log', './chris_error.txt');
utility.php (https://gitlab.com/najomie/fit-hippie) PHP · 140 lines
1 <?php
3 final class ITSEC_Database_Prefix_Utility {
8 require_once( $GLOBALS['itsec_globals']['plugin_dir'] . 'core/lib/class-itsec-lib-config-file.php' );
9 require_once( $GLOBALS['itsec_globals']['plugin_dir'] . 'core/lib/class-itsec-lib-file.php' );
17 //suppress error messages due to timing
18 // error_reporting( 0 );
19 // @ini_set( 'display_errors', 0 );
21 $check_prefix = true; //Assume the first prefix we generate is unique
52 if ( is_wp_error( $config ) ) {
53 /* translators: 1: Specific error details */
54 $response['errors'][] = new WP_Error( $confix->get_error_code(), sprintf( __( 'Unable to read the <code>wp-config.php</code> file in order to update the Database Prefix. Error details as follows: %1$s', 'better-wp-security' ), $config->get_error_message() ) );
55 return $response;
56 }
mailer.php (https://github.com/ess/pdnsadministrator.git) PHP · 210 lines
index.php (https://github.com/jeffmay/Bonfire.git) PHP · 217 lines
1 <?php
37 if (!ini_get('display_errors'))
38 {
39 ini_set('display_errors', 1);
40 }
41 break;
58 |
59 */
60 // PHP 5.3 requires this
61 if(ini_get('date.timezone') == '')
62 {
97 * --------------------------------------------------------------------
98 *
99 * Normally you will set your default controller in the routes.php file.
100 * You can, however, force a custom routing by hard-coding a
101 * specific controller class/function here. For most applications, you
oauth.php (https://gitlab.com/craftbynick/Circular) PHP · 243 lines
1 <?php
3 /**
4 * @see tmhOAuth/examples/oauth_flow.php
5 *
6 * If the user doesn't already have an active session, we use `authenticate` instead of `authorize`
10 */
12 require 'config.php';
14 require '../extlib/tmhOAuth/tmhOAuth.php';
15 require '../extlib/tmhOAuth/tmhUtilities.php';
16 $tmhOAuth = new tmhOAuth(array(
17 'consumer_key' => CONSUMER_KEY,
mail.php (https://bitbucket.org/allanxyh/uniquemall.git) PHP · 406 lines
1 <?php
2 class Mail {
3 protected $to;
94 $header .= 'Reply-To: ' . '=?UTF-8?B?' . base64_encode($this->sender) . '?=' . '<' . $this->from . '>' . $this->newline;
95 $header .= 'Return-Path: ' . $this->from . $this->newline;
96 $header .= 'X-Mailer: PHP/' . phpversion() . $this->newline;
97 //$header .= 'Content-Type: multipart/related; boundary="' . $boundary . '"' . $this->newline . $this->newline;
98 $header .= 'Content-Type: multipart/related; boundary="' . $boundary . '"' . $this->newline . $this->newline;
144 if ($this->protocol == 'mail') {
145 ini_set('sendmail_from', $this->from);
147 if ($this->parameter) {
157 exit();
158 } else {
159 if (substr(PHP_OS, 0, 3) != 'WIN') {
160 socket_set_timeout($handle, $this->timeout, 0);
161 }
Mail.php (https://github.com/bodi000/oscommerce.git) PHP · 375 lines
Session.class.php (https://gitlab.com/llwhois/woaimm) PHP · 628 lines
1 <?php
2 // +----------------------------------------------------------------------
3 // | ThinkPHP [ WE CAN DO IT JUST THINK IT ]
4 // +----------------------------------------------------------------------
5 // | Copyright (c) 2006-2012 http://thinkphp.cn All rights reserved.
6 // +----------------------------------------------------------------------
7 // | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
9 // | Author: liu21st <liu21st@gmail.com>
10 // +----------------------------------------------------------------------
11 // $Id: Session.class.php 2702 2012-02-02 12:35:01Z liu21st $
13 define("HTTP_SESSION_STARTED", 1);
22 * @subpackage Util
23 * @author liu21st <liu21st@gmail.com>
24 * @version $Id: Session.class.php 2702 2012-02-02 12:35:01Z liu21st $
25 +------------------------------------------------------------------------------
26 */
memory.php (https://github.com/orchestra-io/sample-openx.git) PHP · 128 lines
62 $phpMemoryLimit = ini_get('memory_limit');
63 if (empty($phpMemoryLimit) || $phpMemoryLimit == -1) {
64 // No memory limit
65 return -1;
77 }
78 if ($pos) {
79 $phpMemoryLimitInBytes = substr($phpMemoryLimit, 0, $pos) * $multiplier;
80 }
81 }
98 $newPhpMemoryLimitInBytes = OX_getMemoryLimitSizeInBytes();
99 $memoryCanBeSet = ($phpMemoryLimitInBytes != $newPhpMemoryLimitInBytes);
101 // Restore previous limit
102 @ini_set('memory_limit', $phpMemoryLimitInBytes);
103 return $memoryCanBeSet;
104 }
TestCommon.php (https://github.com/apinstein/jqjobs.git) PHP · 204 lines
1 <?php
3 require_once dirname(__FILE__) . '/../src/JQJobs/JQJobs.php';
4 const JQJOB_ID_DOES_NOT_EXIST = 999999;
6 $composerAutoloader = dirname(__FILE__) . '/../vendor/autoload.php';
7 if (file_exists($composerAutoloader))
8 {
9 ini_set('include_path', dirname(__FILE__) . "/../lib/propel");
10 require_once $composerAutoloader;
11 }
12 else
13 {
14 ini_set('include_path',
15 dirname(__FILE__) . "/../externals/pear/php"
ServiceException.php (https://github.com/kiranatama/sagalaya.git) PHP · 194 lines
1 <?php
2 /**
3 * Zend Framework
147 // track_errors is temporarily enabled so that if an error
148 // occurs while parsing the XML we can append it to an
149 // exception by referencing $php_errormsg
150 @ini_set('track_errors', 1);
155 if (!$success) {
156 // $php_errormsg is automatically generated by PHP if
157 // an error occurs while calling loadXML(), above.
158 throw new App\Exception("DOMDocument cannot parse XML: $php_errormsg");
SybaseConnection.class.php (https://github.com/oanas/xp-framework.git) PHP · 236 lines
sfSimpleAutoload.class.php (https://github.com/proyectoalba/alba.git) PHP · 283 lines
1 <?php
3 /*
12 * sfSimpleAutoload class.
13 *
14 * This class is a singleton as PHP seems to be unable to register 2 autoloaders that are instances
15 * of the same class (why?).
16 *
18 * @subpackage autoload
19 * @author Fabien Potencier <fabien.potencier@symfony-project.com>
20 * @version SVN: $Id: sfSimpleAutoload.class.php 17858 2009-05-01 21:22:50Z FabianLange $
21 */
22 class sfSimpleAutoload
73 }
75 ini_set('unserialize_callback_func', 'spl_autoload_call');
76 if (false === spl_autoload_register(array(self::getInstance(), 'autoload')))
77 {
MailSend.php (https://github.com/yvestan/sendnews.git) PHP · 170 lines
1 <?php
3 /**
9 */
11 require_once dirname(__FILE__) . "/../ClassLoader.php";
12 Swift_ClassLoader::load("Swift_Events_SendListener");
13 Swift_ClassLoader::load("Swift_Events_BeforeSendListener");
49 {
50 $this->setAdditionalParams($params);
51 $this->setOS(PHP_OS);
52 }
53 /**
154 {
155 $original_from = @ini_get("sendmail_from");
156 @ini_set("sendmail_from", $this->returnPath);
158 $headers = $headers->build();
smarty_internal_resource_php.php (https://gitlab.com/staging06/myproject) PHP · 119 lines
1 <?php
3 /**
4 * Smarty Internal Plugin Resource PHP
5 * Implements the file system as resource for PHP templates
10 * @author Rodney Rehm
11 */
12 class Smarty_Internal_Resource_PHP extends Smarty_Resource_Uncompiled
13 {
14 /**
15 * container for short_open_tag directive's value before executing PHP templates
16 *
17 * @var string
MongoDBTest.php (https://github.com/sasezaki/zf2.git) PHP · 156 lines
1 <?php
2 /**
3 * Zend Framework (http://framework.zend.com/)
17 * @group Zend_Session
18 */
19 class MongoDBTest extends \PHPUnit_Framework_TestCase
20 {
21 /**
52 ));
54 $mongoClass = (version_compare(phpversion('mongo'), '1.3.0', '<')) ? '\Mongo' : '\MongoClient';
56 $this->mongo = new $mongoClass();
94 */
95 $oldMaxlifetime = ini_get('session.gc_maxlifetime');
96 ini_set('session.gc_maxlifetime', 0);
98 $saveHandler = new MongoDB($this->mongo, $this->options);
index.php (https://bitbucket.org/jose_everson2013/wally-consultoria.git) PHP · 207 lines
1 <?php
2 ini_set("allow_url_fopen", true);
3 ini_set("allow_url_include", true);
5 /*
82 * --------------------------------------------------------------------
83 *
84 * Normally you will set your default controller in the routes.php file.
85 * You can, however, force a custom routing by hard-coding a
86 * specific controller class/function here. For most applications, you
115 * The $assign_to_config array below will be passed dynamically to the
116 * config class when initialized. This allows you to set custom config
117 * items or override any default config values found in the config.php file.
118 * This can be handy as it permits you to share one application between
119 * multiple front controller files, with each file containing different
functions_image.php (https://gitlab.com/mybbpl/ppm-1.6) PHP · 257 lines
HandleExceptions.php (https://gitlab.com/jjpa2018/dashboard) PHP · 251 lines
1 <?php
3 namespace Illuminate\Foundation\Bootstrap;
51 if (! $app->environment('testing')) {
52 ini_set('display_errors', 'Off');
53 }
54 }
56 /**
57 * Report PHP deprecations, or convert PHP errors to ErrorException instances.
58 *
59 * @param int $level
196 /**
197 * Handle the PHP shutdown event.
198 *
199 * @return void
ks_prefreport.php (https://gitlab.com/ElvisAns/tiki) PHP · 229 lines
1 <?php
3 // (c) Copyright by authors of the Tiki Wiki CMS Groupware Project
11 // Usage: From the command line:
12 // php doc/devtools/prefreport.php
13 // resulting file can be found at dump/prefreport.txt
14 //
15 // also check out doc/devtools/securitycheck.php to see in which files are
16 // used each pref (and permission name too)
17 //
19 $ourFileName = "dump/prefreport.txt";
21 require_once 'tiki-setup.php';
22 $prefslib = TikiLib::lib('prefs');
Settings.php (https://github.com/friendica/friendica.git) PHP · 96 lines
1 <?php
2 /**
3 * @copyright Copyright (C) 2010-2022, the Friendica project
70 if (ini_get('log_errors')) {
71 $phplogenabled = DI::l10n()->t('PHP log currently enabled.');
72 } else {
73 $phplogenabled = DI::l10n()->t('PHP log currently disabled.');
88 '$loglevel' => ['loglevel', DI::l10n()->t("Log level"), DI::config()->get('system', 'loglevel'), "", $log_choices],
89 '$form_security_token' => self::getFormSecurityToken("admin_logs"),
90 '$phpheader' => DI::l10n()->t("PHP logging"),
91 '$phphint' => DI::l10n()->t("To temporarily enable logging of PHP errors and warnings you can prepend the following to the index.php file of your installation. The filename set in the 'error_log' line is relative to the friendica top-level directory and must be writeable by the web server. The option '1' for 'log_errors' and 'display_errors' is to enable these options, set to '0' to disable them."),
92 '$phplogcode' => "error_reporting(E_ERROR | E_WARNING | E_PARSE);\nini_set('error_log','php.out');\nini_set('log_errors','1');\nini_set('display_errors', '1');",
93 '$phplogenabled' => $phplogenabled,
Db.php (https://github.com/cosmocommerce/magento-mirror.git) PHP · 180 lines
1 <?php
2 /**
3 * Magento
8 * that is bundled with this package in the file LICENSE.txt.
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
12 * obtain it through the world-wide-web, please send an email
22 * @package Mage_Backup
23 * @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25 */
89 public function renderSql()
90 {
91 ini_set('max_execution_time', 0);
92 $sql = $this->getHeader();
session.php (https://github.com/EggBullStudio/Web-2.0-PgAdmin.git) PHP · 108 lines
2 /****************************************************************
3 *
4 * This is session.php file, that needs to be included into security.php
5 * It can possibly be included into other files to provide db sessions
6 * capabilities.
7 *
8 * -- REQUIRES security.php file before it
9 *
10 *****************************************************************/
100 // start session
101 if ($def_dbSession == true) {
102 ini_set("session.bug_compat_warn", "0");
103 session_module_name("user");
104 session_set_save_handler("ses_open", "ses_close", "ses_read", "ses_write", "ses_destroy", "ses_clean");
soap.php (https://github.com/eeggenberger/ezpublish.git) PHP · 123 lines
1 <?php
2 /**
3 * @copyright Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.
15 ob_start();
17 ini_set( "display_errors" , "0" );
19 // Set a default time zone if none is given. The time zone can be overriden
20 // in config.php or php.ini.
21 if ( !ini_get( "date.timezone" ) )
22 {
24 }
26 require 'autoload.php';
28 /*!
communityTopicActionsTest.php (https://github.com/kashiwasan/opCommunityTopicPlugin.git) PHP · 1315 lines
process_queue.php (https://github.com/zendframework/ZF2Package.git) PHP · 115 lines
is_array.js (https://gitlab.com/orvi2014/phpjs) JavaScript · 81 lines
10 // bugfixed by: Manish
11 // bugfixed by: Brett Zamir (http://brett-zamir.me)
12 // note: In php.js, javascript objects are like php associative arrays, thus JavaScript objects will also
13 // note: return true in this function (except for objects which inherit properties, being thus used as objects),
14 // note: unless you do ini_set('phpjs.objectsAsArrays', 0), in which case only genuine JavaScript arrays
65 // BEGIN REDUNDANT
66 this.php_js = this.php_js || {};
67 this.php_js.ini = this.php_js.ini || {};
68 // END REDUNDANT
70 ini = this.php_js.ini['phpjs.objectsAsArrays'];
72 return _isArray(mixed_var) ||
73 // Allow returning true unless user has called
74 // ini_set('phpjs.objectsAsArrays', 0) to disallow objects as arrays
75 ((!ini || (// if it's not set to 0 and it's not 'off', check for objects as arrays
76 (parseInt(ini.local_value, 10) !== 0 && (!ini.local_value.toLowerCase || ini.local_value.toLowerCase() !==
carpetbeggersFlickrimportTask.class.php (https://github.com/staunchRobots/Symfony-Groovy-Ecom.git) PHP · 110 lines
1 <?php
3 class carpetbeggersFlickrimportTask extends sfBaseTask
26 Call it with:
28 [php symfony carpetbeggers:flickr-import|INFO]
29 EOF;
30 }
32 protected function execute($arguments = array(), $options = array())
33 {
34 ini_set('memory_limit', '512M');
36 $exec = 'touch ' . sfConfig::get('sf_root_dir') . DIRECTORY_SEPARATOR . 'data' . DIRECTORY_SEPARATOR . $arguments['id'] . '.lock';
38 system($exec);
40 require_once(dirname(__FILE__).'/../../config/ProjectConfiguration.class.php');
42 $configuration = ProjectConfiguration::getApplicationConfiguration('frontend', 'dev', true);
loaddatamodel.php (https://github.com/nigeldaley/moodle.git) PHP · 111 lines
1 <?php
2 // This file is part of Moodle - http://moodle.org/
3 //
15 // along with Moodle. If not, see <http://www.gnu.org/licenses/>.
17 require_once("../../config.php");
18 require_once('locallib.php');
26 //IE 6 Bug workaround
27 if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 6') !== false && ini_get('zlib.output_compression') == 'On') {
28 ini_set('zlib.output_compression', 'Off');
29 }
53 }
55 $url = new moodle_url('/mod/scorm/loaddatamodel.php', array('scoid'=>$scoid, 'id'=>$cm->id, 'attempt'=>$attempt));
56 if ($mode !== '') {
57 $url->param('mode', $mode);
configonlylib.php (https://github.com/nigeldaley/moodle.git) PHP · 118 lines
1 <?php
3 // This file is part of Moodle - http://moodle.org/
20 *
21 * The only library that gets loaded if you define ABORT_AFTER_CONFIG
22 * before including main config.php. You can resume normal script operation
23 * if you define ABORT_AFTER_CONFIG_CANCEL and require the setup.php
30 /**
31 * Minimalistic parameter validation function.
32 * Can not use optional param because moodlelib.php is not loaded yet
33 * @param string $name
34 * @param mixed $default
51 /**
52 * Minimalistic parameter cleaning function.
53 * Can not use optional param because moodlelib.php is not loaded yet
54 * @param string $name
55 * @param mixed $default
soap.php (https://github.com/Yannix/ezpublish.git) PHP · 123 lines
1 <?php
2 /**
3 * @copyright Copyright (C) 1999-2012 eZ Systems AS. All rights reserved.
15 ob_start();
17 ini_set( "display_errors" , "0" );
19 // Set a default time zone if none is given. The time zone can be overriden
20 // in config.php or php.ini.
21 if ( !ini_get( "date.timezone" ) )
22 {
24 }
26 require 'autoload.php';
28 /*!
voting_image_options.php (https://github.com/rhempen/cms.git) PHP · 115 lines
1 <?php
3 /*****************************************************
4 ** Title........: Configuration File
5 ** Filename.....: config.php
6 ** Author.......: Ralf Stadtaus
7 ** Homepage.....: http://www.stadtaus.com/
25 *****************************************************/
27 ini_set('memory_limit', '8M');
106 ** Include script code
107 *****************************************************/
108 include($script_root . 'inc/core.inc.php');
110 echo $v4g_output;
Moderation.php (https://github.com/Minds/engine.git) PHP · 159 lines
1 <?php
3 namespace Minds\Controllers\Cli;
25 {
26 error_reporting(E_ALL);
27 ini_set('display_errors', 1);
28 }
31 {
32 error_reporting(E_ALL);
33 ini_set('display_errors', 1);
35 $manager = Di::_()->get('Moderation\Verdict\Manager');
40 {
41 error_reporting(E_ALL);
42 ini_set('display_errors', 1);
44 /** @var Core\Reports\Repository $reportsRepository */
shared.php (https://gitlab.com/klausmig/CloudSemanticWeb) PHP · 111 lines
1 <?php
3 require_once(ROOT . DS . 'application' . DS . 'library' . DS . 'controller.class.php');
4 require_once(ROOT . DS . 'application' . DS . 'library' . DS . 'SQLQuery.class.php');
5 require_once(ROOT . DS . 'application' . DS . 'library' . DS . 'model.class.php');
7 require_once(ROOT . DS . 'application' . DS . 'models' . DS . 'User.php');
8 require_once(ROOT . DS . 'application' . DS . 'models' . DS . 'Slide.php');
9 require_once(ROOT . DS . 'application' . DS . 'models' . DS . 'DeckList.php');
10 require_once(ROOT . DS . 'application' . DS . 'models' . DS . 'Deck.php');
11 require_once(ROOT . DS . 'application' . DS . 'models' . DS . 'Stream.php');
12 require_once(ROOT . DS . 'application' . DS . 'models' . DS . 'Statistics.php');
SessionConfiguration.php (https://github.com/Exercise/zf2.git) PHP · 281 lines
47 /**
48 * Used with {@link _handleError()}; stores PHP error message
49 * @var string
50 */
163 $this->_phpErrorCode = $code;
164 $this->_phpErrorMessage = $message;
165 }
178 ini_set('session.save_handler', $saveHandler);
179 restore_error_handler();
180 if ($this->_phpErrorCode >= E_WARNING) {
181 throw new SessionException('Invalid save handler specified');
182 }
230 if (empty($this->_validHashFunctions)) {
231 /**
232 * @see http://php.net/manual/en/session.configuration.php#ini.session.hash-function
233 * "0" and "1" refer to MD5-128 and SHA1-160, respectively, and are
234 * valid in addition to whatever is reported by hash_algos()
SQSTest.php (https://github.com/kastner/simple-aws.git) PHP · 176 lines
ProjectHttpTrait2.php (https://github.com/a07061625/swooleyaf.git) PHP · 207 lines
extprofile_options.h (https://github.com/tmjnaid/hiphop-php.git) C Header · 277 lines
1 /*
2 +----------------------------------------------------------------------+
3 | HipHop for PHP |
4 +----------------------------------------------------------------------+
5 | Copyright (c) 2010 Facebook, Inc. (http://www.facebook.com) |
6 | Copyright (c) 1997-2010 The PHP Group |
7 +----------------------------------------------------------------------+
8 | This source file is subject to version 3.01 of the PHP license, |
9 | that is bundled with this package in the file LICENSE, and is |
10 | available through the world-wide-web at the following url: |
11 | http://www.php.net/license/3_01.txt |
12 | If you did not receive a copy of the PHP license and are unable to |
13 | obtain it through the world-wide-web, please send a note to |
14 | license@php.net so we can mail you a copy immediately. |
15 +----------------------------------------------------------------------+
16 */
migrating-containers.rst (https://gitlab.com/randydanniswara/website) ReStructuredText · 111 lines
25 - Depending on the size and number of transfer items, you will need to
26 raise PHP's memory limit:
28 .. code-block:: php
30 ini_set('memory_limit', '512M');
32 - You will need to enact some kind of backoff/retry strategy for rate
34 added as a normal subscriber:
36 .. code-block:: php
38 use Guzzle\Plugin\Backoff\BackoffPlugin;
benchmarks.php (https://github.com/php-decimal/ext-decimal.git) PHP · 202 lines
html.php (https://github.com/mmakaay/Modules.git) PHP · 114 lines
1 <?php
2 ///////////////////////////////////////////////////////////////////////////////
3 // //
25 // Load HTMLPurifier.
26 ini_set(
27 'include_path',
28 ini_get('include_path') . PATH_SEPARATOR .
29 HTMLPURIFIER_PATH.'/standalone'
30 );
31 require HTMLPURIFIER_PATH.'/HTMLPurifier.standalone.php';
33 // HTML Phorum Mod
run.php (https://gitlab.com/matijabelec/bigpandadev) PHP · 148 lines
19 if ('Symfony' === $TEST_TYPE) {
20 function filter_func($path) {
21 return preg_match('~\.php(?:\.cache)?$~', $path) && false === strpos($path, 'skeleton');
22 };
23 } elseif ('PHP' === $TEST_TYPE) {
29 }
31 require_once dirname(__FILE__) . '/../lib/PHPParser/Autoloader.php';
32 PHPParser_Autoloader::register();
34 $parser = new PHPParser_Parser;
35 $prettyPrinter = new PHPParser_PrettyPrinter_Zend;
63 | Zend.tests.multibyte.multibyte_encoding_004
64 | Zend.tests.multibyte.multibyte_encoding_005
65 # token_get_all bug (https://bugs.php.net/bug.php?id=60097)
66 | Zend.tests.bug47516
67 # pretty print difference due to INF vs 1e1000
PhpMail.php (https://gitlab.com/reasonat/test8) PHP · 115 lines
1 <?php
3 namespace Drupal\Core\Mail\Plugin\Mail;
14 * id = "php_mail",
15 * label = @Translation("Default PHP mailer"),
16 * description = @Translation("Sends the message as plain text, using PHP's native mail() function.")
49 * TRUE if the mail was successfully accepted, otherwise FALSE.
50 *
51 * @see http://php.net/manual/function.mail.php
52 * @see \Drupal\Core\Mail\MailManagerInterface::mail()
53 */
66 $mimeheaders[] = $name . ': ' . Unicode::mimeHeaderEncode($value);
67 }
68 $line_endings = Settings::get('mail_line_endings', PHP_EOL);
69 // Prepare mail commands.
70 $mail_subject = Unicode::mimeHeaderEncode($message['subject']);
controller.php (https://github.com/levelsranks/levels-ranks-web.git) PHP · 129 lines
1 <?php
2 /**
3 * @author WizZzarD <artur.rusanov2013@gmail.com>
9 // Отключаем вывод ошибок.
10 error_reporting(E_ALL);
11 ini_set('display_errors', 0);
12 ini_set('display_startup_errors', 0);
86 // Регистраниция основных функций.
87 require '../../../includes/functions.php';
89 // Импортирование класса базы данных.
90 require_once '../../../ext/Db.php';
92 // Импортирование класса отвечающего за работу с языками и переводами.
extprofile_options.h (https://github.com/kevlund/hiphop-php.git) C Header · 290 lines
1 /*
2 +----------------------------------------------------------------------+
3 | HipHop for PHP |
4 +----------------------------------------------------------------------+
5 | Copyright (c) 2010- Facebook, Inc. (http://www.facebook.com) |
6 | Copyright (c) 1997-2010 The PHP Group |
7 +----------------------------------------------------------------------+
8 | This source file is subject to version 3.01 of the PHP license, |
9 | that is bundled with this package in the file LICENSE, and is |
10 | available through the world-wide-web at the following url: |
11 | http://www.php.net/license/3_01.txt |
12 | If you did not receive a copy of the PHP license and are unable to |
13 | obtain it through the world-wide-web, please send a note to |
14 | license@php.net so we can mail you a copy immediately. |
15 +----------------------------------------------------------------------+
16 */
config.php (https://github.com/ewandor/horde.git) PHP · 116 lines
1 <?php
2 /**
3 * This file provides configuration settings for both the freebusy.php
4 * and the pfb.php scripts.
5 *
6 * Copyright 2008-2012 Horde LLC (http://www.horde.org/)
24 /* PHP error logging */
25 ini_set('error_log', '/kolab/var/kolab-freebusy/log/php-error.log');
27 /* Horde::Kolab::LDAP configuration */
28 $conf['kolab']['ldap']['server'] = 'example.com';
29 $conf['kolab']['ldap']['basedn'] = 'dc=example,dc=com';
30 $conf['kolab']['ldap']['phpdn'] = 'cn=nobody,cn=internal,dc=example,dc=com';
31 $conf['kolab']['ldap']['phppw'] = 'xyz';
Table1_edit.php (https://gitlab.com/Lidbary/PHPRunner) PHP · 139 lines
reporte_autorizacion_fechas.php (https://gitlab.com/Oskrin/multiempresa.git) PHP · 74 lines
1 <?php
2 require('../dompdf/dompdf_config.inc.php');
20 <h3>NÚMEROS DE AUTORIZACIÓN ENTRE FECHAS</h3>
21 </div>';
22 include '../../procesos/base.php';
23 conectarse();
24 $total=0;
67 $dompdf= new DOMPDF();
68 $dompdf->load_html($codigo);
69 ini_set("memory_limit","1000M");
70 $dompdf->set_paper("A4","portrait");
71 $dompdf->render();
sort.js (https://gitlab.com/orvi2014/phpjs) JavaScript · 110 lines
10 // note: of acting by reference and returning true; this was necessary because
11 // note: IE does not allow deleting and re-adding of properties without caching
12 // note: of property position; you can set the ini of "phpjs.strictForIn" to true to
13 // note: get the PHP behavior, but use this only if you are in an environment
25 // example 1: $result = arr;
26 // returns 1: ['Kevin', 'Zonneveld', 'van']
27 // example 2: ini_set('phpjs.strictForIn', true);
28 // example 2: fruits = {d: 'lemon', a: 'orange', b: 'banana', c: 'apple'};
29 // example 2: sort(fruits);
80 // BEGIN REDUNDANT
81 try {
82 this.php_js = this.php_js || {};
83 } catch (e) {
84 this.php_js = {};
87 this.php_js.ini = this.php_js.ini || {};
88 // END REDUNDANT
89 strictForIn = this.php_js.ini['phpjs.strictForIn'] && this.php_js.ini['phpjs.strictForIn'].local_value && this.php_js
90 .ini['phpjs.strictForIn'].local_value !== 'off';
config.php (https://github.com/finger2000/horde.git) PHP · 116 lines
1 <?php
2 /**
3 * This file provides configuration settings for both the freebusy.php
4 * and the pfb.php scripts.
5 *
6 * Copyright 2008-2011 Horde LLC (http://www.horde.org/)
24 /* PHP error logging */
25 ini_set('error_log', '/kolab/var/kolab-freebusy/log/php-error.log');
27 /* Horde::Kolab::LDAP configuration */
28 $conf['kolab']['ldap']['server'] = 'example.com';
29 $conf['kolab']['ldap']['basedn'] = 'dc=example,dc=com';
30 $conf['kolab']['ldap']['phpdn'] = 'cn=nobody,cn=internal,dc=example,dc=com';
31 $conf['kolab']['ldap']['phppw'] = 'xyz';
cat_carrier_update_queue.php (https://gitlab.com/ptisky/API_prestashop) PHP · 270 lines
wp-config.php (https://gitlab.com/pepek4kintil/template-builder) PHP · 126 lines
1 <?php
3 use Platformsh\ConfigReader\Config;
5 require __DIR__.'/../vendor/autoload.php';
7 // Create a new config object to ease reading the Platform.sh environment variables.
24 // from Platform.sh.
26 // Avoid PHP notices on CLI requests.
27 if (php_sapi_name() === 'cli') {
53 // Pick the first hostname, or the first HTTPS hostname if one exists.
54 $host = parse_url($url, PHP_URL_HOST);
55 $scheme = parse_url($url, PHP_URL_SCHEME);
Abstract.php (https://github.com/MontmereLimited/ZendFramework-v1.git) PHP · 259 lines
1 <?php
3 /**
18 * @copyright Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
20 * @version $Id: Abstract.php 23775 2011-03-01 17:25:24Z ralph $
21 */
25 * @see Zend_Feed_Element
26 */
27 // // // // // // // // // // require_once 'Zend/Feed/Element.php';
31 * The Zend_Feed_Abstract class is an abstract class representing feeds.
32 *
33 * Zend_Feed_Abstract implements two core PHP 5 interfaces: ArrayAccess and
34 * Iterator. In both cases the collection being treated as an array is
35 * considered to be the entry collection, such that iterating over the
cpanel.php (https://github.com/zarkos/Kunena-2.0.git) PHP · 141 lines
reporte_categoria_marcas.php (https://gitlab.com/Oskrin/inventario.git) PHP · 137 lines
1 <?php
2 require('../reportes/dompdf/dompdf_config.inc.php');
21 <h3>LISTA DE PRODUCTOS POR CATEGORÍAS Y MARCAS</h3>
22 </div>';
23 include '../procesos/base.php';
24 conectarse();
25 $total=0;
130 $dompdf= new DOMPDF();
131 $dompdf->load_html($codigo);
132 ini_set("memory_limit","100M");
133 $dompdf->set_paper("A4","portrait");
134 $dompdf->render();
piecrust.php (https://bitbucket.org/ndj/piecrust.git) PHP · 145 lines
1 <?php
3 /**
88 // Set the autoloader
89 $loader = (require $libsDir . '/autoload.php');
90 $loader->add('Console_', $libsDir . '/pear');
91 $loader->add('Log_', $libsDir . '/pear');
103 default:
104 {
105 ini_set('display_errors', true);
106 error_reporting(E_ALL);
107 set_error_handler('piecrust_error_handler');
111 case 'test':
112 {
113 ini_set('display_errors', true);
114 ini_set('display_startup_errors', true);
Session.php (https://github.com/tokushima/rhaco3.git) PHP · 145 lines
1 <?php
2 namespace org\rhaco\net;
3 /**
4 * セッションを操作する
5 * @see http://jp2.php.net/manual/ja/function.session-set-save-handler.php
6 * @author tokushima
7 * @conf string $session_name セッション名
31 if(static::has_module('session_read')){
32 ini_set('session.save_handler','user');
34 session_set_save_handler(
api_pull.php (https://bitbucket.org/jimorland/tripwire.git) PHP · 144 lines
s2300_JsonSchemaEvtTSVInicio.php (https://github.com/nfephp-org/sped-esocial.git) PHP · 1103 lines
s1200_JsonSchemaEvtRemun.php (https://github.com/nfephp-org/sped-esocial.git) PHP · 960 lines
s5011_JsonSchemaEvtCS.php (https://github.com/nfephp-org/sped-esocial.git) PHP · 705 lines
git.php (https://github.com/plastic/Cake-boilerplate.git) PHP · 304 lines
1 <?php
2 /**
3 * Fatty: Simple Git repogitory browser plugin for CakePHP.
8 *
9 * @copyright Copyright (C) 2010 by 101000code/101000LAB
10 * @since CakePHP(tm) v 1.2
11 * @license http://www.opensource.org/licenses/mit-license.php The MIT License
12 */
13 set_time_limit(0);
14 ini_set('memory_limit', '256M');
15 require APP . 'plugins' . DS . 'fatty' . DS . 'config' . DS . 'core.php';
compress_api.php (https://github.com/osarrat/sigmah-website.git) PHP · 138 lines
1 <?php
2 # MantisBT - a php based bugtracking system
18 * Compression API
19 *
20 * This API handles the ob_gzhandler in php.
21 *
22 * @package CoreAPI
63 }
65 // Since php 5.2.10, it's possible to set zlib.output_compression via ini_set.
66 // This method is preferred over ob_gzhandler
67 if( php_version_at_least( '5.2.10' ) && ini_get( 'output_handler' ) == '' && function_exists( 'ini_set' ) ) {
73 if ( OFF == $g_use_iis ) {
74 // disable compression when using IIS because of issue #2953.
75 // For windows compression, use zlib.output_compression in php.ini or a later version of php
76 return false;
77 }
rich_filemanager-filemanager-php.tmpl (git://github.com/justingit/dada-mail.git) Go Template · 119 lines
1 <?php
2 ini_set('session.save_path',realpath('<!-- tmpl_var i_rich_filemanager_session_dir -->'));
4 /**
5 * Entry point for PHP connector, put your customizations here.
6 *
7 * @license MIT License
12 // only for debug
13 // error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);
14 // ini_set('display_errors', '1');
16 require 'vendor/autoload.php';
20 setlocale(LC_CTYPE, 'en_US.UTF-8');
22 // fix for undefined timezone in php.ini
23 // https://github.com/servocoder/RichFilemanager/issues/43
24 if(!ini_get('date.timezone')) {
Filesystem.php (https://github.com/Exercise/zf2.git) PHP · 222 lines
1 <?php
2 /**
3 * Zend Framework
54 public function __construct($filename, $mode='r+b')
55 {
56 global $php_errormsg;
58 if (strpos($mode, 'w') === false && !is_readable($filename)) {
63 $trackErrors = ini_get('track_errors');
64 ini_set('track_errors', '1');
66 $this->_fileHandle = @fopen($filename, $mode);
68 if ($this->_fileHandle === false) {
69 ini_set('track_errors', $trackErrors);
70 throw new Lucene\Exception($php_errormsg);
DiskKeyCache.php (https://github.com/ritaswc/wechat_app_template.git) PHP · 321 lines
1 <?php
3 /*
178 $fp = $this->_getHandle($nsKey, $itemKey, self::POSITION_START);
179 if ($this->_quotes) {
180 ini_set('magic_quotes_runtime', 0);
181 }
182 $str = '';
185 }
186 if ($this->_quotes) {
187 ini_set('magic_quotes_runtime', 1);
188 }
189 $this->_freeHandle($nsKey, $itemKey);
205 $fp = $this->_getHandle($nsKey, $itemKey, self::POSITION_START);
206 if ($this->_quotes) {
207 ini_set('magic_quotes_runtime', 0);
208 }
209 while (!feof($fp) && false !== $bytes = fread($fp, 8192)) {
s-badge-status-in.inc.php (https://gitlab.com/Gashler/sg) PHP · 98 lines
Notification_processor.php (https://bitbucket.org/webtechnologie/pm.git) PHP · 122 lines
1 <?php
3 if (!defined('BASEPATH'))
26 function create_notification() {
28 ini_set('max_execution_time', 300); //300 seconds
29 //error_log(date('[Y-m-d H:i:s e] ') . " Process Notification: " . serialize($_POST) . PHP_EOL, 3, "error.log");
119 }
121 /* End of file notifications.php */
122 /* Location: ./application/controllers/Notifications.php */
Php.php (https://github.com/ggunlugu/ornekler.git) PHP · 241 lines
1 <?php
2 /**
3 * Lithium: the most rad php framework
4 *
5 * @copyright Copyright 2010, Union of RAD (http://union-of-rad.org)
6 * @license http://opensource.org/licenses/bsd-license.php The BSD License
7 */
15 /**
16 * A minimal adapter to interface with native PHP sessions.
17 *
18 * This adapter provides basic support for `write`, `read` and `delete`
21 *
22 */
23 class Php extends \lithium\core\Object {
25 /**
index.php (https://github.com/marcosbrasil/Locaweb-Cielo.git) PHP · 117 lines
definitions.php (https://gitlab.com/scsistemas/superprime) PHP · 262 lines
1 <?php
2 //$urlWS = 'http://qa.superprimeweb.com/admin/index.php?';
3 $urlWS = 'http://localhost:8080/superprime/admin/index.php?';
4 $rutaFotos = '../images/fotos/';
5 //$rutaFotos = $_SERVER['REQUEST_SCHEME'] . '://' . $_SERVER['HTTP_HOST'] . '/backend/images/fotos/';
6 $variable = array('ml_id','ml_secretKey', 'ml_authCode', 'ml_token', 'ml_fecToken', 'ml_expires', 'ml_redirectUri');
7 //ini_set('display_errors', '1');
8 foreach ($variable as $key ) {
9 $dataML[$key] = obtenerClaveValor($urlWS, $key);
init.php (https://gitlab.com/jslee1/PrestaShop) PHP · 124 lines
30 if (version_compare(preg_replace('/[^0-9.]/', '', PHP_VERSION), '5.2', '<')) {
31 die('You need at least PHP 5.2 to run PrestaShop. Your current PHP version is '.PHP_VERSION);
32 }
34 // we check if theses constants are defined
35 // in order to use init.php in upgrade.php script
36 if (!defined('__PS_BASE_URI__')) {
37 define('__PS_BASE_URI__', substr($_SERVER['REQUEST_URI'], 0, -1 * (strlen($_SERVER['REQUEST_URI']) - strrpos($_SERVER['REQUEST_URI'], '/')) - strlen(substr(dirname($_SERVER['REQUEST_URI']), strrpos(dirname($_SERVER['REQUEST_URI']), '/') + 1))));
52 require_once(_PS_CORE_DIR_.'/config/bootstrap.php');
53 require_once(_PS_CORE_DIR_.'/config/defines_uri.inc.php');
55 // Generate common constants
62 define('_PS_INSTALL_FIXTURES_PATH_', _PS_INSTALL_PATH_.'fixtures/');
64 require_once(_PS_INSTALL_PATH_.'install_version.php');
66 // PrestaShop autoload is used to load some helpfull classes like Tools.
Application.php (https://github.com/alvaropereyra/shrekcms.git) PHP · 342 lines
1 <?php
2 /**
3 * Zend Framework
17 * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
18 * @license http://framework.zend.com/license/new-bsd New BSD License
19 * @version $Id: Application.php 15151 2009-04-25 17:46:24Z matthew $
20 */
59 * Constructor
60 *
61 * Initialize application. Potentially initializes include_paths, PHP
62 * settings, and bootstrap class.
63 *
127 if (!empty($options['phpsettings'])) {
128 $this->setPhpSettings($options['phpsettings']);
129 }
PriceTest.php (https://github.com/strangerstudios/paid-memberships-pro.git) PHP · 153 lines
1 <?php
3 namespace PMPro\Tests\Functions;
5 use PHP_CodeSniffer\Generators\HTML;
6 use PMPro\Test_Support\TestCases\TestCase;
23 $this->original_serialize_precision = ini_get( 'serialize_precision' );
25 ini_set( 'precision', 14 );
26 ini_set( 'serialize_precision', 17 );
31 */
32 public function tearDown() : void {
33 ini_set( 'precision', $this->original_precision );
34 ini_set( 'serialize_precision', $this->original_serialize_precision );
main_oauth.php (https://github.com/VineGlobal/AngularJS-eCommerce.git) PHP · 201 lines
index.php (https://bitbucket.org/denisOg/soft-site.git) PHP · 161 lines
1 <?php
2 error_reporting(E_ALL | E_STRICT);
3 ini_set('display_errors', 'On');
4 ini_set('short_open_tag', 'On');
5 include_once(__DIR__ . '/config.php');
14 $data['title'] = 'Список программ';
15 $data['aResult'] = $oMySQL->Select('soft');
16 render('_list.php', $data);
17 }
22 $data['title'] = 'Список программ';
23 $data['aResult'] = $oMySQL->Select('soft');
24 render('_admin_list.php', $data);
25 }
SmartPanMail.php (https://bitbucket.org/aswinvk28/smartpan-stock-drupal.git) PHP · 142 lines
15 * @author aswinvk28
16 */
17 class SmartPanMail extends PhpMail
18 {
19 public function __construct()
31 * TRUE if the mail was successfully accepted, otherwise FALSE.
32 *
33 * @see http://php.net/manual/en/function.mail.php
34 * @see drupal_mail()
35 */
49 $mimeheaders[] = $name . ': ' . mime_header_encode($value);
50 }
51 $line_endings = settings()->get('mail_line_endings', PHP_EOL);
52 // Prepare mail commands.
53 $mail_subject = mime_header_encode($message['subject']);
substr.js (https://gitlab.com/Mirros/jsdelivr) JavaScript · 119 lines
17 // * example 3: substr('a\uD801\uDC00', 0, -1);
18 // * returns 3: 'a'
19 // * example 4: ini_set('unicode.semantics', 'on');
20 // * example 4: substr('a\uD801\uDC00', 0, 2);
21 // * returns 4: 'a\uD801\uDC00'
22 // * example 5: ini_set('unicode.semantics', 'on');
23 // * example 5: substr('a\uD801\uDC00', -1, 1);
24 // * returns 5: '\uD801\uDC00'
42 // BEGIN REDUNDANT
43 this.php_js = this.php_js || {};
44 this.php_js.ini = this.php_js.ini || {};
45 // END REDUNDANT
46 switch ((this.php_js.ini['unicode.semantics'] && this.php_js.ini['unicode.semantics'].local_value.toLowerCase())) {
47 case 'on':
48 // Full-blown Unicode including non-Basic-Multilingual-Plane characters
Application.php (https://github.com/carlmcdade/Solidocs.git) PHP · 254 lines
1 <?php
2 /**
3 * Application
8 * @package Solidocs
9 * @author Karl Roos <karlroos93@gmail.com>
10 * @license MIT License (http://www.opensource.org/licenses/mit-license.php
11 */
12 class Solidocs_Application extends Solidocs_Base
79 public function setup_core(){
80 // Include core
81 include(PACKAGE . '/Solidocs/Config.php');
82 include(PACKAGE . '/Solidocs/Load.php');
90 }
91 else{
92 ini_set('display_errors', 0);
93 }
LoggerAppenderMailEvent.php (https://bitbucket.org/thomashii/vtigercrm-6-for-postgresql.git) PHP · 170 lines
1 <?php
2 /**
3 * log4php is a PHP port of the log4j java logging package.
4 *
5 * <p>This framework is based on log4j (see {@link http://jakarta.apache.org/log4j log4j} for details).</p>
10 * <p>PHP port, extensions and modifications by VxR. All rights reserved.<br>
11 * For more information, please see {@link http://www.vxr.it/log4php/}.</p>
12 *
13 * <p>This software is published under the terms of the LGPL License
21 * @ignore
22 */
23 if (!defined('LOG4PHP_DIR')) define('LOG4PHP_DIR', dirname(__FILE__) . '/..');
25 /**
27 require_once(LOG4PHP_DIR . '/LoggerAppenderSkeleton.php');
28 require_once(LOG4PHP_DIR . '/LoggerLog.php');
30 /**
upgrade.php5.php (https://github.com/joelwan/php-object-generator.git) PHP · 140 lines
1 <?php
2 /**
3 * @author Joel Wan & Mark Slemko. Designs by Jonathan Easton
4 * @link http://www.phpobjectgenerator.com
5 * @copyright Offered under the BSD license
6 *
28 while(($file = readdir($dir)) !== false)
29 {
30 if(strlen($file) > 4 && substr(strtolower($file), strlen($file) - 4) === '.php' && !is_dir($file) && $file != "class.database.php" && $file != "configuration.php" && $file != "setup.php" && $file != "class.pog_base.php")
31 {
32 $objects[] = $file;
97 if ($attribute_type['db_attributes'][1] == "JOIN")
98 {
99 $mappingString = $client->GenerateMapping($objectName, $key, (isset($GLOBALS['configuration']['pdoDriver']) ? 'php5.1' :'php5'), (isset($GLOBALS['configuration']['pdoDriver']) ? 'pdo' :'pog'), (isset($GLOBALS['configuration']['pdoDriver']) ? 'mysql' :''));
100 $package["objects"]['class.'.strtolower(MappingName($objectName, $key)).'.php'] = $mappingString;
function.ini-restore.html (https://github.com/cue-taro/emacs-setting-files.git) HTML · 106 lines
8 <body><div class="manualnavbar" style="text-align: center;">
9 <div class="prev" style="text-align: left; float: left;"><a href="function.ini-get.html">ini_get</a></div>
10 <div class="next" style="text-align: right; float: right;"><a href="function.ini-set.html">ini_set</a></div>
11 <div class="up"><a href="ref.info.html">PHP オプション/情報 関数</a></div>
12 <div class="home"><a href="index.html">PHP Manual</a></div>
13 </div><hr /><div id="function.ini-restore" class="refentry">
14 <div class="refnamediv">
15 <h1 class="refname">ini_restore</h1>
16 <p class="verinfo">(PHP 4, PHP 5)</p><p class="refpurpose"><span class="refname">ini_restore</span> — <span class="dc-title">設定オプションの値を元に戻す</span></p>
18 </div>
70 <div class="phpcode"><code><span style="color: #000000">
71 <span style="color: #0000BB"><?php<br />$setting </span><span style="color: #007700">= </span><span style="color: #DD0000">'y2k_compliance'</span><span style="color: #007700">;<br /><br />echo </span><span style="color: #DD0000">'Current value for \'' </span><span style="color: #007700">. </span><span style="color: #0000BB">$setting </span><span style="color: #007700">. </span><span style="color: #DD0000">'\': ' </span><span style="color: #007700">. </span><span style="color: #0000BB">ini_get</span><span style="color: #007700">(</span><span style="color: #0000BB">$setting</span><span style="color: #007700">), </span><span style="color: #0000BB">PHP_EOL</span><span style="color: #007700">;<br /><br /></span><span style="color: #0000BB">ini_set</span><span style="color: #007700">(</span><span style="color: #0000BB">$setting</span><span style="color: #007700">, </span><span style="color: #0000BB">ini_get</span><span style="color: #007700">(</span><span style="color: #0000BB">$setting</span><span style="color: #007700">) ? </span><span style="color: #0000BB">0 </span><span style="color: #007700">: </span><span style="color: #0000BB">1</span><span style="color: #007700">);<br />echo </span><span style="color: #DD0000">'New value for \'' </span><span style="color: #007700">. </span><span style="color: #0000BB">$setting </span><span style="color: #007700">. </span><span style="color: #DD0000">'\': ' </span><span style="color: #007700">. </span><span style="color: #0000BB">ini_get</span><span style="color: #007700">(</span><span style="color: #0000BB">$setting</span><span style="color: #007700">), </span><span style="color: #0000BB">PHP_EOL</span><span style="color: #007700">;<br /><br /></span><span style="color: #0000BB">ini_restore</span><span style="color: #007700">(</span><span style="color: #0000BB">$setting</span><span style="color: #007700">);<br />echo </span><span style="color: #DD0000">'Original value for \'' </span><span style="color: #007700">. </span><span style="color: #0000BB">$setting </span><span style="color: #007700">. </span><span style="color: #DD0000">'\': ' </span><span style="color: #007700">. </span><span style="color: #0000BB">ini_get</span><span style="color: #007700">(</span><span style="color: #0000BB">$setting</span><span style="color: #007700">), </span><span style="color: #0000BB">PHP_EOL</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">?></span>
72 </span>
73 </code></div>
fg.api.php (https://bitbucket.org/vectorbase/vectorbase.git) PHP · 130 lines
Environment.php (https://github.com/WebTricks/WebTricks-CMS.git) PHP · 195 lines
1 <?php
2 /**
3 * WebTricks - PHP Framework
20 /**
21 * Provides information about, and means to manipulate, the current PHP
22 * environment and platform.
23 *
58 protected function setSetting($name, $value)
59 {
60 return ini_set($name, $value);
61 }
76 /**
77 * Returns the memory limit which can be used by the PHP script
78 *
79 * @return string
update.php (https://gitlab.com/endomorphosis/reservationtelco) PHP · 253 lines
1 <?php
2 /**
3 * Update/Install Plugin/Theme administration panel.
9 /** WordPress Administration Bootstrap */
10 require_once('./admin.php');
12 include_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';
32 $plugins = array_map('urldecode', $plugins);
34 $url = 'update.php?action=update-selected&plugins=' . urlencode(implode(',', $plugins));
35 $nonce = 'bulk-update-plugins';
37 require_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
38 wp_enqueue_script('jquery');
39 iframe_header();
alterar2.php (https://github.com/andrerezende/CENSO.git) PHP · 163 lines
1 <?php
2 session_start();
3 // iniciando variaveis de sessao
7 $campoAlterado = null;
9 require_once '../../model/Conexao.php';
10 require_once '../../controller/Seguranca.php';
12 //ini_set('display_errors', 1);
14 //***************************
140 <script>
141 alert("Obrigado por participar do nosso CENSO 2011, sua participação foi muito importante.");
142 location.href = '../../controller/confirmacao_de_acesso/confirmar.php';
143 </script>
sass.php (https://gitlab.com/phamngsinh/baitaplon_sinhvien) PHP · 121 lines
1 <?php
2 // File Security Check
3 if (!defined('ABSPATH'))
35 public function plugin_compile_less_mincss( $sass, $css_file_name = '' )
36 {
37 @ini_set( 'display_errors', false );
38 $_upload_dir = wp_upload_dir();
39 @chmod($_upload_dir['basedir'], 0777);
88 if (!class_exists('Compile_Less_Sass'))
89 include( dirname( __FILE__ ) . '/compile_less_sass_class.php');
90 file_put_contents($less_file, $sass_data);
91 $css_file = $_upload_dir['basedir'] . '/sass/' . $filename . '.css';
103 ob_start();
104 include( $this->plugin_dir. '/templates/customized_style.php' );
105 $sass = ob_get_clean();
106 $sass = str_replace( '<style>', '', str_replace( '</style>', '', $sass ) );
core.php (https://github.com/didierjc/clear.git) PHP · 118 lines
1 <?php
2 /** Check if environment is development and display errors **/
3 function setReporting(){
4 if(DEVELOPMENT_ENVIRONMENT == true){
5 // error_reporting() | sets the error_reporting directive at runtime; PHP has many levels of errors, using this function sets that level for the duration of your script
6 error_reporting(E_ALL); // E_ALL | All errors and warnings
7 ini_set('display_errors', 1); // set the value of a configuration option -- display_errors: determines whether errors should be printed to the screen as part of the output
8 }else{
9 error_reporting(E_ALL);
10 ini_set('display_errors', 0);
11 ini_set('log_errors', 1); // script error messages will be logged to the server's error log
12 ini_set('error_log', ROOT.DS.'tmp'.DS.'logs'.DS.'error_'.date("Ymd").'_'.date("His").'.log'); // name of the file where script errors should be logged
13 }
14 }
config.php (https://github.com/imr/horde.git) PHP · 116 lines
1 <?php
2 /**
3 * This file provides configuration settings for both the freebusy.php
4 * and the pfb.php scripts.
5 *
6 * Copyright 2008-2014 Horde LLC (http://www.horde.org/)
24 /* PHP error logging */
25 ini_set('error_log', '/kolab/var/kolab-freebusy/log/php-error.log');
27 /* Horde::Kolab::LDAP configuration */
28 $conf['kolab']['ldap']['server'] = 'example.com';
29 $conf['kolab']['ldap']['basedn'] = 'dc=example,dc=com';
30 $conf['kolab']['ldap']['phpdn'] = 'cn=nobody,cn=internal,dc=example,dc=com';
31 $conf['kolab']['ldap']['phppw'] = 'xyz';
32chartreadwrite.php (https://gitlab.com/Iftekhar_ramim/AtomicProjects_127301_B21) PHP · 131 lines
7 date_default_timezone_set('Europe/London');
9 define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '<br />');
11 date_default_timezone_set('Europe/London');
33 * @package PHPExcel
34 * @copyright Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
35 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
36 * @version ##VERSION##, ##DATE##
42 /** PHPExcel_IOFactory */
43 include 'PHPExcel/IOFactory.php';
45 $inputFileType = 'Excel2007';
116 echo date('H:i:s') , " Write Tests to Excel2007 file " , EOL;
117 $objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel2007');
118 $objWriter->setIncludeCharts(TRUE);
119 $objWriter->save($outputFileName);
Abstract.php (https://github.com/hettema/Stages.git) PHP · 393 lines
1 <?php
2 /**
3 * class Core_Model_Session_Absctract
36 switch($this->getSessionSaveMethod()) {
37 case 'db':
38 ini_set('session.save_handler', 'user');
39 $sessionResource = App_Main::getResourceSingleton('core/session');
40 $sessionResource->setSaveHandler();
41 break;
42 case 'memcache':
43 ini_set('session.save_handler', 'memcache');
44 session_save_path($this->getSessionSavePath());
45 break;
default-constants.php (https://gitlab.com/Gashler/dp) PHP · 309 lines
1 <?php
2 /**
3 * Defines constants and global variables that can be overridden, generally in wp-config.php.
43 $current_limit = @ini_get( 'memory_limit' );
44 if ( -1 != $current_limit && ( -1 == WP_MEMORY_LIMIT || ( intval( $current_limit ) < abs( intval( WP_MEMORY_LIMIT ) ) ) ) )
45 @ini_set( 'memory_limit', WP_MEMORY_LIMIT );
46 }
49 define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' ); // no trailing slash, full paths only - WP_CONTENT_URL is defined further down
51 // Add define('WP_DEBUG', true); to wp-config.php to enable display of notices during development.
52 if ( !defined('WP_DEBUG') )
53 define( 'WP_DEBUG', false );
55 // Add define('WP_DEBUG_DISPLAY', null); to wp-config.php use the globally configured setting for
56 // display_errors and not force errors to be displayed. Use false to force display_errors off.
57 if ( !defined('WP_DEBUG_DISPLAY') )
bootstrap.php (https://github.com/paulcinelli/kohanajobs.git) PHP · 149 lines
1 <?php defined('SYSPATH') or die('No direct script access.');
3 //-- Environment setup --------------------------------------------------------
15 * Set the default time zone.
16 *
17 * @see http://docs.kohanaphp.com/about.configuration
18 * @see http://php.net/timezones
41 * @see http://php.net/spl_autoload_call
42 * @see http://php.net/manual/var.configuration.php#unserialize-callback-func
43 */
44 ini_set('unserialize_callback_func', 'spl_autoload_call');
52 *
53 * - string base_url path, and optionally domain, of your application NULL
54 * - string index_file name of your index file, usually "index.php" index.php
55 * - string charset internal character set used for input and output utf-8
56 * - string cache_dir set the internal cache directory APPPATH/cache
callJSRepair.php (https://github.com/ganesharun77/TestProjec.git) PHP · 77 lines
1 <?php
2 if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
3 /*********************************************************************************
31 **this is the ajax call that is called from RebuildJSLang.php. It processes
32 **the Request object in order to call correct methods for repairing/rebuilding JSfiles
33 *Note that minify.php has already been included as part of index.php, so no need to include again.
34 */
42 //this script can take a while, change max execution time to 10 mins
43 $tmp_time = ini_get('max_execution_time');
44 ini_set('max_execution_time','600');
46 //figure out which commands to call.
48 //concatenate mode, call the files that will concatenate javascript group files
49 $_REQUEST['js_rebuild_concat'] = 'rebuild';
50 require_once('jssource/minify.php');
52 }else{
cookbook.html
(https://swig.svn.sourceforge.net/svnroot/swig)
HTML · 238 lines
✨ Summary
This HTML code outputs a PHP tutorial on using MagpieRSS to parse and display RSS feeds. It provides examples of how to limit the number of items returned, display custom error messages, generate new RSS feeds, filter headlines by date, and parse local files containing RSS. The content is presented in a structured format with headings, paragraphs, and code snippets.
This HTML code outputs a PHP tutorial on using MagpieRSS to parse and display RSS feeds. It provides examples of how to limit the number of items returned, display custom error messages, generate new RSS feeds, filter headlines by date, and parse local files containing RSS. The content is presented in a structured format with headings, paragraphs, and code snippets.
113 href="http://www.php.net/error_reporting">http://www.php.net/error_reporting</a>,<br
114 />
115 <a href="http://www.php.net/ini_set">http://www.php.net/ini_set</a>, <br />
116 <a
117 href="http://www.php.net/manual/en/ref.errorfunc.php">http://www.php.net/manual/en/ref.errorfunc.php</a><br
172 <h3>See: </h3>
173 <a
174 href="http://www.php.net/manual/en/ref.datetime.php">http://www.php.net/manual/en/ref.datetime.php</a>
176 <a name="from_file"></a>
215 <h3>See: </h3>
216 <a
217 href="http://www.php.net/manual/en/ref.filesystem.php">http://www.php.net/manual/en/ref.filesystem.php</a>,<br
218 />
219 <a
session.php
(http://forceworkbench.googlecode.com/svn/trunk/workbench/)
PHP · 106 lines
✨ Summary
This PHP code initializes and configures a Workbench application, setting up session management, error handling, and security measures to ensure a secure connection with Salesforce. It also checks for user authentication, validates CSRF tokens, and monitors user activity to prevent idle sessions from expiring prematurely.
This PHP code initializes and configures a Workbench application, setting up session management, error handling, and security measures to ensure a secure connection with Salesforce. It also checks for user authentication, validates CSRF tokens, and monitors user activity to prevent idle sessions from expiring prematurely.
9 require_once 'config.php';
10 if(is_file('configOverrides.php')) require_once 'configOverrides.php';
12 foreach ($config as $configKey => $configValue) {
50 //clear ResultsWithData and retrievedZips from session unless downloading them
51 if (isset($_SESSION['resultsWithData']) && basename($_SERVER['PHP_SELF']) != 'downloadResultsWithData.php') {
52 unset($_SESSION['resultsWithData']);
53 }
55 if (isset($_SESSION['retrievedZips']) && basename($_SERVER['PHP_SELF']) != 'metadataStatus.php') {
56 unset($_SESSION['retrievedZips']);
57 }
94 if (isLoggedIn()) {
95 // todo: should this be in the ctx?
96 if (!in_array(basename($_SERVER['PHP_SELF'], ".php"), array("login", "logout")) && isset($_SESSION['lastRequestTime'])) {
97 $idleTime = microtime(true) - $_SESSION['lastRequestTime'];
98 if ($idleTime > (getConfig("sessionIdleMinutes") * 60)) {
cake.php (https://bitbucket.org/webpolis/liiv.git) PHP · 592 lines
9 * PHP versions 4 and 5
10 *
11 * CakePHP(tm) : Rapid Development Framework (http://www.cakephp.org)
12 * Copyright 2005-2008, Cake Software Foundation, Inc.
13 *
17 * @filesource
18 * @copyright Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
19 * @link http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
20 * @package cake
21 * @subpackage cake.cake.console
150 if (!defined('CAKE_CORE_INCLUDE_PATH')) {
151 define('PHP5', (PHP_VERSION >= 5));
152 define('DS', DIRECTORY_SEPARATOR);
153 define('CAKE_CORE_INCLUDE_PATH', dirname(dirname(dirname(__FILE__))));