PageRenderTime 1274ms queryFilters 0ms Sphinxql 288ms GetByIds 481ms meta 0ms repositoryFilters 280ms languageFilters 0ms sourceFilters 98ms

13,322 results for 'php glob' (1274 ms)

Source

Language

Repository

class.extensionmanager.php https://github.com/vlad-ghita/symphony-2.git | PHP | 1,041 lines
1<?php
2
286		 * Determines whether an extension needs to be updated or not using
287		 * PHP's `version_compare` function. This function will return the
288		 * installed version if the extension requires an update, or
540			if(is_dir(EXTENSIONS . "/{$extension_handle}/fields")){
541				foreach(glob(EXTENSIONS . "/{$extension_handle}/fields/field.*.php") as $file){
542					$type = preg_replace(array('/^field\./i', '/\.php$/i'), NULL, basename($file));
553			if(is_dir(EXTENSIONS . "/{$extension_handle}/data-sources")){
554				foreach(glob(EXTENSIONS . "/{$extension_handle}/data-sources/data.*.php") as $file){
555					$handle = preg_replace(array('/^data\./i', '/\.php$/i'), NULL, basename($file));
566			if(is_dir(EXTENSIONS . "/{$extension_handle}/events")){
567				foreach(glob(EXTENSIONS . "/{$extension_handle}/events/event.*.php") as $file){
568					$handle = preg_replace(array('/^event\./i', '/\.php$/i'), NULL, basename($file));
579			if(is_dir(EXTENSIONS . "/{$extension_handle}/text-formatters")){
580				foreach(glob(EXTENSIONS . "/{$extension_handle}/text-formatters/formatter.*.php") as $file){
581					$handle = preg_replace(array('/^formatter\./i', '/\.php$/i'), NULL, basename($file));
FileLogTest.php https://github.com/sandhya123456/childlabour.git | PHP | 197 lines
1<?php
2/**
4 *
5 * PHP 5
6 *
6 *
7 * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
8 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
14 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
15 * @link          http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
16 * @package       Cake.Test.Case.Log.Engine
16 * @package       Cake.Test.Case.Log.Engine
17 * @since         CakePHP(tm) v 1.3
18 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
190	protected function _deleteLogs($dir) {
191		$files = array_merge(glob($dir . '*.log'), glob($dir . '*.log.*'));
192		foreach ($files as $file) {
FileLogTest.php https://github.com/kevindendievel/instruis.git | PHP | 194 lines
1<?php
2/**
4 *
5 * PHP 5
6 *
6 *
7 * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
8 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
14 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
15 * @link          http://book.cakephp.org/2.0/en/development/testing.html CakePHP(tm) Tests
16 * @package       Cake.Test.Case.Log.Engine
16 * @package       Cake.Test.Case.Log.Engine
17 * @since         CakePHP(tm) v 1.3
18 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
187	protected function _deleteLogs($dir) {
188		$files = array_merge(glob($dir . '*.log'), glob($dir . '*.log.*'));
189		foreach ($files as $file) {
sfUpgrade.class.php http://openirudi.googlecode.com/svn/trunk/ | PHP | 113 lines
1<?php
2
16 * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
17 * @version    SVN: $Id: sfUpgrade.class.php 17749 2009-04-29 11:54:22Z fabien $
18 */
46  /**
47   * Returns all project directories where you can put PHP classes.
48   */
62    return array_merge(
63      glob(sfConfig::get('sf_apps_dir').'/*/modules/*/templates'),
64      glob(sfConfig::get('sf_apps_dir').'/*/templates')
72  {
73    return glob(sfConfig::get('sf_apps_dir').'/*/modules/*/actions');
74  }
81    return array_merge(
82      glob(sfConfig::get('sf_apps_dir').'/*/modules/*/lib'),
83      glob(sfConfig::get('sf_apps_dir').'/*/lib'),
sfValidation.class.php http://openirudi.googlecode.com/svn/trunk/ | PHP | 117 lines
1<?php
2
16 * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
17 * @version    SVN: $Id: sfUpgrade.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
18 */
48  /**
49   * Returns all project directories where you can put PHP classes.
50   */
64    return array_merge(
65      glob(sfConfig::get('sf_apps_dir').'/*/modules/*/templates'),
66      glob(sfConfig::get('sf_apps_dir').'/*/templates')
74  {
75    return glob(sfConfig::get('sf_apps_dir').'/*/modules/*/actions');
76  }
85    return array_merge(
86      glob(sfConfig::get('sf_apps_dir').'/*/modules/*/lib'.$subdirectory),
87      glob(sfConfig::get('sf_apps_dir').'/*/lib'.$subdirectory),
sfUpgrade.class.php http://openirudi.googlecode.com/svn/trunk/ | PHP | 113 lines
1<?php
2
16 * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
17 * @version    SVN: $Id: sfUpgrade.class.php 8148 2008-03-29 07:58:59Z fabien $
18 */
46  /**
47   * Returns all project directories where you can put PHP classes.
48   */
62    return array_merge(
63      glob(sfConfig::get('sf_apps_dir').'/*/modules/*/templates'),
64      glob(sfConfig::get('sf_apps_dir').'/*/templates')
72  {
73    return glob(sfConfig::get('sf_apps_dir').'/*/modules/*/actions');
74  }
81    return array_merge(
82      glob(sfConfig::get('sf_apps_dir').'/*/modules/*/lib'),
83      glob(sfConfig::get('sf_apps_dir').'/*/lib'),
CLIController.php https://bitbucket.org/chamilo/chamilo/ | PHP | 465 lines
1<?php
2/**
38 *
39 * @category  PHP_CodeBrowser
40 * @package   PHP_CodeBrowser
43 * @copyright 2007-2010 Mayflower GmbH
44 * @license   http://www.opensource.org/licenses/bsd-license.php  BSD License
45 * @version   SVN: $Id$
45 * @version   SVN: $Id$
46 * @link      http://www.phpunit.de/
47 * @since     File available since  0.1.0
50
51if (!defined('PHPCB_ROOT_DIR')) {
52    define('PHPCB_ROOT_DIR', dirname(__FILE__) . '/');
382                                    . 'found by quality assurance tools like '
383                                    . 'PHPUnit or PHP_CodeSniffer.',
384                'version'     => (strpos('0.9.1', '@') === false)
lang_portal_acp.php http://prekladyphpbbcz.googlecode.com/svn/trunk/ | PHP | 306 lines
1<?php
2
7* @copyright (c) kevin / saint ( http://www.board3.de/ ), (c) Ice, (c) nickvergessen ( http://www.flying-bits.org/ ), (c) redbull254 ( http://www.digitalfotografie-foren.de )
8* @based on: phpBB3 Portal by Sevdin Filiz, www.phpbb3portal.com
9* @license http://opensource.org/licenses/gpl-license.php GNU Public License 
12
13if (!defined('IN_PHPBB'))
14{
88
89	// global announcements
90	'ACP_PORTAL_ANNOUNCE_INFO'					=> 'Globální oznámení',
90	'ACP_PORTAL_ANNOUNCE_INFO'					=> 'Globální oznámení',
91	'ACP_PORTAL_ANNOUNCE_SETTINGS'				=> 'Nastavení globálních oznámení',
92	'ACP_PORTAL_ANNOUNCE_SETTINGS_EXPLAIN'		=> 'Zde m?žete zm?nit nastavení Globálních oznámení a další specifická nastavení.',
102	'PORTAL_ANNOUNCEMENTS_LENGTH_EXPLAIN'		=> '0 znamená neomezený po?et',
103	'PORTAL_GLOBAL_ANNOUNCEMENTS_FORUM'			=> 'ID globálních oznámení fóra',
104	'PORTAL_GLOBAL_ANNOUNCEMENTS_FORUM_EXPLAIN'	=> 'Oznámení se berou z fóra, nechte prázdné pro všechna fóra, odd?lte ?árkou pro více fór, nap?. 1,2,5',
sfValidation.class.php https://bitbucket.org/hosseinzolfi/db-lab-spring-2011/ | PHP | 117 lines
1<?php
2
16 * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
17 * @version    SVN: $Id: sfValidation.class.php 24610 2009-11-30 22:07:34Z FabianLange $
18 */
48  /**
49   * Returns all project directories where you can put PHP classes.
50   */
64    return array_merge(
65      glob(sfConfig::get('sf_apps_dir').'/*/modules/*/templates'),
66      glob(sfConfig::get('sf_apps_dir').'/*/templates')
74  {
75    return glob(sfConfig::get('sf_apps_dir').'/*/modules/*/actions');
76  }
85    return array_merge(
86      glob(sfConfig::get('sf_apps_dir').'/*/modules/*/lib'.$subdirectory),
87      glob(sfConfig::get('sf_apps_dir').'/*/lib'.$subdirectory),
sfUpgrade.class.php http://piwam.googlecode.com/svn/trunk/ | PHP | 115 lines
1<?php
2
16 * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
17 * @version    SVN: $Id: sfUpgrade.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
18 */
46  /**
47   * Returns all project directories where you can put PHP classes.
48   */
62    return array_merge(
63      glob(sfConfig::get('sf_apps_dir').'/*/modules/*/templates'),
64      glob(sfConfig::get('sf_apps_dir').'/*/templates')
72  {
73    return glob(sfConfig::get('sf_apps_dir').'/*/modules/*/actions');
74  }
83    return array_merge(
84      glob(sfConfig::get('sf_apps_dir').'/*/modules/*/lib'.$subdirectory),
85      glob(sfConfig::get('sf_apps_dir').'/*/lib'.$subdirectory),
Theme.php git://github.com/vito/chyrp.git | PHP | 332 lines
1<?php
2    /**
199
200            $long  = (array) glob(THEME_DIR."/stylesheets/*");
201            $short = (array) glob(THEME_DIR."/css/*");
207
208                if (substr_count($file, ".inc.css") or (substr($file, -4) != ".css" and substr($file, -4) != ".php"))
209                    continue;
245                                 $config->chyrp_url."/includes/lib/gz.php?file=plugins.js",
246                                 $config->chyrp_url.'/includes/javascript.php?action='.$route->action.$args);
247            Trigger::current()->filter($javascripts, "scripts");
253            if (file_exists(THEME_DIR."/javascripts/") or file_exists(THEME_DIR."/js/")) {
254                $long  = (array) glob(THEME_DIR."/javascripts/*.js");
255                $short = (array) glob(THEME_DIR."/js/*.js");
260
261                $long  = (array) glob(THEME_DIR."/javascripts/*.php");
262                $short = (array) glob(THEME_DIR."/js/*.php");
run-tests.php git://git.savannah.nongnu.org/jpt.git | PHP | 2,043 lines
143	if (function_exists('is_executable') && !@is_executable($php)) {
144		error("invalid PHP executable specified by TEST_PHP_EXECUTABLE  = " . $php);
145	}
194{
195	global $cwd, $php, $php_cgi, $php_info, $user_tests, $ini_overwrites, $pass_options, $exts_to_test;
196
211	$php_info = `$php $pass_options $info_params "$info_file"`;
212	if ($php_cgi && $php != $php_cgi) {
213		$php_info_cgi = `$php_cgi $pass_options $info_params -q "$info_file"`;
214		$php_info_sep = "\n---------------------------------------------------------------------";
215		$php_cgi_info = "$php_info_sep\nPHP         : $php_cgi $php_info_cgi$php_info_sep";
216	} else {
241=====================================================================
242PHP         : $php $php_info $php_cgi_info
243CWD         : $cwd
wrappers.glob.html git://github.com/matsubo/matsu-shell-setting.git | HTML | 149 lines
11 <div class="up"><a href="wrappers.html">Supported Protocols and Wrappers</a></div>
12 <div class="home"><a href="index.html">PHP Manual</a></div>
13</div><hr /><div id="wrappers.glob" class="refentry">
15  <h1 class="refname">glob://</h1>
16  <p class="refpurpose"><span class="refname">glob://</span> &mdash; <span class="dc-title">Find pathnames matching pattern</span></p>
17
19
20 <div class="refsect1 description" id="refsect1-wrappers.glob-description">
21  <h3 class="title">Description</h3>
22  <p class="simpara">
23   The <var class="filename">glob:</var> stream wrapper is available since PHP 5.3.0.
24  </p>
119<div class="phpcode"><code><span style="color: #000000">
120<span style="color: #0000BB">&lt;?php<br /></span><span style="color: #FF8000">//&nbsp;Loop&nbsp;over&nbsp;all&nbsp;*.php&nbsp;files&nbsp;in&nbsp;ext/spl/examples/&nbsp;directory<br />//&nbsp;and&nbsp;print&nbsp;the&nbsp;filename&nbsp;and&nbsp;its&nbsp;size<br /></span><span style="color: #0000BB">$it&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #0000BB">DirectoryIterator</span><span style="color: #007700">(</span><span style="color: #DD0000">"glob://ext/spl/examples/*.php"</span><span style="color: #007700">);<br />foreach(</span><span style="color: #0000BB">$it&nbsp;</span><span style="color: #007700">as&nbsp;</span><span style="color: #0000BB">$f</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">printf</span><span style="color: #007700">(</span><span style="color: #DD0000">"%s:&nbsp;%.1FK\n"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$f</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getFilename</span><span style="color: #007700">(),&nbsp;</span><span style="color: #0000BB">$f</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getSize</span><span style="color: #007700">()/</span><span style="color: #0000BB">1024</span><span style="color: #007700">);<br />}<br /></span><span style="color: #0000BB">?&gt;</span>
121</span>
2007.php git://github.com/php/web-php.git | PHP | 677 lines
19  <span class="newsdate">[09-Nov-2007]</span>
20  <p>        The PHP development team would like to announce the immediate        <a href="/downloads.php#v5">availability of PHP 5.2.5</a>.        This release focuses on improving the stability of the PHP 5.2.x        branch with over 60 bug fixes, several of which are security related.        All users of PHP are encouraged to upgrade to this release.</p>
21
36  </ul>
37  <p>For users upgrading to PHP 5.2 from PHP 5.0 and PHP 5.1, an upgrade guide is available <a href="/migration52">here</a>, detailing the changes between those releases and PHP 5.2.5.</p>
38</div>
41<hr>
42<?php news_image("http://www.prophp.com.br/phpconference.php", "phpconfbrasil2007.png", "São Paulo 2007"); ?>
43<div class="newsItem">
249  to our <a href="/manual/en/migration5.php">migration guide</a>. There is
250  additional information available in the <a href="/manual/en/migration51.php">PHP 5.0 to PHP 5.1</a> and <a href="/manual/en/migration52.php">PHP 5.1 to PHP 5.2</a> migration guides as
251  well.
660<hr>
661<?php news_image("http://www.phparch.com/tek", "phptek2007.png", "php|tek 2007"); ?>
662<div class="newsItem">
run-tests.php git://github.com/jyr/MNPP.git | PHP | 2,493 lines
248{
249	global $cwd, $php, $php_cgi, $php_info, $user_tests, $ini_overwrites, $pass_options, $exts_to_test, $leak_check, $valgrind_header;
250
257ZEND_VERSION: " , zend_version() , "
258PHP_OS      : " , PHP_OS , " - " , php_uname() , "
259INI actual  : " , realpath(get_cfg_var("cfg_file_path")) , "
265	$php_info = `$php $pass_options $info_params "$info_file"`;
266	define('TESTED_PHP_VERSION', `$php -n -r "echo PHP_VERSION;"`);
267
270		$php_info_sep = "\n---------------------------------------------------------------------";
271		$php_cgi_info = "$php_info_sep\nPHP         : $php_cgi $php_info_cgi$php_info_sep";
272	} else {
300=====================================================================
301PHP         : $php $php_info $php_cgi_info
302CWD         : $cwd
run-tests.php git://pkgs.fedoraproject.org/nntpgrab | PHP | 2,768 lines
249{
250	global $cwd, $php, $php_cgi, $php_info, $user_tests, $ini_overwrites, $pass_options, $exts_to_test, $leak_check, $valgrind_header;
251
266	$php_info = `$php $pass_options $info_params "$info_file"`;
267	define('TESTED_PHP_VERSION', `$php -n -r "echo PHP_VERSION;"`);
268
271		$php_info_sep = "\n---------------------------------------------------------------------";
272		$php_cgi_info = "$php_info_sep\nPHP         : $php_cgi $php_info_cgi$php_info_sep";
273	} else {
301=====================================================================
302PHP         : $php $php_info $php_cgi_info
303CWD         : $cwd
1327				$old_php = $php;
1328				$php = realpath(dirname($php) . "/../../sapi/cgi/php-cgi") . ' -C ';
1329			} else if (file_exists("./sapi/cgi/php-cgi")) {
run-tests.php git://pkgs.fedoraproject.org/php | PHP | 2,787 lines
246{
247	global $cwd, $php, $php_cgi, $php_info, $user_tests, $ini_overwrites, $pass_options, $exts_to_test, $leak_check, $valgrind_header;
248
263	$php_info = `$php $pass_options $info_params "$info_file"`;
264	define('TESTED_PHP_VERSION', `$php -n -r "echo PHP_VERSION;"`);
265
268		$php_info_sep = "\n---------------------------------------------------------------------";
269		$php_cgi_info = "$php_info_sep\nPHP         : $php_cgi $php_info_cgi$php_info_sep";
270	} else {
298=====================================================================
299PHP         : $php $php_info $php_cgi_info
300CWD         : $cwd
1324				$old_php = $php;
1325				$php = realpath(dirname($php) . "/../../sapi/cgi/php-cgi") . ' -C ';
1326			} else if (file_exists("./sapi/cgi/php-cgi")) {
run-tests.php http://opensource.apple.com/release/ios-511/ | PHP | 2,009 lines
210ZEND_VERSION: &quot; . zend_version() . &quot;
211PHP_OS      : &quot; . PHP_OS . &quot; - &quot; . php_uname() . &quot;
212INI actual  : &quot; . realpath(get_cfg_var(&quot;cfg_file_path&quot;)) . &quot;
219	@unlink($info_file);
220	define('TESTED_PHP_VERSION', `$php -r &quot;echo PHP_VERSION;&quot;`);
221
242CWD         : $cwd
243PHP         : $php $php_info
244Extra dirs  : &quot;;
681define('PHP_QA_EMAIL', '<a href="mailto:qa-reports@lists.php.net">qa-reports@lists.php.net</a>');
682define('QA_SUBMISSION_PAGE', '<a href="http://qa.php.net/buildtest-process.php">http://qa.php.net/buildtest-process.php</a>');
683
1092				$old_php = $php;
1093				$php = realpath(dirname($php).&quot;/../../sapi/cgi/php-cgi&quot;) . ' -C ';
1094			} else if (file_exists(&quot;./sapi/cgi/php-cgi&quot;)) {
run-tests.php http://opensource.apple.com/release/ios-511/ | PHP | 2,066 lines
216{
217	global $cwd, $php, $php_cgi, $php_info, $user_tests, $ini_overwrites, $pass_options, $exts_to_test;
218
225ZEND_VERSION: &quot; . zend_version() . &quot;
226PHP_OS      : &quot; . PHP_OS . &quot; - &quot; . php_uname() . &quot;
227INI actual  : &quot; . realpath(get_cfg_var(&quot;cfg_file_path&quot;)) . &quot;
236		$php_info_sep = &quot;\n---------------------------------------------------------------------&quot;;
237		$php_cgi_info = &quot;$php_info_sep\nPHP         : $php_cgi $php_info_cgi$php_info_sep&quot;;
238	} else {
263=====================================================================
264PHP         : $php $php_info $php_cgi_info
265CWD         : $cwd
703define('PHP_QA_EMAIL', '<a href="mailto:qa-reports@lists.php.net">qa-reports@lists.php.net</a>');
704define('QA_SUBMISSION_PAGE', '<a href="http://qa.php.net/buildtest-process.php">http://qa.php.net/buildtest-process.php</a>');
705
run-tests.php http://opensource.apple.com/release/ios-511/ | PHP | 2,353 lines
238{
239	global $cwd, $php, $php_cgi, $php_info, $user_tests, $ini_overwrites, $pass_options, $exts_to_test, $leak_check, $valgrind_header;
240
260		$php_info_sep = &quot;\n---------------------------------------------------------------------&quot;;
261		$php_cgi_info = &quot;$php_info_sep\nPHP         : $php_cgi $php_info_cgi$php_info_sep&quot;;
262	} else {
290=====================================================================
291PHP         : $php $php_info $php_cgi_info
292CWD         : $cwd
303define('PHP_QA_EMAIL', '<a href="mailto:qa-reports@lists.php.net">qa-reports@lists.php.net</a>');
304define('QA_SUBMISSION_PAGE', '<a href="http://qa.php.net/buildtest-process.php">http://qa.php.net/buildtest-process.php</a>');
305
1280				$old_php = $php;
1281				$php = realpath(dirname($php) . &quot;/../../sapi/cgi/php-cgi&quot;) . ' -C ';
1282			} else if (file_exists(&quot;./sapi/cgi/php-cgi&quot;)) {
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21