PageRenderTime 347ms queryTime 32ms sortTime 20ms getByIdsTime 127ms findMatchingLines 107ms

100+ results results for 'php mkdir' (347 ms)

Not the results you expected?
UpgradeComponentGroup.php https://github.com/orchestra-io/sample-openx.git | PHP | 320 lines
                    
1<?php
                    
2
                    
24+---------------------------------------------------------------------------+
                    
25$Id: UpgradeComponentGroup.php 30820 2009-01-13 19:02:17Z andrew.hill $
                    
26*/
                    
34
                    
35require_once MAX_PATH.'/lib/OA/Upgrade/Upgrade.php';
                    
36
                    
60        /*$this->nobackupsFile    = MAX_PATH.$pluginPath.'NOBACKUPS';
                    
61        $this->postTaskFile     = MAX_PATH.$pluginPath.'TASKS.php';*/
                    
62
                    
65        {
                    
66            @mkdir(MAX_PATH.'/var/plugins/log');
                    
67        }
                    
                
MaildirFolderTest.php https://github.com/agelang/zf2.git | PHP | 444 lines
                    
1<?php
                    
2/**
                    
36 */
                    
37class MaildirFolderTest extends \PHPUnit_Framework_TestCase
                    
38{
                    
60            if (!file_exists($this->_tmpdir)) {
                    
61                mkdir($this->_tmpdir);
                    
62            }
                    
79            if ($dir != '.') {
                    
80                mkdir($this->_tmpdir . $dir);
                    
81            }
                    
85                }
                    
86                mkdir($this->_tmpdir . $dir . '/' . $subdir);
                    
87                $dh = opendir($this->_originalDir . $dir . '/' . $subdir);
                    
203        try {
                    
204            // explicit call of __toString() needed for PHP < 5.2
                    
205            $this->assertEquals($mail->getFolders()->subfolder->__toString(), 'subfolder');
                    
                
mkdist.php https://gitlab.com/0072016/appengine-php | PHP | 548 lines
                    
15
                    
16$dist_dir = $build_dir . "/php-" . phpversion();
                    
17$test_dir = $build_dir . "/php-test-pack-" . phpversion();
                    
238	"php.ini-development" => "php.ini-development",
                    
239	"php.ini-production" => "php.ini-production",
                    
240	"win32/install.txt" => "install.txt",
                    
240	"win32/install.txt" => "install.txt",
                    
241	"win32/pws-php5cgi.reg" => "pws-php5cgi.reg",
                    
242	"win32/pws-php5isapi.reg" => "pws-php5isapi.reg",
                    
461}
                    
462copy('run-tests.php', $test_dir . '/run-test.php');
                    
463
                    
495
                    
496	/* Now, we want PEAR.php, Getopt.php (Console_Getopt) and Tar.php (Archive_Tar)
                    
497	 * broken out of the tarballs */
                    
                
installv2.sh https://bitbucket.org/jorgenio/boca.git | Shell | 320 lines
                    
23
                    
24for i in id chown chmod cut awk tail grep cat sed mkdir rm mv sleep apt-get add-apt-repository update-alternatives; do
                    
25  p=`which $i`
                    
111apt-get -y install zenity apache2 eclipse-pde eclipse-rcp eclipse-platform eclipse-jdt eclipse emacs \
                    
112  evince g++ gcc gedit scite libstdc++6 makepasswd manpages-dev mii-diag php5-cli php5-mcrypt openjdk-6-dbg \
                    
113  php5 php5-pgsql postgresql postgresql-client postgresql-contrib quota sharutils default-jdk openjdk-6-doc \
                    
114  vim-gnome geany geany-plugin-addons geany-plugin-gdb geany-plugins default-jre sysstat \
                    
115  $sysvutils vim xfce4 $libCppdev $libCppdoc $libCppdbg php5-gd stl-manual gcc-doc debootstrap schroot c++-annotations
                    
116if [ $? != 0 ]; then
                    
178echo "=============================================================="
                    
179mkdir -p /etc/icpc
                    
180chown root.root /etc/icpc
                    
201rm -f /tmp/icpc.etc.tgz
                    
202wget -O /tmp/icpc.etc.tgz "http://www.ime.usp.br/~cassio/boca/download.php?filename=icpc-\$icpcver.etc.tgz"
                    
203if [ "\$?" != "0" -o ! -f /tmp/icpc.etc.tgz ]; then
                    
                
class-wp-image-editor.php https://gitlab.com/Gashler/dp | PHP | 403 lines
                    
1<?php
                    
2/**
                    
333			// The directory containing the original file may no longer exist when using a replication plugin. 
                    
334			wp_mkdir_p( dirname( $filename ) ); 
                    
335		}
                    
                
generateSitemap.php https://github.com/Seizam/seizamcore.git | PHP | 466 lines
                    
1<?php
                    
2/**
                    
28
                    
29require_once( dirname( __FILE__ ) . '/Maintenance.php' );
                    
30
                    
46	 *
                    
47	 * @link http://www.sitemaps.org/faq.php#faq_sitemap_size
                    
48	 *
                    
196		if ( $fspath && !is_dir( $fspath ) ) {
                    
197			wfMkdirParents( $fspath ) or die( "Can not create directory $fspath.\n" );
                    
198		}
                    
                
utils.php https://gitlab.com/elasa/shop2.elasa.ir | PHP | 313 lines
                    
1<?php
                    
2
                    
44    if(image_check_memory_usage($imgfile,$newwidth,$newheight)){
                    
45	require_once('php_image_magician.php');
                    
46	$magicianObj = new imageLib($imgfile);
                    
55    if(image_check_memory_usage($imgfile,$newwidth,$newheight)){
                    
56	require_once('php_image_magician.php');
                    
57	$magicianObj = new imageLib($imgfile);
                    
100    if ($path && !file_exists($path))
                    
101        mkdir($path, 0777, true); // or even 01777 so you get the sticky bit set
                    
102    if($path_thumbs && !file_exists($path_thumbs))
                    
102    if($path_thumbs && !file_exists($path_thumbs))
                    
103        mkdir($path_thumbs, 0777, true) or die("$path_thumbs cannot be found"); // or even 01777 so you get the sticky bit set
                    
104    umask($oldumask);
                    
                
wp-cache-phase1.php https://github.com/brandonburke/WordPress-Plugin-Baseline.git | PHP | 264 lines
                    
1<?php
                    
2// Pre-2.6 compatibility
                    
5
                    
6if( !include( WP_CONTENT_DIR . '/wp-cache-config.php' ) )
                    
7	return true;
                    
10
                    
11include( WPCACHEHOME . 'wp-cache-base.php');
                    
12
                    
26
                    
27require_once( WPCACHEHOME . 'wp-cache-phase2.php');
                    
28
                    
28
                    
29$plugins = glob( $wp_cache_plugins_dir . '/*.php' );
                    
30if( is_array( $plugins ) ) {
                    
48function gzip_accepted(){
                    
49	if( ini_get( 'zlib.output_compression' ) ) // don't compress WP-Cache data files when PHP is already doing it
                    
50		return false;
                    
                
Filesystem.php https://github.com/Martin1982/IBMessagingWorkshopServer.git | PHP | 362 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Filesystem.php 20096 2010-01-06 02:05:09Z bkarwin $
                    
21 */
                    
24/** Zend_Search_Lucene_Storage_Directory */
                    
25// require_once 'Zend/Search/Lucene/Storage/Directory.php';
                    
26
                    
92
                    
93    public static function mkdirs($dir, $mode = 0777, $recursive = true)
                    
94    {
                    
100        }
                    
101        if (self::mkdirs(dirname($dir), $mode, $recursive)) {
                    
102            return mkdir($dir, $mode);
                    
118            if (file_exists($path)) {
                    
119                // require_once 'Zend/Search/Lucene/Exception.php';
                    
120                throw new Zend_Search_Lucene_Exception('Path exists, but it\'s not a directory');
                    
                
all.php https://github.com/Yannix/ImprovedZipArchive.git | PHP | 271 lines
                    
1#!/usr/bin/env php
                    
2<?php
                    
5 * Requirements:
                    
6 * - PHP 5 with extensions: spl, zip, pcre, iconv, mbstring
                    
7 * - SimpleTest (not bundled)
                    
15
                    
16if (PHP_SAPI != 'cli') {
                    
17    die("It is a very bad idea to run these tests with a non CLI sapi.");
                    
19
                    
20if (strpos(PHP_OS, 'WIN') === 0) {
                    
21    set_include_path('C:/AMP/;.'); // To find external SimpleTest
                    
54
                    
55require_once('simpletest/unit_tester.php');
                    
56require_once('simpletest/reporter.php');
                    
56require_once('simpletest/reporter.php');
                    
57require_once('simpletest/simpletest/colortext_reporter.php');
                    
58
                    
                
Filesystem.php https://bitbucket.org/haichau59/manga.git | PHP | 363 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Filesystem.php 24594 2012-01-05 21:27:01Z matthew $
                    
21 */
                    
24/** Zend_Search_Lucene_Storage_Directory */
                    
25//require_once 'Zend/Search/Lucene/Storage/Directory.php';
                    
26
                    
92
                    
93    public static function mkdirs($dir, $mode = 0777, $recursive = true)
                    
94    {
                    
100        }
                    
101        if (self::mkdirs(dirname($dir), $mode, $recursive)) {
                    
102            return mkdir($dir, $mode);
                    
118            if (file_exists($path)) {
                    
119                //require_once 'Zend/Search/Lucene/Exception.php';
                    
120                throw new Zend_Search_Lucene_Exception('Path exists, but it\'s not a directory');
                    
                
elfinder.pt_BR.js https://bitbucket.org/zbahij/eprojets_app.git | JavaScript | 320 lines
                    
28			'errConf'              : 'Configuração inválida do backend.',
                    
29			'errJSON'              : 'Módulo PHP JSON não está instalado.',
                    
30			'errNoVolumes'         : 'Não existe nenhum volume legível disponivel.',
                    
47			'errPopup'             : 'Navegador impediu abertura da janela popup, Para abrir o arquivo desabilite está  opção no navegador.',
                    
48			'errMkdir'             : 'Incapaz de criar a pasta "$1".',
                    
49			'errMkfile'            : 'Incapaz de criar o arquivo "$1".',
                    
89			'cmdinfo'      : 'propriedades',
                    
90			'cmdmkdir'     : 'Nova pasta',
                    
91			'cmdmkfile'    : 'Novo arquivo de texto',
                    
118			'ntfreload'   : 'Recarregar conteudo da pasta',
                    
119			'ntfmkdir'    : 'Criar diretório',
                    
120			'ntfmkfile'   : 'Criar arquivos',
                    
269			'kindTextPlain'   : 'Texto simples',
                    
270			'kindPHP'         : 'PHP',
                    
271			'kindCSS'         : 'CSS',
                    
                
MaildirTest.php https://github.com/MontmereLimited/zf2.git | PHP | 444 lines
                    
1<?php
                    
2/**
                    
36 */
                    
37class MaildirTest extends \PHPUnit_Framework_TestCase
                    
38{
                    
58            if (!file_exists($this->_tmpdir)) {
                    
59                mkdir($this->_tmpdir);
                    
60            }
                    
75        foreach (array('cur', 'new') as $dir) {
                    
76            mkdir($this->_tmpdir . $dir);
                    
77            $dh = opendir($this->_originalMaildir . $dir);
                    
                
FilesystemTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 240 lines
                    
1<?php
                    
2
                    
120     */
                    
121    public function testRemoveDirectoryPhp()
                    
122    {
                    
123        $tmp = sys_get_temp_dir();
                    
124        @mkdir($tmp . "/composer_testdir/level1/level2", 0777, true);
                    
125        file_put_contents($tmp . "/composer_testdir/level1/level2/hello.txt", "hello world");
                    
127        $fs = new Filesystem;
                    
128        $this->assertTrue($fs->removeDirectoryPhp($tmp . "/composer_testdir"));
                    
129        $this->assertFalse(file_exists($tmp . "/composer_testdir/level1/level2/hello.txt"));
                    
143        $tmp = sys_get_temp_dir();
                    
144        @mkdir("$tmp/composer_testdir", 0777, true);
                    
145        file_put_contents("$tmp/composer_testdir/file1.txt", 'Hello');
                    
187        $symlinked = $basepath . "/linked";
                    
188        @mkdir($basepath . "/real", 0777, true);
                    
189        touch($basepath . "/real/FILE");
                    
                
Filesystem.php https://gitlab.com/techniconline/kmc | PHP | 426 lines
                    
1<?php namespace Illuminate\Filesystem;
                    
2
                    
326        if ($force) {
                    
327            return @mkdir($path, $mode, $recursive);
                    
328        }
                    
329
                    
330        return mkdir($path, $mode, $recursive);
                    
331    }
                    
                
upload.php https://gitlab.com/plusplusminus/isissoftware | PHP | 245 lines
                    
1<?php
                    
2
                    
7/**
                    
8 * upload.php
                    
9 *
                    
64		if ( ! is_dir( $target_dir ) ) {
                    
65			if ( ! wp_mkdir_p( $target_dir ) ) {
                    
66				GFCommon::log_debug( "GFAsyncUpload::upload(): Couldn't create the tmp folder: " . $target_dir );
                    
195				// Read binary input stream and append it to temp file
                    
196				$in = @fopen( 'php://input', 'rb' );
                    
197
                    
                
AdminApPageBuilderPositions.php https://gitlab.com/ptisky/API_prestashop | PHP | 398 lines
                    
1<?php
                    
2/**
                    
16
                    
17require_once(_PS_MODULE_DIR_.'appagebuilder/classes/ApPageBuilderPositionsModel.php');
                    
18
                    
99			if (!is_dir($this->theme_dir.'css/modules/'.$this->module_name))
                    
100				mkdir($this->theme_dir.'css/modules/'.$this->module_name, 0755);
                    
101			mkdir($this->position_css_folder, 0755);
                    
105			if (!is_dir($this->theme_dir.'js/modules/'.$this->module_name))
                    
106				mkdir($this->theme_dir.'js/modules/'.$this->module_name, 0755);
                    
107			mkdir($this->position_js_folder, 0755);
                    
                
Bug36845Test.php https://github.com/jacknicole/sugarcrm_dev.git | PHP | 222 lines
                    
49            $this->has_custom_unified_search_modules = true;
                    
50            copy('cache/modules/unified_search_modules.php', 'cache/modules/unified_search_modules.php.bak');
                    
51        }
                    
159        {
                    
160            copy('cache/modules/unified_search_modules.php.bak', 'cache/modules/unified_search_modules.php');
                    
161            unlink('cache/modules/unified_search_modules.php.bak');
                    
195        $this->assertTrue(!file_exists("{$this->module_dir}/metadata/SearchFields.php"), 'Assert that we have a SearchFields.php file');
                    
196        $this->assertTrue(file_exists("{$this->module_dir}/vardefs.php"), 'Assert that we have a vardefs.php file');
                    
197        require_once('modules/UpgradeWizard/uw_utils.php');
                    
201        $usa->buildCache();
                    
202        $this->assertTrue(file_exists("cache/modules/unified_search_modules.php"), 'Assert that we have a unified_search_modules.php file');
                    
203        include('cache/modules/unified_search_modules.php');
                    
219        $usa->saveGlobalSearchSettings();
                    
220        $this->assertTrue(file_exists('custom/modules/unified_search_modules_display.php'), 'Assert that unified_search_modules_display.php file was created');        
                    
221    }
                    
                
image.php https://gitlab.com/Blueprint-Marketing/interoccupy.net | PHP | 412 lines
                    
1<?php
                    
2/**
                    
51	// using a replication plugin.
                    
52	wp_mkdir_p( dirname( $dst_file ) );
                    
53
                    
402		// using a replication plugin.
                    
403		wp_mkdir_p( dirname( $dst_file ) );
                    
404
                    
                
ImageModule.php https://gitlab.com/RonLab1987/drovakirov | PHP | 400 lines
                    
1<?php
                    
2
                    
81        if (parent::getInstall()) {
                    
82            @mkdir($this->getUploadPath(), 0755);
                    
83        }
                    
                
io.php https://github.com/robertatakenaka/Regional-2.git | PHP | 295 lines
                    
1<?php
                    
2/*
                    
21 *
                    
22 * This is the File Manager Connector for PHP.
                    
23 */
                    
93
                    
94    // Ensure the folder path has no double-slashes, or mkdir may fail on certain platforms
                    
95    while ( strpos($folderPath, '//') !== false )
                    
117
                    
118        $php_errormsg = '' ;
                    
119        // Enable error tracking to catch the error.
                    
123        {
                    
124            mkdir( $folderPath ) ;
                    
125        }
                    
169    if ( $position === false || $position <> strlen( $sRealPath ) - strlen( $sSelfPath ) )
                    
170        SendError( 1, 'Sorry, can\'t map "UserFilesPath" to a physical path. You must set the "UserFilesAbsolutePath" value in "editor/filemanager/connectors/php/config.php".' ) ;
                    
171
                    
                
Hooks.php https://github.com/chaoskaizer/CVbot-community-update.git | PHP | 231 lines
                    
1<?php
                    
2$this->AddHook('before_harvest_crops', 'Wall');
                    
23
                    
24    include('Plugins/Wall/Wall_class.php');
                    
25    $DB = new LocalDB();
                    
71     //      $vFolder = "tmp_dir/GetGift/";
                    
72     //      if (!is_dir($vFolder)) { @mkdir($vFolder, 0777, true);  }
                    
73     //      // make file name.
                    
126          // buttons  Array  
                    
127          // href  String Reference  http://apps.facebook.com/cityville/neighbors.php?uid=20
                    
128          // text  String  Send collectables!
                    
201       $vFolder = 'tmp_dir/Wall/';
                    
202       if (!is_dir($vFolder)) { @mkdir($vFolder, 0777, true);  }
                    
203       // date
                    
                
AbstractFactory.php https://gitlab.com/yousafsyed/easternglamor | PHP | 342 lines
                    
1<?php
                    
2/**
                    
53    {
                    
54        $this->factoryContent = "<?php\n\n";
                    
55        $this->factoryContent .= "namespace Magento\Mtf\\{$type}; \n\n";
                    
93
                    
94        $file = MTF_BP . "/generated/Magento/Mtf/{$type}/{$type}FactoryDeprecated.php";
                    
95        if (false === file_put_contents($file, $this->factoryContent)) {
                    
115        }
                    
116        if (!is_dir($folder) && !$this->mkDir($folder, $mode)) {
                    
117            throw new \Exception("Unable to create directory '{$folder}'. Access forbidden.");
                    
129     */
                    
130    protected function mkDir($dir, $mode = 0777, $recursive = true)
                    
131    {
                    
131    {
                    
132        return @mkdir($dir, $mode, $recursive);
                    
133    }
                    
                
FileStore.php https://github.com/sunnysujan/wikireader.git | PHP | 360 lines
                    
1<?php
                    
2
                    
108				wfSuppressWarnings();
                    
109				$ok = wfMkdirParents( dirname( $destPath ) );
                    
110				wfRestoreWarnings();
                    
192
                    
193			require_once 'StreamFile.php';
                    
194			wfStreamFile( $path );
                    
                
Filesystem.php https://github.com/Enrise/Zend.git | PHP | 363 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Filesystem.php 24593 2012-01-05 20:35:02Z matthew $
                    
21 */
                    
24/** Zend_Search_Lucene_Storage_Directory */
                    
25// require_once 'Zend/Search/Lucene/Storage/Directory.php';
                    
26
                    
92
                    
93    public static function mkdirs($dir, $mode = 0777, $recursive = true)
                    
94    {
                    
100        }
                    
101        if (self::mkdirs(dirname($dir), $mode, $recursive)) {
                    
102            return mkdir($dir, $mode);
                    
118            if (file_exists($path)) {
                    
119                // require_once 'Zend/Search/Lucene/Exception.php';
                    
120                throw new Zend_Search_Lucene_Exception('Path exists, but it\'s not a directory');
                    
                
FileStorage.php https://github.com/vohnicky/treeview.git | PHP | 451 lines
                    
1<?php
                    
2
                    
6 * @copyright  Copyright (c) 2004, 2010 David Grudl
                    
7 * @license    http://nettephp.com/license  Nette license
                    
8 * @link       http://nettephp.com
                    
75			umask(0000);
                    
76			if (!@mkdir("$dir/$uniq", 0777)) { // intentionally @
                    
77				throw new InvalidStateException("Unable to write to directory '$dir'. Make this directory writable.");
                    
195			umask(0000);
                    
196			if (!mkdir($dir, 0777, TRUE)) {
                    
197				return;
                    
228		$head = serialize($meta) . '?>';
                    
229		$head = '<?php //netteCache[01]' . str_pad((string) strlen($head), 6, '0', STR_PAD_LEFT) . $head;
                    
230		$headLen = strlen($head);
                    
358			if (is_array($meta)) {
                    
359				fseek($handle, $size + self::META_HEADER_LEN); // needed by PHP < 5.2.6
                    
360				$meta[self::FILE] = $file;
                    
                
ProductController.php https://gitlab.com/techniconline/kmc | PHP | 341 lines
                    
1<?php
                    
2namespace App\Http\Controllers\backend;
                    
132                if (!file_exists($createFolder)) {
                    
133                    mkdir($createFolder, 0755);
                    
134                }
                    
294            if (!file_exists($createFolder)) {
                    
295                mkdir($createFolder, 0755);
                    
296            }
                    
                
cache.php https://github.com/weissms/owb-mirror.git | PHP | 429 lines
                    
1<?php
                    
2function wp_cache_add($key, $data, $flag = '', $expire = 0) {
                    
52
                    
53define('CACHE_SERIAL_HEADER', "<?php\n/*");
                    
54define('CACHE_SERIAL_FOOTER', "*/\n?".">");
                    
149
                    
150		$cache_file = $this->cache_dir.$this->get_group_dir($group)."/".$this->hash($id).'.php';
                    
151		if (!file_exists($cache_file)) {
                    
198			if (!file_exists($this->cache_dir.$make_dir)) {
                    
199				if (! @ mkdir($this->cache_dir.$make_dir))
                    
200					break;
                    
203
                    
204			if (!file_exists($this->cache_dir.$make_dir."index.php")) {
                    
205				$file_perms = $perms & 0000666;
                    
205				$file_perms = $perms & 0000666;
                    
206				@ touch($this->cache_dir.$make_dir."index.php");
                    
207				@ chmod($this->cache_dir.$make_dir."index.php", $file_perms);
                    
                
full-presentation-incomplete.html https://github.com/ajdyka/cfml-in-the-cloud.git | HTML | 331 lines
                    
97# create the new webroot
                    
98sudo mkdir /wwwroot
                    
99sudo chown ubuntu:ubuntu -R /wwwroot
                    
99sudo chown ubuntu:ubuntu -R /wwwroot
                    
100mkdir /wwwroot/apug.railo
                    
101mkdir /wwwroot/apug.railo/www
                    
134
                    
135	DirectoryIndex index.php index.html index.htm index.cfm
                    
136
                    
                
init.vim https://github.com/superbrothers/dotfiles.git | Vim Script | 380 lines
                    
4    echo 'Install vim-plug...'
                    
5    call system('mkdir -p ~/.vim/plugged/vim-plug')
                    
6    call system('git clone git://github.com/junegunn/vim-plug.git ~/.vim/plugged/vim-plug/autoload')
                    
237  \ rg --column --line-number --no-heading --fixed-strings --ignore-case --no-ignore --hidden --follow --color "always"
                    
238  \ -g "*.{js,json,php,md,styl,jade,html,config,py,cpp,c,go,hs,rb,conf}"
                    
239  \ -g "!{.git,node_modules,vendor}/*" '
                    
                
fs.js https://gitlab.com/TurnInternational/simon | JavaScript | 364 lines
                    
6 * Dual licensed under the MIT and GPL licenses:
                    
7 *   * http://www.opensource.org/licenses/mit-license.php
                    
8 *   * http://www.gnu.org/licenses/gpl.html
                    
36    tmpDir = os.tmpdir || os.tmpDir || function() { return '/tmp'; },
                    
37    makeDir = promisify(fs.mkdir),
                    
38    removeDir = promisify(fs.rmdir),
                    
                
README.md https://gitlab.com/Fair_lab/FNLSphinx | Markdown | 284 lines
                    
47 - has support for C/C++, but AFAIK that's it
                    
48 - there are usually other packages that help with that: Javadoc, PHPdoc
                    
492. [insert the usual debates about code documentation here]
                    
68cd ~ 
                    
69mkdir Sphinx
                    
70
                    
                
fileManager.php https://github.com/pheeque/jquery.fileManager.git | PHP | 235 lines
                    
1<?php
                    
2/*
                    
28*
                    
29* Advanced users may wish to write a separate php script to control the
                    
30* ajax features of the File Manager.  Including callbacks for deleting
                    
73
                    
74		if (!file_exists($path)) mkdir($path,octdec('0777'),true);
                    
75
                    
166		if (!file_exists($targetDir)) {
                    
167			mkdir($targetDir);
                    
168			chmod($targetDir,0777);
                    
217				// Read binary input stream and append it to temp file
                    
218				$in = fopen("php://input", "rb");
                    
219
                    
                
BakeView.php https://gitlab.com/BitCoding/bake | PHP | 273 lines
                    
1<?php
                    
2namespace Bake\View;
                    
22     *
                    
23     * phpTagReplacements are applied to the contents of a bake template, to allow php tags
                    
24     * to be treated as plain text
                    
31     *     Replace remaining <=% with php short echo tags
                    
32     *     Replace <% with php open tags
                    
33     *     Replace %> with php close tags
                    
37    protected $_defaultConfig = [
                    
38        'phpTagReplacements' => [
                    
39            '<?' => "<BitPHPBakeOpenTag",
                    
39            '<?' => "<BitPHPBakeOpenTag",
                    
40            '?>' => "BitPHPBakeCloseTag>"
                    
41        ],
                    
189
                    
190        $unPhp = $this->config('phpTagReplacements');
                    
191        return str_replace(array_values($unPhp), array_keys($unPhp), $content);
                    
                
Clover.php https://gitlab.com/pthapa81/MeroSaaman-1.0 | PHP | 290 lines
                    
1<?php
                    
2/*
                    
2/*
                    
3 * This file is part of the PHP_CodeCoverage package.
                    
4 *
                    
4 *
                    
5 * (c) Sebastian Bergmann <sebastian@phpunit.de>
                    
6 *
                    
11/**
                    
12 * Generates a Clover XML logfile from an PHP_CodeCoverage object.
                    
13 *
                    
13 *
                    
14 * @category   PHP
                    
15 * @package    CodeCoverage
                    
15 * @package    CodeCoverage
                    
16 * @author     Sebastian Bergmann <sebastian@phpunit.de>
                    
17 * @copyright  Sebastian Bergmann <sebastian@phpunit.de>
                    
                
elfinder.ko.js https://bitbucket.org/asikart-extension/joomclouds-client.git | JavaScript | 340 lines
                    
28			'errConf'              : 'Backend 환경설정이 올바르지 않습니다',
                    
29			'errJSON'              : 'PHP JSON 모듈이 설치되지 않았습니다',
                    
30			'errNoVolumes'         : '읽기 가능한 볼률이 없습니다',
                    
47			'errPopup'             : '브라우저에서 팝업을 차단하였습니다.팝업을 허용하려면 브라우저 옵션을 변경하세요',
                    
48			'errMkdir'             : ' "$1" 폴더를 생성할 수 없습니다',
                    
49			'errMkfile'            : ' "$1" 파일을 생성할 수 없습니다',
                    
89			'cmdinfo'      : '파일정보',
                    
90			'cmdmkdir'     : '새 폴더',
                    
91			'cmdmkfile'    : '새 텍스트파일',
                    
117			'ntfreload'   : '새로고침',
                    
118			'ntfmkdir'    : '폴더 생성',
                    
119			'ntfmkfile'   : '파일 생성',
                    
289			'kindTextPlain'   : '보통 텍스트',
                    
290			'kindPHP'         : 'PHP 소스',
                    
291			'kindCSS'         : 'CSS 문서',
                    
                
build_diff.php https://github.com/naderman/phpbb-orchestra.git | PHP | 415 lines
                    
127	$titles = array(
                    
128		'language'		=> 'phpBB ' . $substitute_old . ' to phpBB ' . $substitute_new . ' Language Pack Changes',
                    
129		'prosilver'		=> 'phpBB ' . $substitute_old . ' to phpBB ' . $substitute_new . ' prosilver Changes',
                    
129		'prosilver'		=> 'phpBB ' . $substitute_old . ' to phpBB ' . $substitute_new . ' prosilver Changes',
                    
130		'subsilver2'	=> 'phpBB ' . $substitute_old . ' to phpBB ' . $substitute_new . ' subsilver2 Changes',
                    
131	);
                    
136
                    
137These are the ' . $titles[$output_format] . ' summed up into a little Mod. These changes are only partial and do not include any code changes, therefore not meant for updating phpBB.
                    
138
                    
359	$html .= "## Title: " . $header['title'] . "\n";
                    
360	$html .= "## Author: naderman < naderman@phpbb.com > (Nils Adermann) http://www.phpbb.com \n";
                    
361	$html .= "## Description: \n";
                    
400		{
                    
401			$html .= "copy {$filename['phpbb_filename']} to {$filename['phpbb_filename']}\n";
                    
402		}
                    
                
content_provider.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 379 lines
                    
1<?php
                    
2
                    
55		if ( !file_exists ( $target ) && !$this->block_file_download ) {
                    
56			@mkdir ( $dir ) ;
                    
57			# dub sez... use cURL
                    
139		if ( $xmlg["useapi"] ) {
                    
140			$url = "http://" . $xmlg["site_base_url"] . "/api.php?format=php&action=query&prop=revisions&rvexpandtemplates=1&rvprop=timestamp|user|comment|content&titles=" . urlencode ( $title ) ;
                    
141			$data = @file_get_contents ( $url ) ;
                    
158		} else if ( $use_se ) {
                    
159			$url = "http://" . $xmlg["site_base_url"] . "/index.php?listauthors=1&title=Special:Export/" . urlencode ( $title ) ;
                    
160		} else {
                    
161			if ( $xmlg["use_toolserver_url"] ) {
                    
162#				$url = "http://" . $xmlg["site_base_url"] . "/index.php?action=raw&title=" . urlencode ( $title ) ;
                    
163				$u = urlencode ( $title ) ;
                    
164				$site = array_shift ( explode ( "/" , $xmlg["site_base_url"] ) ) ;
                    
165				$url = "http://tools.wikimedia.de/~daniel/WikiSense/WikiProxy.php?wiki={$site}&title={$u}&rev=0&go=Fetch" ;
                    
166			} else {
                    
                
sfDoctrineFormFilterGenerator.class.php https://github.com/mrwabu/urlcatcher.git | PHP | 366 lines
                    
91
                    
92      file_put_contents($baseDir.'/base/Base'.$model.'FormFilter.class.php', $this->evalTemplate(null === $this->getParentModel() ? 'sfDoctrineFormFilterGeneratedTemplate.php' : 'sfDoctrineFormFilterGeneratedInheritanceTemplate.php'));
                    
93
                    
111        } else {
                    
112           file_put_contents($classFile, $this->evalTemplate('sfDoctrineFormFilterTemplate.php'));
                    
113        }
                    
154   * @param  sfDoctrineColumn $column
                    
155   * @return string    The options to pass to the widget as a PHP string
                    
156   */
                    
329    $php = str_replace("\n", '', $php);
                    
330    $php = str_replace('array (  ', 'array(', $php);
                    
331    $php = str_replace(',)', ')', $php);
                    
331    $php = str_replace(',)', ')', $php);
                    
332    $php = str_replace('  ', ' ', $php);
                    
333    return $php;
                    
                
swift.php https://gitlab.com/Red54/core | PHP | 582 lines
                    
1<?php
                    
2/**
                    
133
                    
134	public function mkdir($path) {
                    
135		$path = $this->normalizePath($path);
                    
537		if (!$this->file_exists('.')) {
                    
538			$this->mkdir('.');
                    
539		}
                    
                
ExtensionManagementUtilityTest.php https://github.com/andreaswolf/TYPO3.CMS.git | PHP | 277 lines
                    
1<?php
                    
2namespace TYPO3\CMS\Core\Tests\Unit\Utility;
                    
59     * @param array $packageMethods
                    
60     * @return PackageManager|\PHPUnit_Framework_MockObject_MockObject
                    
61     */
                    
64        $packagePath = PATH_site . 'typo3temp/var/tests/' . $packageKey . '/';
                    
65        GeneralUtility::mkdir_deep($packagePath);
                    
66        $this->testFilesToDelete[] = $packagePath;
                    
118        $packageName = $this->getUniqueId('foo');
                    
119        /** @var PackageManager|\PHPUnit_Framework_MockObject_MockObject $packageManager */
                    
120        $packageManager = $this->getMockBuilder(PackageManager::class)
                    
139                ->getMock();
                    
140        /** @var PackageManager|\PHPUnit_Framework_MockObject_MockObject $packageManager */
                    
141        $packageManager = $this->getMockBuilder(PackageManager::class)
                    
209                ->will($this->returnValue($extensionKey));
                    
210        /** @var PackageManager|\PHPUnit_Framework_MockObject_MockObject $packageManager */
                    
211        $packageManager = $this->getMockBuilder(PackageManager::class)
                    
                
test.php https://github.com/activeingredient/ezComponents.git | PHP | 301 lines
                    
1<?php
                    
2/**
                    
246        $path = $tempDir . DIRECTORY_SEPARATOR . $value;
                    
247        mkdir( $path );
                    
248        chmod( $path, 0 );
                    
281        $path = $tempDir . DIRECTORY_SEPARATOR . $value;
                    
282        mkdir( $path );
                    
283        chmod( $path, 0444 );
                    
                
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     */
                    
                
index.php https://gitlab.com/Ltaimao/wecenter | PHP | 422 lines
                    
1<?php
                    
2/*
                    
14
                    
15require_once('../system/init.php');
                    
16
                    
18
                    
19if (file_exists(AWS_PATH . 'config/install.lock.php'))
                    
20{
                    
20{
                    
21	H::redirect_msg(load_class('core_lang')->_t('您的程序已经安装, 要重新安装请删除 system/config/install.lock.php'));
                    
22}
                    
33
                    
34		if (version_compare(PHP_VERSION, ENVIRONMENT_PHP_VERSION, '>=') AND get_cfg_var('safe_mode') == false)
                    
35		{
                    
35		{
                    
36			$system_require['php'] = TRUE;
                    
37		}
                    
                
Filesystem.php https://github.com/nathanlon/twical.git | PHP | 412 lines
                    
45
                    
46require_once 'PHPUnit/Util/Filter.php';
                    
47
                    
47
                    
48PHPUnit_Util_Filter::addFileToFilter(__FILE__, 'PHPUNIT');
                    
49
                    
126        foreach (self::collectEnd() as $blacklistedFile) {
                    
127            PHPUnit_Util_Filter::addFileToFilter($blacklistedFile, 'PHPUNIT');
                    
128        }
                    
315     * (
                    
316     *     [/home/sb/PHPUnit/Samples/Money/Money.php] => Array
                    
317     *         (
                    
320     *
                    
321     *     [/home/sb/PHPUnit/Samples/Money/MoneyBag.php] => Array
                    
322     *         (
                    
                
Migrator.php https://bitbucket.org/salimane/ruckusing-migrations.git | PHP | 324 lines
                    
1<?php
                    
2/**
                    
75        // We only want one row but we cannot assume that we are using MySQL and use a LIMIT statement
                    
76        // as it is not part of the SQL standard. Thus we have to select all rows and use PHP to return
                    
77        // the record we need
                    
217            printf("\n\tMigrations directory (%s doesn't exist, attempting to create.", $directory);
                    
218            if (mkdir($directory, 0755, true) === FALSE) {
                    
219                throw new Ruckusing_Exception(
                    
230            for ($i = 0; $i < $file_cnt; $i++) {
                    
231                if (preg_match('/^(\d+)_(.*)\.php$/', $files[$i], $matches)) {
                    
232                    if (count($matches) == 3) {
                    
247            $migration = $valid_files[$i];
                    
248            if (preg_match('/^(\d+)_(.*)\.php$/', $migration, $matches)) {
                    
249                $files[] = array(
                    
                
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	{
                    
80
                    
81		mkdir("data/TestSubdirectory", 0777);
                    
82		$result = OC_Helper::isSubDirectory("data/TestSubdirectory/", "data");
                    
                
Filesystem.php https://gitlab.com/Ltaimao/wecenter | PHP | 364 lines
                    
1<?php
                    
2/**
                    
24/** Zend_Search_Lucene_Storage_Directory */
                    
25//require_once 'Zend/Search/Lucene/Storage/Directory.php';
                    
26
                    
92
                    
93    public static function mkdirs($dir, $mode = 0775, $recursive = true)
                    
94    {
                    
102        }
                    
103        if (self::mkdirs(dirname($dir), $mode, $recursive)) {
                    
104            return mkdir($dir, $mode);
                    
120            if (file_exists($path)) {
                    
121                //require_once 'Zend/Search/Lucene/Exception.php';
                    
122                throw new Zend_Search_Lucene_Exception('Path exists, but it\'s not a directory');
                    
123            } else {
                    
124                if (!self::mkdirs($path)) {
                    
125                    //require_once 'Zend/Search/Lucene/Exception.php';
                    
                
mod_search.php https://github.com/kelios/imshop.git | PHP | 360 lines
                    
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
158            {
                    
159                if ($v == 'mod_search.php')
                    
160                {
                    
204            {
                    
205                if ( ! mkdir($tmp_folder.$name.'/'))
                    
206                {
                    
225                {
                    
226                    mkdir(APPPATH.'modules/'.$name);
                    
227                    chmod(APPPATH.'modules/'.$name, 0777);
                    
278                {
                    
279                    $this->ftp->mkdir($dest_folder);
                    
280                }
                    
                
Filesystem.php https://github.com/grjones/qframe.git | PHP | 362 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Filesystem.php 20096 2010-01-06 02:05:09Z bkarwin $
                    
21 */
                    
24/** Zend_Search_Lucene_Storage_Directory */
                    
25require_once 'Zend/Search/Lucene/Storage/Directory.php';
                    
26
                    
92
                    
93    public static function mkdirs($dir, $mode = 0777, $recursive = true)
                    
94    {
                    
100        }
                    
101        if (self::mkdirs(dirname($dir), $mode, $recursive)) {
                    
102            return mkdir($dir, $mode);
                    
118            if (file_exists($path)) {
                    
119                require_once 'Zend/Search/Lucene/Exception.php';
                    
120                throw new Zend_Search_Lucene_Exception('Path exists, but it\'s not a directory');
                    
                
control.php https://github.com/easysoft/zentaopms.git | PHP | 287 lines
                    
1<?php
                    
2/**
                    
8 * @package     install
                    
9 * @version     $Id: control.php 4297 2013-01-27 07:51:45Z wwccss $
                    
10 * @link        http://www.zentao.net
                    
65        $this->view->title          = $this->lang->install->checking;
                    
66        $this->view->phpVersion     = $this->install->getPhpVersion();
                    
67        $this->view->phpResult      = $this->install->checkPHP();
                    
162                        $sessionSavePath = $tmpRootInfo['path'] . 'session';
                    
163                        if(!is_dir($sessionSavePath)) mkdir($sessionSavePath, 0777, true);
                    
164
                    
251
                    
252            if(strpos($this->app->getClientLang(), 'zh') === 0) $this->loadModel('api')->createDemoData($this->lang->api->zentaoAPI, 'http://' . $_SERVER['HTTP_HOST'] . $this->app->config->webRoot . 'api.php/v1', '16.0');
                    
253            return print(js::locate(inlink('step6'), 'parent'));
                    
277    {
                    
278        $installFileDeleted = unlink($this->app->getAppRoot() . 'www/install.php');
                    
279        $this->view->installFileDeleted = $installFileDeleted;
                    
                
Filesystem.php https://gitlab.com/yousafsyed/easternglamor | PHP | 364 lines
                    
1<?php
                    
2/**
                    
24/** Zend_Search_Lucene_Storage_Directory */
                    
25#require_once 'Zend/Search/Lucene/Storage/Directory.php';
                    
26
                    
92
                    
93    public static function mkdirs($dir, $mode = 0775, $recursive = true)
                    
94    {
                    
102        }
                    
103        if (self::mkdirs(dirname($dir), $mode, $recursive)) {
                    
104            return mkdir($dir, $mode);
                    
120            if (file_exists($path)) {
                    
121                #require_once 'Zend/Search/Lucene/Exception.php';
                    
122                throw new Zend_Search_Lucene_Exception('Path exists, but it\'s not a directory');
                    
123            } else {
                    
124                if (!self::mkdirs($path)) {
                    
125                    #require_once 'Zend/Search/Lucene/Exception.php';
                    
                
CaptureCache.php https://gitlab.com/faisaliqbal/mytripsorter | PHP | 387 lines
                    
1<?php
                    
2/**
                    
31
                    
32            // http://php.net/manual/function.ob-start.php
                    
33            // -> If output_callback  returns FALSE original input is sent to the browser.
                    
299        if ($perm === false) {
                    
300            // build-in mkdir function is enough
                    
301
                    
302            $umask = ($umask !== false) ? umask($umask) : false;
                    
303            $res   = mkdir($pathname, ($perm !== false) ? $perm : 0775, true);
                    
304
                    
311                $err = ErrorHandler::stop();
                    
312                throw new Exception\RuntimeException("mkdir('{$pathname}', 0{$oct}, true) failed", 0, $err);
                    
313            }
                    
320        } else {
                    
321            // build-in mkdir function sets permission together with current umask
                    
322            // which doesn't work well on multo threaded webservers
                    
                
given.php https://gitlab.com/Blueprint-Marketing/wp-cli | PHP | 156 lines
                    
1<?php
                    
2
                    
22		$full_path = $world->variables['RUN_DIR'] . "/$path";
                    
23		Process::create( \WP_CLI\utils\esc_cmd( 'mkdir -p %s', dirname( $full_path ) ) )->run_check();
                    
24		file_put_contents( $full_path, $content );
                    
33
                    
34$steps->Given( '/^wp-config\.php$/',
                    
35	function ( $world ) {
                    
66	function( $world, $stream ) {
                    
67		$plugins = implode( ' ', array_map( 'trim', explode( PHP_EOL, (string)$stream ) ) );
                    
68		$world->proc( "wp plugin install $plugins --activate" )->run_check();
                    
73	function ( $world ) {
                    
74		$wp_config_path = $world->variables['RUN_DIR'] . "/wp-config.php";
                    
75
                    
146	function($world) {
                    
147		$wp_config_path = $world->variables['RUN_DIR'] . "/wp-config.php";
                    
148
                    
                
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);
                    
319
                    
320        return (boolean) ftp_mkdir($connection, $directory);
                    
321    }
                    
397    {
                    
398        $stream = fopen('php://temp', 'w+');
                    
399        $result = ftp_fget($this->getConnection(), $stream, $path, $this->transferMode);
                    
                
Printer.php https://gitlab.com/Sigpot/AirSpot | PHP | 172 lines
                    
4 *
                    
5 * (c) Sebastian Bergmann <sebastian@phpunit.de>
                    
6 *
                    
15 */
                    
16class PHPUnit_Util_Printer
                    
17{
                    
44     *
                    
45     * @throws PHPUnit_Framework_Exception
                    
46     */
                    
59                } else {
                    
60                    if (strpos($out, 'php://') === false &&
                    
61                        !is_dir(dirname($out))) {
                    
129        } else {
                    
130            if (PHP_SAPI != 'cli' && PHP_SAPI != 'phpdbg') {
                    
131                $buffer = htmlspecialchars($buffer);
                    
                
KLogger.php https://github.com/denheck/KLogger.git | PHP | 395 lines
                    
1<?php
                    
2
                    
98    /**
                    
99     * Valid PHP date() format string for log timestamps
                    
100     * @var string
                    
167        if (!file_exists($logDirectory)) {
                    
168            mkdir($logDirectory, self::$_defaultPermissions, true);
                    
169        }
                    
                
MaildirFolderTest.php https://github.com/bhaumik25/zend-framework.git | PHP | 438 lines
                    
12 */
                    
13require_once 'Zend/Mail/Storage/Folder/Maildir.php';
                    
14
                    
20/**
                    
21 * PHPUnit test case
                    
22 */
                    
22 */
                    
23require_once 'PHPUnit/Framework/TestCase.php';
                    
24
                    
54            if (!file_exists($this->_tmpdir)) {
                    
55                mkdir($this->_tmpdir);
                    
56            }
                    
79                }
                    
80                mkdir($this->_tmpdir . $dir . '/' . $subdir);
                    
81                $dh = opendir($this->_originalDir . $dir . '/' . $subdir);
                    
                
pmDownloadTest.php https://bitbucket.org/IshaDakota/programdb.git | PHP | 108 lines
                    
1<?php
                    
2
                    
7  public function testPmDownload() {
                    
8    $this->drush('pm-download', array('devel'), array('cache' => NULL, 'skip' => NULL)); // No FirePHP
                    
9    $this->assertFileExists(UNISH_SANDBOX . '/devel/README.txt');
                    
21      'cache' => NULL,
                    
22      'skip' => NULL, // No FirePHP
                    
23      'invoke' => NULL, // Invoke from script: do not verify options
                    
43    // gets created by --use-site-dir above,
                    
44    // mkdir("$path_stage/modules");
                    
45    $options = $devel_options;
                    
50    $destination = UNISH_SANDBOX . '/test-destination1';
                    
51    mkdir($destination);
                    
52    $options = array(
                    
59    $destination = 'test-destination2';
                    
60    mkdir(UNISH_SANDBOX . '/' . $destination);
                    
61    $options = array(
                    
                
Cache.php https://github.com/abirmmu/codeigniter-cache.git | PHP | 431 lines
                    
1<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
                    
2
                    
301			{
                    
302				// create non existing dirs, asumes PHP5
                    
303				if ( ! @mkdir($test_path, DIR_WRITE_MODE, TRUE)) return FALSE;
                    
429
                    
430/* End of file Cache.php */
                    
431/* Location: ./application/libraries/Cache.php */
                    
                
README.md https://github.com/mci/mpatlas.git | Markdown | 203 lines
                    
28
                    
29This library utilizes the `mkdir` strategy which works atomically on any kind of file system, even network based ones.
                    
30The lockfile path is based on the file path you are trying to lock by suffixing it with `.lock`.
                    
38
                    
39- It relies on `open` with `O_EXCL` flag which has problems in network file systems. `proper-lockfile` uses `mkdir` which doesn't have this issue.
                    
40
                    
202
                    
203Released under the [MIT License](http://www.opensource.org/licenses/mit-license.php).
                    
204
                    
                
UploadBehavior.php https://github.com/kiang/olc_baker.git | PHP | 243 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * This file is a part of UploadPack - a set of classes that makes file uploads in CakePHP as easy as possible.
                    
4 *
                    
93                if (!file_exists($destDir)) {
                    
94                    @mkdir($destDir, 0777, true);
                    
95                    @chmod($destDir, 0777);
                    
                
autotest.sh https://gitlab.com/wuhang2003/core | Shell | 339 lines
                    
56if ! [ -x "$PHPUNIT" ]; then
                    
57	echo "phpunit executable not found, please install phpunit version >= 3.7" >&2
                    
58	exit 3
                    
62if [[ "$PHPUNIT" =~ \.phar$ ]]; then
                    
63  PHPUNIT=( "$PHP" "$PHPUNIT" )
                    
64else
                    
71
                    
72if ! [ "$PHPUNIT_MAJOR_VERSION" -gt 4 -o \( "$PHPUNIT_MAJOR_VERSION" -eq 4 -a "$PHPUNIT_MINOR_VERSION" -ge 4 \) ]; then
                    
73	echo "phpunit version >= 4.4 required. Version found: $PHPUNIT_VERSION" >&2
                    
76
                    
77if ! [ \( -w config -a ! -f config/config.php \) -o \( -f config/config.php -a -w config/config.php \) ]; then
                    
78	echo "Please enable write permissions on config and config/config.php" >&2
                    
135	if [ -f config/config-autotest-backup.php ]; then
                    
136		mv config/config-autotest-backup.php config/config.php
                    
137	fi
                    
                
Filesystem.php https://bitbucket.org/babanesma/mysimpleadmin.git | PHP | 363 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Filesystem.php 23964 2011-05-03 14:20:58Z adamlundrigan $
                    
21 */
                    
24/** Zend_Search_Lucene_Storage_Directory */
                    
25require_once 'Zend/Search/Lucene/Storage/Directory.php';
                    
26
                    
92
                    
93    public static function mkdirs($dir, $mode = 0777, $recursive = true)
                    
94    {
                    
100        }
                    
101        if (self::mkdirs(dirname($dir), $mode, $recursive)) {
                    
102            return mkdir($dir, $mode);
                    
118            if (file_exists($path)) {
                    
119                require_once 'Zend/Search/Lucene/Exception.php';
                    
120                throw new Zend_Search_Lucene_Exception('Path exists, but it\'s not a directory');
                    
                
Printer.php https://gitlab.com/techniconline/kmc | PHP | 174 lines
                    
1<?php
                    
2/*
                    
2/*
                    
3 * This file is part of PHPUnit.
                    
4 *
                    
4 *
                    
5 * (c) Sebastian Bergmann <sebastian@phpunit.de>
                    
6 *
                    
15 */
                    
16class PHPUnit_Util_Printer
                    
17{
                    
44     *
                    
45     * @throws PHPUnit_Framework_Exception
                    
46     */
                    
54                    if (sizeof($out) != 2) {
                    
55                        throw new PHPUnit_Framework_Exception;
                    
56                    }
                    
                
Filesystem.php https://github.com/ParveenArora/AddressHunter.git | PHP | 362 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Filesystem.php 23775 2011-03-01 17:25:24Z ralph $
                    
21 */
                    
24/** Zend_Search_Lucene_Storage_Directory */
                    
25require_once 'Zend/Search/Lucene/Storage/Directory.php';
                    
26
                    
92
                    
93    public static function mkdirs($dir, $mode = 0777, $recursive = true)
                    
94    {
                    
100        }
                    
101        if (self::mkdirs(dirname($dir), $mode, $recursive)) {
                    
102            return mkdir($dir, $mode);
                    
118            if (file_exists($path)) {
                    
119                require_once 'Zend/Search/Lucene/Exception.php';
                    
120                throw new Zend_Search_Lucene_Exception('Path exists, but it\'s not a directory');
                    
                
Filesystem.php https://github.com/tedkulp/cmsmadesimple-2-0.git | PHP | 362 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Filesystem.php 18954 2009-11-12 20:01:33Z alexander $
                    
21 */
                    
24/** Zend_Search_Lucene_Storage_Directory */
                    
25require_once 'Zend/Search/Lucene/Storage/Directory.php';
                    
26
                    
92
                    
93    public static function mkdirs($dir, $mode = 0777, $recursive = true)
                    
94    {
                    
100        }
                    
101        if (self::mkdirs(dirname($dir), $mode, $recursive)) {
                    
102            return mkdir($dir, $mode);
                    
118            if (file_exists($path)) {
                    
119                require_once 'Zend/Search/Lucene/Exception.php';
                    
120                throw new Zend_Search_Lucene_Exception('Path exists, but it\'s not a directory');
                    
                
GenerateProxiesCommand.php https://bitbucket.org/iiic/iszp.git | PHP | 112 lines
                    
1<?php
                    
2/*
                    
79        if ( ! is_dir($destPath)) {
                    
80            mkdir($destPath, 0777, true);
                    
81        }
                    
97                $output->write(
                    
98                    sprintf('Processing entity "<info>%s</info>"', $metadata->name) . PHP_EOL
                    
99                );
                    
105            // Outputting information message
                    
106            $output->write(PHP_EOL . sprintf('Proxy classes generated to "<info>%s</INFO>"', $destPath) . PHP_EOL);
                    
107        } else {
                    
107        } else {
                    
108            $output->write('No Metadata Classes to process.' . PHP_EOL);
                    
109        }
                    
                
Cache.class.php https://bitbucket.org/snail/mrpmvc.git | PHP | 187 lines
                    
1<?php
                    
2/**
                    
16    private $cache_file_suffix;
                    
17    public function __construct($dir,$cache_file_suffix = '.php'){
                    
18        $this->cache_dir = isset($dir)?$dir:dirname(__FILE__).DIRECTORY_SEPARATOR.'default_cache_data';
                    
118        try {
                    
119           mkdir($dir,0777);
                    
120           }catch (Exception $e) {
                    
                
Log.php https://gitlab.com/betanurlaila/UI_onlineshop | PHP | 247 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP
                    
6 *
                    
119		$this->_file_ext = (isset($config['log_file_extension']) && $config['log_file_extension'] !== '')
                    
120			? ltrim($config['log_file_extension'], '.') : 'php';
                    
121
                    
121
                    
122		file_exists($this->_log_path) OR mkdir($this->_log_path, 0755, TRUE);
                    
123
                    
181			$newfile = TRUE;
                    
182			// Only add protection to php files
                    
183			if ($this->_file_ext === 'php')
                    
184			{
                    
185				$message .= "<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>\n\n";
                    
186			}
                    
                
io.php https://bitbucket.org/frchico/chamilo_openshift.git | PHP | 342 lines
                    
1<?php
                    
2/*
                    
21 *
                    
22 * This is the File Manager Connector for PHP.
                    
23
                    
94
                    
95	// Ensure the folder path has no double-slashes, or mkdir may fail on certain platforms
                    
96	while ( strpos($folderPath, '//') !== false )
                    
118
                    
119		$php_errormsg = '' ;
                    
120		// Enable error tracking to catch the error.
                    
194	if ( $position === false || $position <> strlen( $sRealPath ) - strlen( $sSelfPath ) )
                    
195		SendError( 1, 'Sorry, can\'t map "UserFilesPath" to a physical path. You must set the "UserFilesAbsolutePath" value in "editor/filemanager/connectors/php/config.php".' ) ;
                    
196
                    
315
                    
316	$sNewFileName = php2phps( $sNewFileName ) ;
                    
317
                    
                
file.php https://bitbucket.org/ferOnti/processmaker.git | PHP | 339 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * $Header: /repository/pear/Log/Log/file.php,v 1.46 2006/12/07 04:15:02 jon Exp $
                    
4 *
                    
12 * 
                    
13 * @author  Jon Parise <jon@php.net>
                    
14 * @author  Roman Neuhauser <neuhauser@bellavista.cz>
                    
17 *
                    
18 * @example file.php    Using the file handler.
                    
19 */
                    
26     */
                    
27    var $_filename = 'php.log';
                    
28
                    
142        } else {
                    
143            $this->_eol = (strstr(PHP_OS, 'WIN')) ? "\r\n" : "\n";
                    
144        }
                    
                
t_xsd_generator.cc https://gitlab.com/sudarsunkannan/mapkeeper | C++ | 359 lines
                    
85  /**
                    
86   * Output xsd/php file
                    
87   */
                    
88  std::ofstream f_xsd_;
                    
89  std::ofstream f_php_;
                    
90
                    
100  // Make output directory
                    
101  MKDIR(get_out_dir().c_str());
                    
102
                    
103  // Make output file
                    
104  string f_php_name = get_out_dir()+program_->get_name()+"_xsd.php";
                    
105  f_php_.open(f_php_name.c_str());
                    
106
                    
107  f_php_ <<
                    
108    "<?php" << endl;
                    
                
ck-gallery.php https://github.com/UberGallery/ck-gallery.git | PHP | 277 lines
                    
1<?php // CK-Gallery by Chris Kankiewicz <http://www.chriskankiewicz.com>
                    
2
                    
14
                    
15  // *** DO NOT EDIT ANYTHING BELOW HERE UNLESS YOU ARE A PHP NINJA ***
                    
16
                    
26  if (!file_exists($cacheDir)) {
                    
27    mkdir($cacheDir);
                    
28  }
                    
48    if (!file_exists($galleryDir)) {
                    
49      mkdir($galleryDir);
                    
50      fwrite($log,date("Y-m-d")." @ ".date("H:i:s")."  CREATED: $galleryDir\r\n");
                    
54    if (!file_exists($thumbsDir)) {
                    
55      mkdir($thumbsDir);
                    
56      fwrite($log,date("Y-m-d")." @ ".date("H:i:s")."  CREATED: $thumbsDir\r\n");
                    
166    if ($imgPerPage > 0 && $imgPerPage < $totalImages) {
                    
167      $pageName = basename($_SERVER["PHP_SELF"]); // Get current page file name
                    
168      echo("    <ul id=\"ck-pagination\" style=\"margin: 0 !important; padding: 0 !important;\">\r\n");
                    
                
mf_install.php https://github.com/leocaseiro/Magic-Fields-2.git | PHP | 212 lines
                    
1<?php 
                    
2/** 
                    
9    
                    
10    require_once(ABSPATH.'wp-admin/includes/upgrade.php');
                    
11
                    
119
                    
120    wp_mkdir_p(MF_FILES_DIR);
                    
121    wp_mkdir_p(MF_CACHE_DIR);
                    
203    $current = get_option('active_plugins');
                    
204    $plugin = plugin_basename(MF_PATH.'/main.php');
                    
205    array_splice($current, array_search( $plugin, $current), 1 );
                    
208
                    
209    wp_redirect('options-general.php');
                    
210  }
                    
                
Directory.php https://bitbucket.org/freshflow/sabredav-1.8.5-fork.git | PHP | 159 lines
                    
1<?php
                    
2
                    
61        $newPath = $this->path . '/' . $name;
                    
62        mkdir($newPath);
                    
63
                    
                
README.md https://github.com/mlubinsky/mlubinsky.github.com.git | Markdown | 509 lines
                    
55 ### csv plugin
                    
56 https://www.vim.org/scripts/script.php?script_id=2830
                    
57 
                    
64```
                    
65 mkdir -p ~/.vim/pack/my-plugins/start
                    
66 git clone https://github.com/chrisbra/csv.vim ~/.vim/pack/dist/start/csv
                    
115
                    
116https://artofproblemsolving.com/wiki/index.php/LaTeX:LaTeX_on_AoPS
                    
117
                    
340```
                    
341  mkdir -p ~/.vim/pack/michael/start
                    
342  cd ~/.vim/pack/michael/start
                    
                
create_example.php https://bitbucket.org/helfreire/tccsite.git | PHP | 171 lines
                    
1#!/usr/bin/env php
                    
2<?php
                    
6 *
                    
7 *     $ bin/create_example.php my_new_example
                    
8 *
                    
12 *     my_new_example/my_new_example.txt
                    
13 *     my_new_example/MyNewExample.php
                    
14 */
                    
97 * creates the directory for the example
                    
98 * the script die()'s if mkdir() fails
                    
99 *
                    
104function createDirectory($directory) {
                    
105    if(!@mkdir(buildPath($directory))) {
                    
106        die("FAILED to create directory\n");
                    
138 * examples/some_thing/some_thing.txt
                    
139 * examples/some_thing/SomeThing.php
                    
140 *
                    
                
Installer.php https://gitlab.com/asun89/socianovation-web | PHP | 370 lines
                    
1<?php
                    
2namespace Grav\Common\GPM;
                    
87
                    
88        Folder::mkdir($tmp);
                    
89
                    
135                foreach ((array) $package_yaml['install']['pre_install']['create'] as $file) {
                    
136                    Folder::mkdir($install_path . '/' . ltrim($file, '/'));
                    
137                }
                    
289        if (
                    
290            !file_exists($target . DS . 'index.php') ||
                    
291            !file_exists($target . DS . 'bin') ||
                    
                
PortalManager.php https://gitlab.com/Skull3x/SimpleSkyWars | PHP | 129 lines
                    
1<?php
                    
2
                    
29		if (! file_exists ( $path )) {
                    
30			@mkdir ( $this->pgin->getDataFolder () );
                    
31			@mkdir ( $path );
                    
                
ArenaPlayerLocation.php https://gitlab.com/Skull3x/SimpleSkyWars | PHP | 128 lines
                    
1<?php
                    
2
                    
30		if (! file_exists ( $path )) {
                    
31			// @mkdir ($this->pgin->getDataFolder());
                    
32			@mkdir ( $path );
                    
69		if (! file_exists ( $path )) {
                    
70			@mkdir ( $this->pgin->getDataFolder () );
                    
71			@mkdir ( $path );
                    
                
qrmask.php https://bitbucket.org/Sinfin/pawtucket.git | PHP | 328 lines
                    
1<?php
                    
2/*
                    
2/*
                    
3 * PHP QR Code encoder
                    
4 *
                    
9 *
                    
10 * PHP QR Code is distributed under LGPL 3
                    
11 * Copyright (C) 2010 Dominik Dzienia <deltalab at poczta dot fm>
                    
153                    if (!file_exists(QR_CACHE_DIR.'mask_'.$maskNo))
                    
154                        mkdir(QR_CACHE_DIR.'mask_'.$maskNo);
                    
155                    file_put_contents($fileName, self::serial($bitMask));
                    
286        {
                    
287            $minDemerit = PHP_INT_MAX;
                    
288            $bestMaskNum = 0;
                    
                
FileSystem.php https://gitlab.com/tekoestudio/capacitacion-tipsy | PHP | 157 lines
                    
1<?php
                    
2
                    
26	{
                    
27		if (!is_dir($dir) && !@mkdir($dir, $mode, TRUE) && !is_dir($dir)) { // @ - dir may already exist
                    
28			throw new Nette\IOException("Unable to create directory '$dir'. " . error_get_last()['message']);
                    
                
FileLockRegion.php https://gitlab.com/mario.uriarte/doctrine2.5-tutorial | PHP | 265 lines
                    
1<?php
                    
2
                    
63    {
                    
64        if ( ! is_dir($directory) && ! @mkdir($directory, 0775, true)) {
                    
65            throw new \InvalidArgumentException(sprintf('The directory "%s" does not exist and could not be created.', $directory));
                    
                
init.php https://github.com/kronda/kronda.git | PHP | 279 lines
                    
1<?php
                    
2
                    
2
                    
3// DO NOT CALL THIS CLASS DIRECTLY. CALL VIA: pb_backupbuddy_destination in bootstrap.php.
                    
4
                    
8		'name'			=>		'sFTP',
                    
9		'description'	=>		'Secure File Transport Protocol (over SSH) is a more secure way of sending files between servers than FTP by using SSH. Web hosting accounts are more frequently providing this feature for greater security. This implementation is fully in PHP so PHP memory limits may be a limiting factor on some servers.',
                    
10	);
                    
26		
                    
27		//die( get_include_path() . PATH_SEPARATOR . 'phpseclib' );
                    
28		set_include_path(get_include_path() . PATH_SEPARATOR . pb_backupbuddy::plugin_path() . '/destinations/sftp/lib/phpseclib');
                    
28		set_include_path(get_include_path() . PATH_SEPARATOR . pb_backupbuddy::plugin_path() . '/destinations/sftp/lib/phpseclib');
                    
29		require_once( pb_backupbuddy::plugin_path() . '/destinations/sftp/lib/phpseclib/Net/SFTP.php' );
                    
30		
                    
68		pb_backupbuddy::status( 'details', 'Attempting to create path (if it does not exist)...' );
                    
69		if ( true === $sftp->mkdir( $settings['path'] ) ) { // Try to make directory.
                    
70			pb_backupbuddy::status( 'details', 'Directory created.' );
                    
                
mkdist.php https://github.com/Doap/php-src.git | PHP | 547 lines
                    
15
                    
16$dist_dir = $build_dir . "/php-" . phpversion();
                    
17$test_dir = $build_dir . "/php-test-pack-" . phpversion();
                    
241	"win32/pws-php5cgi.reg" => "pws-php5cgi.reg",
                    
242	"win32/pws-php5isapi.reg" => "pws-php5isapi.reg",
                    
243);
                    
250$general_files = array(
                    
251	"php.gif"			=>	"php.gif",
                    
252);
                    
473	echo "Downloading go-pear\n";
                    
474	copy("http://pear.php.net/go-pear", "$dist_dir/PEAR/go-pear.php");
                    
475
                    
494
                    
495	/* Now, we want PEAR.php, Getopt.php (Console_Getopt) and Tar.php (Archive_Tar)
                    
496	 * broken out of the tarballs */
                    
                
elFinderSupportVer1.js https://gitlab.com/wormen/client.mastodont-engine | JavaScript | 336 lines
                    
96				
                    
97			case 'mkdir':
                    
98			case 'mkfile':
                    
139	// 	'Access denied'                                    : 'Access denied.',
                    
140	// 	'PHP JSON module not installed'                    : 'PHP JSON module not installed.',
                    
141	// 	'File not found'                                   : 'File not found.',
                    
                
git.md https://bitbucket.org/seyar/kinda.local.git | Markdown | 129 lines
                    
34
                    
35    mkdir -p application/classes/{controller,model}
                    
36    mkdir -p application/{config,views}
                    
36    mkdir -p application/{config,views}
                    
37    mkdir -m 0777 -p application/{cache,logs}
                    
38
                    
55
                    
56Now we need the `index.php` and `bootstrap.php` files:
                    
57
                    
58    wget http://github.com/kohana/kohana/raw/master/index.php
                    
59    wget http://github.com/kohana/kohana/raw/master/application/bootstrap.php -O application/bootstrap.php
                    
60
                    
                
shopexport.php https://bitbucket.org/seyar/kinda.local.git | PHP | 141 lines
                    
1<?php
                    
2
                    
7 * Project:     microshop.local
                    
8 * File:        shopexport.php * 
                    
9 *
                    
130        if( !file_exists($this->fileFolderUrl) )
                    
131            mkdir( $this->fileFolderUrl, 0755, TRUE );
                    
132        
                    
                
builtins_file.idl.php https://github.com/Tener/pfff.git | PHP | 99 lines
                    
1<?php
                    
2// THIS IS AUTOGENERATED BY builtins_php.ml
                    
87function disk_total_space($directory) { }
                    
88function mkdir($pathname, $mode = 0777, $recursive = false, $context = null) { }
                    
89function rmdir($dirname, $context = null) { }
                    
                
MaildirMessageOldTest.php https://bitbucket.org/Dal-Papa/is-340-publish-base.git | PHP | 192 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: MaildirMessageOldTest.php 24593 2012-01-05 20:35:02Z matthew $
                    
21 */
                    
25 */
                    
26require_once 'Zend/Mail/Storage/Maildir.php';
                    
27
                    
30 */
                    
31require_once 'Zend/Config.php';
                    
32
                    
58 */
                    
59class Zend_Mail_MaildirMessageOldTest extends PHPUnit_Framework_TestCase
                    
60{
                    
80            if (!file_exists($this->_tmpdir)) {
                    
81                mkdir($this->_tmpdir);
                    
82            }
                    
                
README.markdown https://gitlab.com/wwitzel3/vim-config | Markdown | 252 lines
                    
42LLVM intermediate language, Lua, MATLAB, NASM, Objective-C, Objective-C++,
                    
43OCaml, Perl, Perl POD, PHP, gettext Portable Object, Puppet, Python, Racket,
                    
44reStructuredText, Ruby, Rust, SASS/SCSS, Scala, Slim, Tcl, TeX, Texinfo, Twig,
                    
77```sh
                    
78mkdir -p ~/.vim/autoload ~/.vim/bundle; \
                    
79curl -so ~/.vim/autoload/pathogen.vim \
                    
183
                    
184Some filetypes, like PHP, have style checkers as well as syntax checkers. These
                    
185can be chained together like this:
                    
186```vim
                    
187let g:syntastic_php_checkers = ['php', 'phpcs', 'phpmd']
                    
188```
                    
190This is telling syntastic to run the `php` checker first, and if no errors are
                    
191found, run `phpcs`, and then `phpmd`.
                    
192
                    
                
Rakefile https://gitlab.com/pwgd/false-start-pwgd | Rakefile | 133 lines
                    
10PROFILE = "pwgd"
                    
11SETTINGS_SOURCE_REL = "provisioning/settings.#{ENV['ENVIRONMENT']}.php"
                    
12SETTINGS_TARGET_REL = "#{DEFAULT_DIR}/settings.local.php"
                    
85  rm_r BUILD_DIR
                    
86  mkdir_p BUILD_DIR
                    
87  sh "git archive HEAD | tar -x -C #{BUILD_DIR}"
                    
129  task :performance => [:vendor] do
                    
130    sh "./vendor/bin/phpunit --bootstrap ./vendor/autoload.php --log-junit reports/performance.xml tests/"
                    
131  end
                    
                
ExtendedFileStream.php https://gitlab.com/Isaki/le331.fr | PHP | 194 lines
                    
1<?php
                    
2
                    
2
                    
3include_once 'phing/system/io/PhingFile.php';
                    
4
                    
27 *
                    
28 * @author Michiel Rook <mrook@php.net>
                    
29 * @version $Id: 9f3deadd6a2b93620d27fe8959f9f688b4c58171 $
                    
54        if (!$f->exists()) {
                    
55            $f->mkdirs();
                    
56        }
                    
177     */
                    
178    public function mkdir($path, $mode, $options)
                    
179    {
                    
                
Makefile https://bitbucket.org/ZhangJingGuo/opencollada.git | Makefile | 121 lines
                    
12#    for details please see LICENSE file or the website
                    
13#    http://www.opensource.org/licenses/mit-license.php
                    
14###############################################################################
                    
69
                    
70mkdirs:
                    
71	mkdir -p $(OBJ_DIR_OPENCOLLADA)
                    
71	mkdir -p $(OBJ_DIR_OPENCOLLADA)
                    
72	mkdir -p $(OBJ_DIR_2008)
                    
73	mkdir -p $(BIN_DIR_2008)
                    
73	mkdir -p $(BIN_DIR_2008)
                    
74	mkdir -p $(OBJ_DIR_2009)
                    
75	mkdir -p $(BIN_DIR_2009)
                    
79
                    
80openCOLLADA: mkdirs
                    
81	# build UTF
                    
                
mv.php https://github.com/samphippen/srobo-ide.git | PHP | 117 lines
                    
1<?php
                    
2
                    
52	}
                    
53	mkdir_full("$repopath/$subDir");
                    
54	$input->setInput('path', $subDir);
                    
                
File.php https://bitbucket.org/ke2083/transfans.co.uk-website.git | PHP | 138 lines
                    
1<?php
                    
2
                    
110        if (!is_dir($directory)) {
                    
111            if (false === @mkdir($directory, 0777, true) && !is_dir($directory)) {
                    
112                throw new FileException(sprintf('Unable to create the "%s" directory', $directory));
                    
                
class-wp-filesystem-ftpsockets.php https://github.com/MikeLockz/lockwitz.git | PHP | 327 lines
                    
1<?php
                    
2/**
                    
26		//Check if possible to use ftp functions.
                    
27		if ( ! @include_once ABSPATH . 'wp-admin/includes/class-ftp.php' )
                    
28				return false;
                    
268
                    
269	function mkdir($path, $chmod = false, $chown = false, $chgrp = false ) {
                    
270		if ( ! $this->ftp->mkdir($path) )
                    
                
TemplateRange.php https://github.com/jacknicole/sugarcrm_dev.git | PHP | 293 lines
                    
1<?php
                    
2if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
                    
72				$module = $_REQUEST['view_module'];
                    
73                if (file_exists('modules/'.$module.'/metadata/SearchFields.php')) 
                    
74                {
                    
74                {
                    
75                	require('modules/'.$module.'/metadata/SearchFields.php');
                    
76                }
                    
77                
                    
78			    if(file_exists('custom/modules/'.$module.'/metadata/SearchFields.php'))
                    
79			    {
                    
79			    {
                    
80                    require('custom/modules/'.$module.'/metadata/SearchFields.php');
                    
81			    }                
                    
111                	
                    
112                	if(!file_exists('custom/modules/'.$module.'/metadata/SearchFields.php'))
                    
113                	{
                    
                
FileWriter.php https://gitlab.com/campus-academy/krowkaramel | PHP | 341 lines
                    
1<?php
                    
2/**
                    
154        if( $parent && ! $parent->exists() ){
                    
155            $this->mkdir($parent);
                    
156        }
                    
229            if( ! $dir->exists() ){
                    
230                $this->mkdir($dir);
                    
231            }
                    
267     */
                    
268     public function mkdir( Loco_fs_File $here = null ) {
                    
269        if( is_null($here) ){
                    
283                foreach( $stack as $path ){
                    
284                    if( ! $fs->mkdir($path,$mode) ){
                    
285                        Loco_error_AdminNotices::debug( sprintf('mkdir(%s,%03o) failed via "%s" method;',var_export($path,1),$mode,$fs->method) );
                    
317        // Deny list of executable file extensions, noting that specific actions may limit this further.
                    
318        // Note that this ignores the base file name, so "php.pot" would be permitted, but "foo.php.pot" would not.
                    
319        $exts = array_slice( explode('.', $this->file->basename() ), 1 );
                    
                
Ftp.php https://bitbucket.org/ajalovec/gaufrette.git | PHP | 474 lines
                    
1<?php
                    
2
                    
55
                    
56        $temp = fopen('php://temp', 'r+');
                    
57
                    
80
                    
81        $temp = fopen('php://temp', 'r+');
                    
82        $size = fwrite($temp, $content);
                    
283        // create the specified directory
                    
284        $created = ftp_mkdir($this->getConnection(), $directory);
                    
285        if (false === $created) {
                    
                
service-bus-amqp-apache.md https://gitlab.com/yeah568/azure-content | Markdown | 119 lines
                    
21
                    
22This section shows how to create a CentOS Linux VM using Azure Virtual Machines and how to download, build and install the Apache Qpid Proton-C library along with the Python and PHP language bindings. After completing these steps, you will be able to run the Python and PHP samples included with this guide.
                    
23
                    
39
                    
40For the Python and PHP apps, this example uses the Proton client libraries from Apache. These libraries are available for download from [http://qpid.apache.org/download.html](http://qpid.apache.org/download.html). The Readme file in the distribution package explains the steps required to install the dependencies and build Proton. Here's a summary of the steps:
                    
41
                    
53	# dependencies needed for bindings
                    
54	yum install swig python-devel ruby-devel php-devel java-1.6.0-openjdk
                    
55	
                    
88	
                    
89	mkdir build cd build
                    
90			
                    
                
File.php https://gitlab.com/kimting254/wbms | PHP | 160 lines
                    
1<?php
                    
2
                    
92     *
                    
93     * \SplFileInfo::getExtension() is not available before PHP 5.3.6
                    
94     *
                    
132        if (!is_dir($directory)) {
                    
133            if (false === @mkdir($directory, 0777, true) && !is_dir($directory)) {
                    
134                throw new FileException(sprintf('Unable to create the "%s" directory', $directory));
                    
                
init.php https://gitlab.com/mattswann/launch-housing | PHP | 368 lines
                    
1<?php
                    
2
                    
2
                    
3// DO NOT CALL THIS CLASS DIRECTLY. CALL VIA: pb_backupbuddy_destination in bootstrap.php.
                    
4
                    
24		'url'			=>		'',		// optional url for migration that corresponds to this ftp/path.
                    
25		'disable_file_management'	=>		'0',		// When 1, _manage.php will not load which renders remote file management DISABLED.
                    
26		'disabled'					=>		'0',		// When 1, disable this destination.
                    
82			} else {
                    
83				pb_backupbuddy::status( 'details',  'Your web server doesnt support FTPS in PHP.', 'error' );
                    
84				return false;
                    
95			} else {
                    
96				pb_backupbuddy::status( 'details',  'Your web server doesnt support FTP in PHP.', 'error' );
                    
97				return false;
                    
124		// Create directory if it does not exist.
                    
125		@ftp_mkdir( $conn_id, $path );
                    
126		
                    
                
EntityGeneratorTest.php https://github.com/gedrox/doctrine2.git | PHP | 292 lines
                    
1<?php
                    
2
                    
9
                    
10require_once __DIR__ . '/../../TestInit.php';
                    
11
                    
21        $this->_tmpDir = \sys_get_temp_dir();
                    
22        \mkdir($this->_tmpDir . \DIRECTORY_SEPARATOR . $this->_namespace);
                    
23        $this->_generator = new EntityGenerator();
                    
83    {
                    
84        $path = $this->_tmpDir . '/'. $this->_namespace . '/EntityGeneratorBook.php';
                    
85        $this->assertFileExists($path);
                    
128
                    
129        $this->assertFileExists($this->_tmpDir . "/" . $this->_namespace . "/EntityGeneratorBook.php~");
                    
130
                    
211     */
                    
212    public function testParseTokensInEntityFile($php, $classes)
                    
213    {
                    
                
 

Source

Language