100+ results results for 'php fopen repo:chickenlove/webshell' (318 ms)
1<?php 2/** 57 58 if (ini_get('allow_url_fopen')) { 59 $result = $this->fetch_fopen($url, $options, $outfile); 95 { 96 $in = fopen($url, 'rb'); 97 $out = fopen($this->ctx->addTempFile($fileName = tempnam(MCMS_TEMP_FOLDER, 'mcms-fetch.')), 'wb'); 168 $ch = curl_init($url); 169 $fp = fopen($outfile, "wb+"); 170 208 /** 209 * ?????????? ????? ?????????? fopen(). 210 */ 210 */ 211 protected function fetch_fopen($url, $options, $outfile) 212 {OLE_Root.php https://PHPExcel.svn.codeplex.com/svn | PHP | 482 lines
10// | available at through the world-wide-web at | 11// | http://www.php.net/license/2_02.txt. | 12// | If you did not receive a copy of the PHP license and are unable to | 22 23require_once 'PHPExcel/Shared/OLE/OLE_PPS.php'; 24 31*/ 32class PHPExcel_Shared_OLE_PPS_Root extends PHPExcel_Shared_OLE_PPS 33 { 150 for ($i = 0; $i < count($raList); $i++) { 151 if ($raList[$i]->Type == PHPExcel_Shared_OLE::OLE_PPS_TYPE_FILE) { 152 $raList[$i]->Size = $raList[$i]->_DataLen(); 388 if ($iCnt % $iBCnt) { 389 for ($i = 0; $i < (($iBCnt - ($iCnt % $iBCnt)) * PHPExcel_Shared_OLE::OLE_PPS_SIZE); $i++) { 390 fwrite($this->_FILEH_, "\x00");SYLK.php https://PHPExcel.svn.codeplex.com/svn | PHP | 507 lines
37/** PHPExcel */ 38require_once PHPEXCEL_ROOT . 'PHPExcel.php'; 39 40/** PHPExcel_Reader_IReader */ 41require_once PHPEXCEL_ROOT . 'PHPExcel/Reader/IReader.php'; 42 43/** PHPExcel_Worksheet */ 44require_once PHPEXCEL_ROOT . 'PHPExcel/Worksheet.php'; 45 46/** PHPExcel_Cell */ 47require_once PHPEXCEL_ROOT . 'PHPExcel/Cell.php'; 48 52 /** PHPExcel_Reader_DefaultReadFilter */ 53require_once PHPEXCEL_ROOT . 'PHPExcel/Reader/DefaultReadFilter.php'; 54admin.media.php http://miacms.googlecode.com/svn/trunk/ | PHP | 360 lines
1<?php 2/** 4* @subpackage Media Manager 5* @author MiaCMS see README.php 6* @copyright see README.php 6* @copyright see README.php 7* See COPYRIGHT.php for copyright notices and details. 8* @license GNU/GPL Version 2, see LICENSE.php 19 | $acl->acl_check( 'administration', 'edit', 'users', $my->usertype, 'components', 'com_media' ))) { 20 mosRedirect( 'index2.php', T_('You are not authorized to view this resource.') ); 21} 38if (is_int(strpos ($listdir, "..")) && $listdir<>'') { 39 mosRedirect( "index2.php?option=com_media&listdir=".$_POST['dirPath'], T_("NO HACKING PLEASE") ); 40 } 50 if (ini_get('safe_mode')=="On") { 51 mosRedirect( "index2.php?option=com_media&listdir=".$_POST['dirPath'], T_("Directory creation not allowed while running in SAFE MODE as this can cause problems.") ); 52 }dir.c https://github.com/php/php-src.git | C | 581 lines
71 if (id) { \ 72 if ((dirp = (php_stream *)zend_fetch_resource(Z_RES_P(id), "Directory", php_file_le_stream())) == NULL) { \ 73 RETURN_THROWS(); \ 79 } \ 80 if ((dirp = (php_stream *)zend_fetch_resource(DIRG(default_dir), "Directory", php_file_le_stream())) == NULL) { \ 81 RETURN_THROWS(); \ 90 } \ 91 if ((dirp = (php_stream *)zend_fetch_resource_ex(handle_zv, "Directory", php_file_le_stream())) == NULL) { \ 92 RETURN_THROWS(); \ 559 if (flags == PHP_SCANDIR_SORT_ASCENDING) { 560 n = php_stream_scandir(dirn, &namelist, context, (void *) php_stream_dirent_alphasort); 561 } else if (flags == PHP_SCANDIR_SORT_NONE) { 563 } else { 564 n = php_stream_scandir(dirn, &namelist, context, (void *) php_stream_dirent_alphasortr); 565 }ico.php http://lansuite.googlecode.com/svn/trunk/ | PHP | 729 lines
1<?php 2/* 187 188$f=fopen($filename,"rb"); 189 310 311$f=fopen($filename,"rb"); 312 613{ 614 $f=fopen($filename,"w"); 615 fwrite($f,$ret);file_helper.php git://github.com/philsturgeon/codeigniter-restserver.git | PHP | 479 lines
4 * 5 * An open source application development framework for PHP 5.1.6 or newer 6 * 52 53 if ( ! $fp = @fopen($file, FOPEN_READ)) 54 { 87{ 88 function write_file($path, $data, $mode = FOPEN_WRITE_CREATE_DESTRUCTIVE) 89 { 89 { 90 if ( ! $fp = @fopen($path, $mode)) 91 { 334 * 335 * Translates a file extension into a mime type based on config/mimes.php. 336 * Returns FALSE if it can't determine the type, or open the mime config fileutil.php http://oregon-caspages.googlecode.com/svn/trunk/ | PHP | 517 lines
1<?php 2include 'editor_conf.php'; 8 $host="localhost"; 9 $db_user="phpmyadmin"; 10 $db_password="password"; 173 $addr = $val . "content.html"; 174 $fh = fopen($addr, 'w'); 175 fwrite($fh, $html); 195 196$index_page = '<?php 197include "../../../editor_conf.php"; 200 <div id="global_nav"> 201 <?php include $basepath."global_nav.php";?> 202 </div> 239 240 $fh = fopen($user_dir . '/index.php', 'w'); 241 fwrite($fh, $index_page);iptc.c git://github.com/infusion/PHP.git | C | 377 lines
2 +----------------------------------------------------------------------+ 3 | PHP Version 5 | 4 +----------------------------------------------------------------------+ 4 +----------------------------------------------------------------------+ 5 | Copyright (c) 1997-2011 The PHP Group | 6 +----------------------------------------------------------------------+ 6 +----------------------------------------------------------------------+ 7 | This source file is subject to version 3.01 of the PHP license, | 8 | that is bundled with this package in the file LICENSE, and is | 9 | available through the world-wide-web at the following url: | 10 | http://www.php.net/license/3_01.txt | 11 | If you did not receive a copy of the PHP license and are unable to | 12 | obtain it through the world-wide-web, please send a note to | 13 | license@php.net so we can mail you a copy immediately. | 14 +----------------------------------------------------------------------+function_vpn_ssl.php http://windowsfw.googlecode.com/svn/trunk/ | PHP | 343 lines
1<?php 2include_once "function_base_xml_class.php"; 47 48 $handle = fopen($server_conf, "w+"); 49 if ($handle == FALSE) 179 180 $handle = fopen($client_conf, "w+"); 181 if ($handle == FALSE)socal_gps_figs.m http://compearth.googlecode.com/svn/trunk/ | Objective C | 336 lines
120% q grid indexes for the plots 121fid = fopen([odir prefix '_iqvec.dat'],'w'); 122for jj=1:nump 127% color scale 128fid = fopen([odir prefix '_vel_colors.dat'],'w'); 129for jj=1:nump 149 if iwrite==1 150 fid = fopen([odir prefix '_interior_pts_' stqtag{ip} '.dat'],'w'); 151 for ii=1:num 276 (Drr.^2 + Dthth.^2 + Dphph.^2 ... 277 - Drr.*Dthth - Drr.*Dphph - Dthth.*Dphph ) ); % deviatoric 278 %shear = sqrt( Drth.^2 + Drph.^2 + Dthph.^2 ... 278 %shear = sqrt( Drth.^2 + Drph.^2 + Dthph.^2 ... 279 % - Drr.*Dthth - Drr.*Dphph - Dthth.*Dphph); % non-deviatoric 280Fl_GIF_Image.cxx http://luafltk.googlecode.com/svn/trunk/ | C++ | 391 lines
24// 25// http://www.fltk.org/str.php 26// 90 91 if ((GifFile = fl_fopen(infname, "rb")) == NULL) { 92 Fl::error("Fl_GIF_Image: Unable to open %s!", infname);LOB.php http://syracava.googlecode.com/svn/trunk/ | PHP | 265 lines
1<?php 2// +----------------------------------------------------------------------+ 2// +----------------------------------------------------------------------+ 3// | PHP version 5 | 4// +----------------------------------------------------------------------+ 9// | MDB2 is a merge of PEAR DB and Metabases that provides a unified DB | 10// | API as well as database abstraction for PHP applications. | 11// | This LICENSE is in the BSD license style. | 44// 45// $Id: LOB.php 125 2009-08-21 01:35:18Z takuji.mezawa $ 46 52 53require_once 'MDB2.php'; 54 86 * 87 * @param string specifies the URL that was passed to fopen() 88 * @param string the mode used to open the fileteam_import.php http://decs.googlecode.com/svn/trunk/ | PHP | 248 lines
1#!/usr/bin/env php 2 2 3<?php 4 231function main() { 232 $f = fopen("http://boinc.berkeley.edu/boinc_teams.xml", "r"); 233 if (!$f) {extrafield.php http://joomlaworks.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2/** 2/** 3 * @version $Id: extrafield.php 1172 2011-10-17 11:42:15Z lefteris.kavadas $ 4 * @package K2 32 if (!$row->bind(JRequest::get('post'))) { 33 $mainframe->redirect('index.php?option=com_k2&view=extraFields', $row->getError(), 'error'); 34 } 71 if(!empty($csvFile) && JFile::getExt($file['name'])=='csv'){ 72 $handle = @fopen($csvFile, 'r'); 73 $csvData=array(); 80 else { 81 require_once(JPATH_COMPONENT.DS.'lib'.DS.'JSON.php'); 82 $json=new Services_JSON; 103 104 require_once(JPATH_COMPONENT.DS.'lib'.DS.'JSON.php'); 105 $json=new Services_JSON;LOB.php https://bitbucket.org/chamilo/chamilo/ | PHP | 265 lines
1<?php 2// +----------------------------------------------------------------------+ 2// +----------------------------------------------------------------------+ 3// | PHP version 5 | 4// +----------------------------------------------------------------------+ 9// | MDB2 is a merge of PEAR DB and Metabases that provides a unified DB | 10// | API as well as database abstraction for PHP applications. | 11// | This LICENSE is in the BSD license style. | 44// 45// $Id: LOB.php 137 2009-11-09 13:24:37Z vanpouckesven $ 46 52 53require_once 'MDB2.php'; 54 86 * 87 * @param string specifies the URL that was passed to fopen() 88 * @param string the mode used to open the filecore.charset.class.php http://php-ppcms.googlecode.com/svn/trunk/ | PHP | 310 lines
1<?php 2/*************************************************************** 38 function Big5_GB($string) { 39 $fp = fopen($this->gd_map, "r"); 40 57 function GB_Big5($string) { 58 $fp = fopen($this->big5_map, "r"); 59 275 // 276 $fp = fopen($this->table, 'rb'); 277 $tabletmp = fread($fp, filesize($this->table)); 290 function _open_map() { 291 $fp = fopen($this->gd_map, "r"); 292init.php http://simpleinvoices.googlecode.com/svn/trunk/ | PHP | 319 lines
1<?php 2/* 9// Need the configuration beforehand 10include_once(APPLICATION_PATH . '/config/define.php'); 11 27{ 28 $createLogFile = fopen($logFile, 'w') or die(simpleInvoicesError('notWriteable','folder', APPLICATION_PATH . '/tmp/log')); 29 fclose($createLogFile); 97 98require_once("smarty/Smarty.class.php"); 99require_once("lib/paypal/paypal.class.php"); 100 101require_once('lib/HTMLPurifier/HTMLPurifier.standalone.php'); 102require_once('sys/include/functions.php'); 168 169//set up app with relevant php setting 170date_default_timezone_set($config->phpSettings->date->timezone);tiny_mce_gzip.php http://core.svn.wordpress.org/ | PHP | 331 lines
1<?php 2/** 2/** 3 * $RCSfile: tiny_mce_gzip.php,v $ 4 * $Revision: $ 15 16@require_once('../../../wp-config.php'); 17 99 100// Patch older versions of PHP < 4.3.0 101if (!function_exists('file_get_contents')) { 102 function file_get_contents($filename) { 103 $fd = fopen($filename, 'rb'); 104 $content = fread($fd, filesize($filename)); 197 // Write to file if possible 198 $fp = @fopen($cacheFile, "wb"); 199 if ($fp) {ChainedBlockStream.php https://PHPExcel.svn.codeplex.com/svn | PHP | 235 lines
21 * @category PHPExcel 22 * @package PHPExcel_Shared_OLE 23 * @copyright Copyright (c) 2006 - 2007 Christian Schmidt 27 28/** PHPExcel root directory */ 29if (!defined('PHPEXCEL_ROOT')) { 35 36require_once PHPEXCEL_ROOT . 'PHPExcel/Shared/OLE.php'; 37 41 * Stream wrapper for reading data stored in an OLE file. Implements methods 42 * for PHP's stream_wrapper_register(). For creating streams using this 43 * wrapper, use PHPExcel_Shared_OLE_PPS_File::getStream(). 171 $eof = $this->pos >= strlen($this->data); 172 // Workaround for bug in PHP 5.0.x: http://bugs.php.net/27508 173 if (version_compare(PHP_VERSION, '5.0', '>=') &&extrafield.php http://getk2.googlecode.com/svn/trunk/ | PHP | 375 lines
1<?php 2/** 2/** 3 * @version $Id: extrafield.php 1554 2012-04-19 12:22:40Z lefteris.kavadas $ 4 * @package K2 35 { 36 $mainframe->redirect('index.php?option=com_k2&view=extrafields', $row->getError(), 'error'); 37 } 86 { 87 $handle = @fopen($csvFile, 'r'); 88 $csvData = array(); 97 { 98 require_once (JPATH_COMPONENT.DS.'lib'.DS.'JSON.php'); 99 $json = new Services_JSON; 120 121 require_once (JPATH_COMPONENT.DS.'lib'.DS.'JSON.php'); 122 $json = new Services_JSON;StreamProxy.h https://Phalanger.svn.codeplex.com/svn | C++ Header | 309 lines
1// 2// ExtSupport - substitute for php4ts.dll/php5ts.dll 3// 21 22using namespace PHP::Core; 23 48 /// </remarks> 49 StreamWrapperProxy(php_stream_wrapper *wrapper, Module ^containingModule) 50 { 114 /// <summary> 115 /// Returns an <see cref="IExternalStream"/> proxy of a native PHP stream. 116 /// </summary> 117 /// <param name="path">The file path passed to <c>fopen</c> PHP function.</param> 118 /// <param name="mode">The mode passed to <c>fopen</c> PHP function.</param> 119 /// <param name="options">Combination of <c>StreamWrapper.StreamOpenFlags</c>.</param>class.Cache.inc.php http://flaimo-php.googlecode.com/svn/trunk/ | PHP | 326 lines
1<?php 2/* vim: set expandtab tabstop=4 shiftwidth=4: */ 33* 34* Tested with Apache 1.3.24 and PHP 4.2.3 35* 258 } else { 259 $handle = fopen($this->returnCacheFilename($file), $returntype); 260 $cache = fgets($handle); 294 $writetype = (($binary == FALSE) ? 'w' : 'wb'); 295 $handle = fopen($this->returnCacheFilename($file), $writetype); 296 fputs($handle, $content);HttpClient.php git://github.com/moodle/moodle.git | PHP | 353 lines
1<?php 2/** 25 */ 26require_once 'Zend/Http/Client.php'; 27 98 $useIncludePath = false) { 99 $fp = @fopen($file, "r", $useIncludePath); 100 if (!$fp) { 100 if (!$fp) { 101 require_once 'Zend/Gdata/App/InvalidArgumentException.php'; 102 throw new Zend_Gdata_App_InvalidArgumentException('Failed to open private key file for AuthSub.'); 115 * 116 * In order to call this method, openssl must be enabled in your PHP 117 * installation. Otherwise, a Zend_Gdata_App_InvalidArgumentException 126 if ($key != null && !function_exists('openssl_pkey_get_private')) { 127 require_once 'Zend/Gdata/App/InvalidArgumentException.php'; 128 throw new Zend_Gdata_App_InvalidArgumentException(file.class.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 315 lines
1<?php 2/** 2/** 3 * file.class.php 4 * 22 23require_once dirname(__FILE__) . "/../pfccontainerinterface.class.php"; 24 65 66 // test the filemtime php function because it doesn't work on special filesystem 67 // example : NFS, VZFS 80 if ($time2 - $time1 != $timetowait) 81 $errors[] = "filemtime php fuction is not usable on your filesystem. Please do not use the 'file' container (try the 'mysql' container) or swith to another filesystem type."; 82 } 218 { 219 $fh = fopen($leaffilename, 'r+'); 220 for($i = 0; $i < 10; $i ++) // Try 10 times until an exclusive lock can be obtainedgit.class.php git://github.com/patrikf/glip.git | PHP | 438 lines
1<?php 2/* 20 21require_once('binary.class.php'); 22require_once('git_object.class.php'); 22require_once('git_object.class.php'); 23require_once('git_blob.class.php'); 24require_once('git_commit.class.php'); 24require_once('git_commit.class.php'); 25require_once('git_commit_stamp.class.php'); 26require_once('git_tree.class.php'); 140 { 141 $index = fopen(sprintf('%s/objects/pack/pack-%s.idx', $this->dir, sha1_hex($pack_name)), 'rb'); 142 flock($index, LOCK_SH); 201 /* packfile > 2 GB. Gee, you really want to handle this 202 * much data with PHP? 203 */api.php http://kv-webme.googlecode.com/svn/trunk/ | PHP | 651 lines
1<?php 2/** 4 * 5 * PHP version 5.2 6 * 30 if ($fp === false) { 31 $fp = fopen('php://temp', 'r+'); 32 } 40 $csv = fgets($fp); 41 if ($eol != PHP_EOL) { 42 $csv = substr($csv, 0, (0 - strlen(PHP_EOL))) . $eol; 522 if (!file_exists($fname)) { 523 require_once SCRIPTBASE.'/ww.incs/phpqrcode.php'; 524 @mkdir(USERBASE.'/ww.cache/products');ps_csv.inc http://phpshop.googlecode.com/svn/trunk/ | PHP | 328 lines
1<?php 2/* 46 $file = $d["file"]; 47 $fp = fopen ($file,"r"); 48 $error=""; 234 else { // Category does not exist - create it 235 $hash_secret="PHPShopIsCool"; 236 $category_id = md5(uniqid($hash_secret));zend_stream.c https://github.com/php/php-src.git | C | 285 lines
15 | Authors: Wez Furlong <wez@thebrainroom.com> | 16 | Scott MacVicar <scottmac@php.net> | 17 | Nuno Lopes <nlopess@php.net> | 17 | Nuno Lopes <nlopess@php.net> | 18 | Marcus Boerger <helly@php.net> | 19 +----------------------------------------------------------------------+ 90 91 handle->handle.fp = zend_fopen(handle->filename, &opened_path); 92 if (!handle->handle.fp) {class.image.meta.php https://bitbucket.org/dotclear/dotclear/ | PHP | 406 lines
1<?php 2# -- BEGIN LICENSE BLOCK --------------------------------------- 106 { 107 if (($fp = @fopen($f,'rb')) === false) { 108 throw new Exception('Unable to open image file');sparql2s3db.php https://code.google.com/p/s3db/ | PHP | 283 lines
1<?php 2#sparql serializer is an API that serializes a sparql query into an S3QL query 7 ini_set('display_errors',1); 8if(file_exists('config.inc.php')) 9 { 9 { 10 include('config.inc.php'); 11 } 13 { 14 Header('Location: index.php'); 15 exit; 16 } 17include('dbstruct.php'); 18@ini_set('allow_url_fopen', true); 32 33define("RDFAPI_INCLUDE_DIR", S3DB_SERVER_ROOT."/pearlib/rdfapi-php/api/"); 34include(RDFAPI_INCLUDE_DIR . "RdfAPI.php");logService.php http://openbiz-cubi.googlecode.com/svn/trunk/ | PHP | 439 lines
1<?php 2/** 2/** 3 * PHPOpenBiz Framework 4 * 11 * @copyright Copyright (c) 2005-2011, Rocky Swen 12 * @license http://www.opensource.org/licenses/bsd-license.php 13 * @link http://www.phpopenbiz.org/ 13 * @link http://www.phpopenbiz.org/ 14 * @version $Id: logService.php 4042 2011-05-01 06:36:18Z rockys $ 15 */ 16 17require_once 'Zend/Log.php'; 18require_once 'Zend/Log/Writer/Stream.php'; 122 return true; 123 //Adapt PHP LOG priority 124 switch ($priority)ebpls023.php http://ebpls.googlecode.com/svn/trunk/ | PHP | 71 lines
2 3<?php 4 4 5//require_once "./includes/eBPLS_header.php"; 6require_once "includes/config.php"; 6require_once "includes/config.php"; 7require_once("lib/ebpls.lib.php"); 8require_once("lib/ebpls.utils.php"); 10 11$handle = fopen("./includes/menu_pref.js", "r"); 12while (!feof($handle)) { 41{ 42 setUrlRedirect('index.php?part=999'); 43lastrss.class.php https://bitbucket.org/chamilo/chamilo/ | PHP | 354 lines
1<?php 2/* 5 6 Simple yet powerfull PHP class to parse RSS files. 7 31* lastRSS 32* Simple yet powerfull PHP class to parse RSS files. 33*/ 183 184 if ($f = @fopen($cache_file, 'w')) 185 { 259 // Open and load RSS file 260 if ($f = @fopen($this->feed_url, 'r')) 261 {TableListFieldTest.php git://github.com/silverstripe/sapphire.git | PHP | 374 lines
1<?php 2 196 $csvFileName = tempnam(TEMP_FOLDER, 'csv-export'); 197 $csvFile = fopen($csvFileName, 'wb'); 198 fwrite($csvFile, $csvOutput); 200 201 $csvFile = fopen($csvFileName, 'rb'); 202 $csvRow = fgetcsv($csvFile); 207 208 // fgetcsv doesn't handle escaped quotes in the string in PHP 5.2, so we're asserting the 209 // raw string instead.file.php git://github.com/phpbb/phpbb3.git | PHP | 730 lines
21*/ 22class phpbb_cache_driver_file extends phpbb_cache_driver_base 23{ 82 global $phpbb_root_path; 83 include($phpbb_root_path . 'includes/functions.' . $phpEx); 84 } 266 267 if (!($handle = @fopen($this->cache_dir . $entry, 'rb'))) 268 { 698 global $phpbb_root_path; 699 include($phpbb_root_path . 'includes/functions.' . $phpEx); 700 } 717 global $phpbb_root_path, $phpEx; 718 include($phpbb_root_path . 'includes/functions.' . $phpEx); 719 }pop_unMatched_bioGrid.php http://prohits.googlecode.com/svn/trunk/ | PHP | 194 lines
20$show_found_hits = ''; 21require("../common/site_permission.inc.php"); 22require("common_functions.inc.php"); 22require("common_functions.inc.php"); 23include("../common/common_fun.inc.php"); 24require_once("../msManager/is_dir_file.inc.php"); 43} 44if(!$tmp_handle = fopen($tmp_file, 'r')){ 45 echo "Cannot open file ($tmp_file)"; 103<body> 104<form name=grid_form action=<?=$PHP_SELF;?> method=post> 105<input type=hidden name=orderBy value=''>Filesystem.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2/** 23/** Zend_Search_Lucene_Storage_File */ 24require_once 'Zend/Search/Lucene/Storage/File.php'; 25 26/** Zend_Search_Lucene_Exception */ 27require_once 'Zend/Search/Lucene/Exception.php'; 28 54 { 55 global $php_errormsg; 56 64 65 $this->_fileHandle = @fopen($filename, $mode); 66 68 ini_set('track_errors', $trackErrors); 69 throw new Zend_Search_Lucene_Exception($php_errormsg); 70 }category.class.php http://xklog.googlecode.com/svn/ | PHP | 344 lines
208 <a href="#" onclick="ajax_load('<?php echo ADMIN_PATH ?>','category','edit',null,'<?php echo $value['cid'] ?>');return false;"><?php echo L('_EDIT_'); ?></a> 209 <a href="#" onclick="if(confirm('<?php echo L('_DELETE_CONFIRM_1_'); ?>'))ajax_get('<?php echo ADMIN_PATH ?>','category','delsort',null,'<?php echo $value['cid'] ?>');return false;"><?php echo L('_DELETE_'); ?></a> 210 </span> 219</div> 220<?php 221 } 245 <tr> 246 <td width="180"><div align="right"><?php echo L('_SORT_'); ?> <div class="main_tips"><?php echo L('_SORT_TIPS_'); ?> </div></div></td> 247 <td align="left"><input name="num" type="text" size="30" maxlength="10" class="main_text" /></td> 286<div class="admin_content"> 287 <form action="index.php?m=category&p=editsort&id=<?php echo $id ?>" method="post" id="ajax_form"> 288 <input name="id" type="hidden" value="<?php echo $id ?>" /> 325 <div style="padding:10px;"> 326 <a href="#" onclick="ajax_get('<?php echo ADMIN_PATH ?>','category','datacheckexe');return false;"><?php echo L('_CATEGORY_DATA_CHECK_'); ?></a> 327 </div>remotefile.php http://xtraupload.googlecode.com/svn/trunk/ | PHP | 344 lines
1<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); 2/** 4 * 5 * A turn-key open source web 2.0 PHP file uploading package requiring PHP v5 6 * 112 { 113 $parsedurl = parse_url($url, PHP_URL_SCHEME); 114 205 $tmpfname = tempnam($this->tmp_dir, "RFT-"); 206 $fp = fopen($tmpfname, "wb"); 207 }Text.php http://kumbia-enterprise.googlecode.com/svn/trunk/ | PHP | 527 lines
1<?php 2 19 * @license New BSD License 20 * @version $Id: Html.php 122 2010-02-11 19:09:18Z gutierrezandresfelipe $ 21 */ 151 $this->_tempFileName = 'public/temp/'.uniqid(); 152 $this->_tempFile = fopen($this->_tempFileName, 'w'); 153 $this->_prepareHead();file_conf.php https://code.google.com/p/faxocr/ | PHP | 534 lines
1<?php 2/* 26 27require_once "config.php"; 28require_once "lib/common.php"; 181 182 $fp = fopen($conf_path, "w"); 183 210 211 $fp = fopen($conf_path, "w"); 212 294 295 $fp = fopen($conf_path, "w"); 296connector.php http://opixido-ocms.googlecode.com/svn/trunk/ | PHP | 193 lines
70 71if ($fckphp_config['Debug']===true && $fckphp_config['Debug_Output']) ob_start(); 72outputHeaders(); 138 $action->run(); 139 if ($fckphp_config['Debug']===true && $fckphp_config['Debug_Output']) recordOutput(); 140 144 echo str_replace("\n","<br />",print_r($_GET,true)); 145 if ($fckphp_config['Debug']===true && $fckphp_config['Debug_Output']) recordOutput(); 146 exit(0); 152 153 if ($fckphp_config['Debug']===true && $fckphp_config['Debug_Output']) { 154 $contents=ob_get_contents(); 156 $oldData=implode("",file($fckphp_config['DebugOutput'])); 157 if ($fh=fopen($fckphp_config['DebugOutput'],"w")) { 158 fwrite($fh,"\n".date("d/m/Y H:i:s")."\n");PDF.php https://PHPExcel.svn.codeplex.com/svn | PHP | 470 lines
22 * @package PHPExcel_Writer 23 * @copyright Copyright (c) 2006 - 2008 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL 38/** PHPExcel_Shared_Drawing */ 39require_once 'PHPExcel/Shared/Drawing.php'; 40 54 */ 55class PHPExcel_Writer_PDF implements PHPExcel_Writer_IWriter { 56 /** 86 * 87 * @param PHPExcel $phpExcel PHPExcel object 88 */ 89 public function __construct(PHPExcel $phpExcel) { 90 $this->_phpExcel = $phpExcel; 91 $this->_sheetIndex = 0;Z_poEditLangModule.php http://chronique.googlecode.com/svn/ | PHP | 243 lines
1<?php 2 2 3/* $Id: Z_poEditLangModule.php 4734 2011-10-29 03:26:27Z daintree $ */ 4 22 23echo "<br /> <a href='" . $rootpath . "/Z_poAdmin.php'>" . _('Back to the translation menu') . "</a>"; 24echo '<br /><br /> ' . _('Utility to edit a language file module'); 35 $PathToDefault = './locale/en_GB.utf8/LC_MESSAGES/messages.po'; 36 $FilesToInclude = '*php includes/*.php includes/*.inc'; 37 $xgettextCmd = 'xgettext --no-wrap -L php -o ' . $PathToDefault . ' ' . $FilesToInclude; 62 echo '<br /><table><tr><td>'; 63 echo '<form method="post" action=' . htmlspecialchars($_SERVER['PHP_SELF']) . '?' . SID . '>'; 64 echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; 74 } 75 $fpOut = fopen($PathToNewLanguage, 'w'); 76 for ($i=0; $i<=$LangFileEntries; $i++) {aws_s3.php git://github.com/gallery/gallery3-contrib.git | PHP | 330 lines
1<?php defined("SYSPATH") or die("No direct script access."); 2 12 if (!self::$_s3) { 13 require_once(MODPATH . "aws_s3/lib/s3.php"); 14 S3::setAuth(module::get_var("aws_s3", "access_key"), module::get_var("aws_s3", "secret_key")); 62 63 $fh = fopen(VARPATH . "modules/aws_s3/log/aws_s3-" . date("Y-m-d") . ".log", "a"); 64 fwrite($fh, date("Y-m-d H:i:s") . ": " . $item . "\n"); 234 static function validate_access_details($access_key, $secret_key, $bucket_name) { 235 require_once(MODPATH . "aws_s3/lib/s3.php"); 236 S3::setAuth($access_key, $secret_key);write.apetag.php https://bitbucket.org/chamilo/chamilo/ | PHP | 228 lines
1<?php 2///////////////////////////////////////////////////////////////// 9// // 10// write.apetag.php // 11// module for writing APE tags // 11// module for writing APE tags // 12// dependencies: module.tag.apetag.php // 13// /// 16 17getid3_lib::IncludeDependency(GETID3_INCLUDEPATH.'module.tag.apetag.php', __FILE__, true); 18 58 if ($APEtag = $this->GenerateAPEtag()) { 59 if ($fp = @fopen($this->filename, 'a+b')) { 60 $oldignoreuserabort = ignore_user_abort(true); 99 if (isset($ThisFileInfo['ape']['tag_offset_start']) && isset($ThisFileInfo['ape']['tag_offset_end'])) { 100 if ($fp = @fopen($this->filename, 'a+b')) { 101upgrade.php http://wquiz.googlecode.com/svn/trunk/ | PHP | 347 lines
1<?php 2/* Upgrade from version 0.3.* (from perl to PHP version) */ 29 30// adminsetup is within the admin directory - this will load the main setup.php as well 31require_once ("adminsetup.php"); 38// Authentication class required for admin functions 39require_once($include_dir."SimpleAuth.php"); 40// add this here as not required for some pages (which use Quiz.php instead) 40// add this here as not required for some pages (which use Quiz.php instead) 41require_once ($include_dir."Quizzes.php"); 42 69 // open file and read in appropriate entries 70 if (!$ofh = fopen ($oldfile, "r")) {printMenu("Unable to read from file"); exit (0);} 71 while ($this_line = fgets($ofh)) 74 75 /**** WARNING - when reading below code perl variable names are used within php array 76 /* this means $dbname (perl variable) is shown as a string '$dbname' ****/admin.php http://jfusion.googlecode.com/svn/trunk/ | PHP | 210 lines
1<?php 2/** 30 if (substr($forumPath, -1) == DS) { 31 $myfile = $forumPath . 'includes'.DS.'configure.php'; 32 } else { 32 } else { 33 $myfile = $forumPath . DS. 'includes'.DS.'configure.php'; 34 } 35 36 if (($file_handle = @fopen($myfile, 'r')) === FALSE) { 37 JError::raiseWarning(500,JText::_('WIZARD_FAILURE'). ": $myfile " . JText::_('WIZARD_MANUAL'));MessageTest.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2 12 */ 13require_once 'Zend/Mail/Message.php'; 14 17 */ 18require_once 'Zend/Mail/Storage/Mbox.php'; 19 22 */ 23require_once 'Zend/Mime/Decode.php'; 24 25/** 26 * PHPUnit test case 27 */ 27 */ 28require_once 'PHPUnit/Framework/TestCase.php'; 29install_controller.php http://phpshop.googlecode.com/svn/trunk/ | PHP | 416 lines
1<?php 2/* SVN FILE: $Id: install_controller.php 418 2008-01-31 22:37:17Z pablo $ */ 3/** 6 * 7 * phpShop(tm) : A Simple Shopping Cart <http://www.phpshop.org/> 8 * Copyright 1998-2008, Edikon Corporation 16 * @copyright Copyright 1998-2008, Edikon Corporation 17 * @link http://www.edikon.com/ phpShop(tm) Project 18 * @package phpshop 29 * 30 * The controller class to install the phpShop application. 31 * Adapted this this file from - Cheesecake Photoblog 70 /* 71 * get the database details from user and create the database.php file 72 */php_fopen_wrapper.c http://php52-backports.googlecode.com/svn/trunk/ | C | 362 lines
33 34static size_t php_stream_output_write(php_stream *stream, const char *buf, size_t count TSRMLS_DC) /* {{{ */ 35{ 147 if (write_chain) { 148 if ((temp_filter = php_stream_filter_create(p, NULL, php_stream_is_persistent(stream) TSRMLS_CC))) { 149 php_stream_filter_append(&stream->writefilters, temp_filter); 158 159php_stream * php_stream_url_wrap_php(php_stream_wrapper *wrapper, char *path, char *mode, int options, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC) /* {{{ */ 160{ 287 } else { 288 php_stream_apply_filter_list(stream, p, mode_rw & PHP_STREAM_FILTER_READ, mode_rw & PHP_STREAM_FILTER_WRITE TSRMLS_CC); 289 } 346 347php_stream_wrapper php_stream_php_wrapper = { 348 &php_stdio_wops,setup-config.php http://suziwen.googlecode.com/svn/trunk/ | PHP | 195 lines
42if (file_exists('../wp-config.php')) 43 wp_die("<p>'wp-config.php'???????????? wp-config.php ?????????????????????wp-config.php?<a href='install.php'>??</a>?</p>"); 44 44 45// Check if wp-config.php exists above the root directory 46if (file_exists('../../wp-config.php') && ! file_exists('../../wp-load.php')) 46if (file_exists('../../wp-config.php') && ! file_exists('../../wp-load.php')) 47 wp_die("<p>'wp-config.php'??????????????????? wp-config.php ?????????????????????wp-config.php?<a href='install.php'>??</a>?</p>"); 48 90</ol> 91<p><strong>???????????????????????? Wordpress ?????????????????????? <code>wp-config-sample.php</code>??????????????????????? <code>wp-config.php</code>?</strong></p> 92<p>??????????????????????????????????????????????????? …</p> 157 158 $handle = fopen('../wp-config.php', 'w'); 159tiny_mce_config.php http://core.svn.wordpress.org/ | PHP | 329 lines
1<?php 2// some code below is from: 3/** 4 * $Id: tiny_mce_gzip.php 315 2007-10-25 14:03:43Z spocke $ 5 * 11 12@ require('../../../wp-config.php'); 13 23 $content = ''; 24 $fp = @fopen($path, 'r'); 25 if ( ! $fp ) 39 $newfile = false; 40 $fp = @fopen( $path, 'wb' ); 41 if ($fp) { 63The + sign marks the default language. More information: 64http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/spellchecker 65*/windowsOppClass.php http://openirudi.googlecode.com/svn/trunk/ | PHP | 158 lines
1<?php 2 54 $zipped_driver = ''; 55 if ($zipped_driver = @fopen($url, 'r')) { 56 // imprimir toda la pagina comenzando en la posicion 10 146 exceptionHandlerClass::saveError("-----CHANGE uuid: $uuid"); 147 $f = fopen('/dev/'.$this->partitionName, "c+b"); 148 fseek($f,72,SEEK_CUR );lgsl_feed.php http://lansuite.googlecode.com/svn/trunk/ | PHP | 163 lines
1<?php 2 12 13 require "lgsl_class.php"; 14 62//------------------------------------------------------------------------------------------------------------+ 63// FILTER HOSTNAME AND IP FORMATS THAT PHP ACCEPTS BUT ARE NOT WANTED 64 92 93 $file_handle = fopen($file_path, "a"); 94geturl.class.php http://creative-portal.googlecode.com/svn/trunk/ | PHP | 473 lines
1<?php 2 56 { 57 ini_set( 'allow_url_fopen', 1 ); 58 ini_set( 'default_socket_timeout', 120 ); 98 99 if ( ini_get( 'allow_url_fopen' ) == '1' or strtolower( ini_get( 'allow_url_fopen' ) ) == 'on' ) 100 { 100 { 101 if ( function_exists( "fopen" ) and ! in_array( 'fopen', $disable_functions ) ) 102 { 102 { 103 $this->allow_methods[] = 'fopen'; 104 } 307 /** 308 * UrlGetContents::fopen_Get() 309 *CSV.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 447 lines
34 define('PHPEXCEL_ROOT', dirname(__FILE__) . '/../../'); 35 require (PHPEXCEL_ROOT . 'PHPExcel/Autoloader.php'); 36} 150 // Create new PHPExcel 151 $objPHPExcel = new PHPExcel(); 152 208 /** 209 * Loads PHPExcel from file into PHPExcel instance 210 * 212 * @param string $pFilename 213 * @param PHPExcel $objPHPExcel 214 * @return PHPExcel 216 */ 217 public function loadIntoExisting($pFilename, PHPExcel $objPHPExcel) 218 {Gateway.php http://swx-format.googlecode.com/svn/trunk/ | PHP | 406 lines
33{ 34 require_once(AMFPHP_BASE . "shared/util/CompatPhp5.php"); 35} 37{ 38 require_once(AMFPHP_BASE . "shared/util/CompatPhp4.php"); 39} 41require_once(AMFPHP_BASE . "shared/util/CharsetHandler.php"); 42require_once(AMFPHP_BASE . "shared/util/NetDebug.php"); 43require_once(AMFPHP_BASE . "shared/util/Headers.php"); 77 include_once(AMFPHP_BASE . "shared/app/php5Executive.php"); 78 include_once(AMFPHP_BASE . "shared/exception/php5Exception.php"); 79 } 83 include_once(AMFPHP_BASE . "shared/app/php4Executive.php"); 84 include_once(AMFPHP_BASE . "shared/exception/php4Exception.php"); 85 }Process.hx git://github.com/Yoomee/clippy.git | Haxe | 140 lines
24 */ 25package php.io; 26 88 var pipes = untyped __call__("array"); 89 var descriptorspec = untyped __php__("array( 90 array('pipe', 'r'), 117 function replaceStream(input : haxe.io.Input) { 118 var fp = untyped __call__("fopen", "php://memory", "r+"); 119 while(true) { 130 while(status[untyped 'running']) { 131 php.Sys.sleep(0.01); 132 status = untyped __call__('proc_get_status', p);LogMessages.php http://xinc.googlecode.com/svn/trunk/ | PHP | 241 lines
1<?php 2declare(encoding = 'utf-8'); 6 * 7 * PHP version 5 8 * 12 * @copyright 2007 Arno Schneider, Barcelona 13 * @license http://www.gnu.org/copyleft/lgpl.html GNU/LGPL, see license.php 14 * This file is part of Xinc. 30 31require_once 'Xinc/Api/Module/Interface.php'; 32require_once 'Xinc/Plugin/Repos/Gui/Dashboard/Detail/Extension.php'; 160 /** 161 * Add fopen() to the function to just get the loglines 162 * that we need. 167 $pos = 0; 168 $fh = fopen($logXmlFile, 'r'); 169 $xmlStr = fgets($fh);InternalFileFunctions.cpp https://Phalanger.svn.codeplex.com/svn | C++ | 469 lines
1// 2// ExtSupport.PHP4 - substitute for php4ts.dll 3// 30 zval **arg1; 31 php_stream *stream; 32 34 35 php_stream_from_zval(stream, arg1); 36 if (!stream->is_persistent) zend_list_delete(stream->rsrc_id); 419// copied from main.c and beautified 420static FILE *php_fopen_wrapper_for_zend(const char *filename, char **opened_path) 421{ 434 435ZEND_API FILE *(*zend_fopen)(const char *filename, char **opened_path) = php_fopen_wrapper_for_zend; 436ZEND_API zend_bool (*zend_open)(const char *filename, zend_file_handle *) = php_open_wrapper_for_zend;curl_rest_client.class.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 158 lines
1<?php 2namespace common\libraries; 80 { 81 fopen($this->cookie_file, 'w') or die('cannot create coofie file'); 82 }utils.php http://antilophpe.googlecode.com/svn/ | PHP | 221 lines
1<?php 2/** 2/** 3 * File utils.php 4 * 12 if (!isset($is_windows)) { 13 $is_windows = strtoupper(substr(PHP_OS, 0, 3)) == 'WIN'; 14 } 159 160function my_fopen($filename, $mode, $use_include_path=false, $context=null){ 161 //check to see if the file exists, if not then use touch to create it. 166 if(empty($context)) { 167 return fopen($filename, $mode, $use_include_path); 168 } else { 168 } else { 169 return fopen($filename, $mode, $use_include_path, $context); 170 }config.m4 git://github.com/infusion/PHP.git | m4 | 101 lines
17 18 if test "$PHP_ZLIB_DIR" != "no" && test "$PHP_ZLIB_DIR" != "yes"; then 19 if test -f "$PHP_ZLIB_DIR/include/zlib/zlib.h"; then 22 elif test -f "$PHP_ZLIB_DIR/include/zlib.h"; then 23 PHP_ZLIB_DIR="$PHP_ZLIB_DIR" 24 PHP_ZLIB_INCDIR="$PHP_ZLIB_DIR/include" 45 AC_MSG_RESULT([$PHP_ZLIB_DIR]) 46 PHP_ADD_LIBRARY_WITH_PATH(z, $PHP_ZLIB_DIR/$PHP_LIBDIR, ZIP_SHARED_LIBADD) 47 PHP_ADD_INCLUDE($PHP_ZLIB_INCDIR) 73 74 PHP_ZIP_SOURCES="$PHP_ZIP_SOURCES lib/zip_add.c lib/zip_error.c lib/zip_fclose.c \ 75 lib/zip_fread.c lib/zip_open.c lib/zip_source_filep.c \ 94 AC_DEFINE(HAVE_ZIP,1,[ ]) 95 PHP_NEW_EXTENSION(zip, php_zip.c zip_stream.c $PHP_ZIP_SOURCES, $ext_shared) 96 PHP_ADD_BUILD_DIR($ext_builddir/lib, 1)default.php http://joomlaworks.googlecode.com/svn/trunk/ | PHP | 0 lines
66 <td>1.0.1</td> 67 <td><?php echo JText::_('K2_PHP_CLASS'); ?></td> 68 <td><?php echo JText::_('K2_BSD'); ?></td> 268 <td><strong>System - K2</strong></td> 269 <td><?php echo (JFile::exists(JPATH_PLUGINS.DS.'system'.DS.'k2.php') || JFile::exists(JPATH_PLUGINS.DS.'system'.DS.'k2'.DS.'k2.php'))?JText::_('K2_INSTALLED'):JText::_('K2_NOT_INSTALLED'); ?> - <?php echo (JPluginHelper::isEnabled('system', 'k2'))?JText::_('K2_ENABLED'):JText::_('K2_DISABLED'); ?></td> 270 </tr> 272 <td><strong>User - K2</strong></td> 273 <td><?php echo (JFile::exists(JPATH_PLUGINS.DS.'user'.DS.'k2.php') || JFile::exists(JPATH_PLUGINS.DS.'user'.DS.'k2'.DS.'k2.php'))?JText::_('K2_INSTALLED'):JText::_('K2_NOT_INSTALLED'); ?> - <?php echo (JPluginHelper::isEnabled('user', 'k2'))?JText::_('K2_ENABLED'):JText::_('K2_DISABLED'); ?></td> 274 </tr> 276 <td><strong>Search - K2</strong></td> 277 <td><?php echo (JFile::exists(JPATH_PLUGINS.DS.'search'.DS.'k2.php') || JFile::exists(JPATH_PLUGINS.DS.'search'.DS.'k2'.DS.'k2.php'))?JText::_('K2_INSTALLED'):JText::_('K2_NOT_INSTALLED'); ?> - <?php echo (JPluginHelper::isEnabled('search', 'k2'))?JText::_('K2_ENABLED'):JText::_('K2_DISABLED'); ?></td> 278 </tr> 309 <td><?php 310 if (JFile::exists(JPATH_PLUGINS.DS.'content'.DS.'jw_sigpro.php') || JFile::exists(JPATH_PLUGINS.DS.'content'.DS.'jw_sigpro'.DS.'jw_sigpro.php')) 311 echo JText::_('K2_INSTALLED');curl.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 69 lines
1<?php 2class cURL { 23 } else { 24 fopen($cookie_file,'w') or $this->error('The cookie file could not be opened. Make sure this directory has the correct permissions'); 25 $this->cookie_file=$cookie_file;scanwikihow.sh.php http://awarenet.googlecode.com/svn/trunk/ | PHP | 102 lines
2 3 include "../../../setup.php"; 4 23 //$reference = "Create-a-Text-Input-Using-HTML"; //test data 24 $reference = "api.php?action=query&list=allpages&format=xml" 25 . "&apfrom=" . urlencode($startTitle) 27 28 $relayUrl = "http://mothsorchid.com/whrelay.php?p=whp6x&q=" . base64_encode($reference); 29 54 $fileName = $scanDir . "mwi50_" . $kapenta->time() . ".raw"; 55 $fH = fopen($fileName, 'w+'); 56 fwrite($fH, $raw);file-edit.php http://vanilla-journal.googlecode.com/svn/trunk/ | PHP | 234 lines
1<?php 2 include("admin.php"); 44 45<?php 46 if($_POST['submit'] && $_POST['action'] == "edit") { 73 <form action="file-edit.php" method="post"> 74 <p><strong>????</strong>? <?php echo $page ?> ?<strong>????</strong>?<?php echo mime_content_type($filename) ?></p> 75 <input type="hidden" value="<?php echo $page; ?>" name="page" id="page" /> 75 <input type="hidden" value="<?php echo $page; ?>" name="page" id="page" /> 76 <textarea id="content" name="content" style="padding: 5px; width: 90%; height: 300px; font-size: 12pt; font-family: mono-space;"><?php echo $content; ?></textarea> <br /> 77<?php 159 $d = opendir($themes); 160 echo "<form method=\"post\" action=\"file-edit.php\">"; 161 echo "<table class=\"list_table\">"; 195 <p>??????????? <strong><?php echo $config['theme'] ?></strong>???????????????????????? PHP ?????? CSS ????</p> 196 <p>???????????? PHP ?????? PHP ?????????????????????????????????????????????????????????????????????????????????????????????</p> 197 <p>?????????????</p>CSV.php https://PHPExcel.svn.codeplex.com/svn | PHP | 231 lines
35/** PHPExcel_Worksheet */ 36require_once 'PHPExcel/Worksheet.php'; 37 48 */ 49class PHPExcel_Reader_CSV implements PHPExcel_Reader_IReader 50{ 97 // Create new PHPExcel 98 $objPHPExcel = new PHPExcel(); 99 107 * @param string $pFilename 108 * @param PHPExcel $objPHPExcel 109 * @throws Exception 110 */ 111 public function loadIntoExisting($pFilename, PHPExcel $objPHPExcel) 112 {pear.bat http://railoapacheportable.googlecode.com/svn/trunk/ | Batch | 115 lines
32IF "%PHP_PEAR_BIN_DIR%"=="" SET "PHP_PEAR_BIN_DIR=C:\xampp_RailoPortable2\php" 33IF "%PHP_PEAR_PHP_BIN%"=="" SET "PHP_PEAR_PHP_BIN=C:\xampp_RailoPortable2\php\php.exe" 34GOTO :INSTALLED 62IF NOT EXIST %PHP_PEAR_INSTALL_DIR%\pearcmd.php ( 63IF EXIST %PHP_PEAR_INSTALL_DIR%\scripts\pearcmd.php COPY %PHP_PEAR_INSTALL_DIR%\scripts\pearcmd.php %PHP_PEAR_INSTALL_DIR%\pearcmd.php 64IF EXIST pearcmd.php COPY pearcmd.php %PHP_PEAR_INSTALL_DIR%\pearcmd.php 64IF EXIST pearcmd.php COPY pearcmd.php %PHP_PEAR_INSTALL_DIR%\pearcmd.php 65IF EXIST %~dp0\scripts\pearcmd.php COPY %~dp0\scripts\pearcmd.php %PHP_PEAR_INSTALL_DIR%\pearcmd.php 66) 79IF NOT EXIST "%PHP_PEAR_BIN_DIR%" GOTO PEAR_BIN_ERROR 80IF NOT EXIST "%PHP_PEAR_PHP_BIN%" GOTO PEAR_PHPBIN_ERROR 81REM launch pearcmd 112:RUN 113"%PHP_PEAR_PHP_BIN%" -C -d output_buffering=1 -d safe_mode=0 -d open_basedir="" -d auto_prepend_file="" -d auto_append_file="" -d variables_order=EGPCS -d register_argc_argv="On" -d include_path="%PHP_PEAR_INSTALL_DIR%" -f "%PHP_PEAR_INSTALL_DIR%\pearcmd.php" -- %1 %2 %3 %4 %5 %6 %7 %8 %9 114:ENDadmin.php http://explay-cms.googlecode.com/svn/trunk/ | PHP | 147 lines
1<?php 2 75 76 $str = "<?php\r\n\r\n\$REWRITE = array ("; 77 $temp = array(); 88 89 $f = fopen(ENGINE_ROOT . '/URIs.php', 'w+'); 90 fwrite($f, $str); 95 96 include ENGINE_ROOT . '/URIs.php'; 97exaBD.php http://gesior-aac.googlecode.com/svn/trunk/ | PHP | 157 lines
1<?php 2/* 84 // zalozenie locka 85 if(($fp = @fopen($bd_chckfile.'.lock', 'w')) && flock($fp, LOCK_EX)){ // do an exclusive lock 86 fwrite($fp, ($now + $bd_lock_time)); 90 // log zapisujacy fakt zablokowania bota 91 if(($fp = @fopen($bd_save_dir.'locklog.txt', 'a')) && flock($fp, LOCK_EX)){ // do an exclusive lock 92 fwrite($fp, date('Y-m-d H:i:s') . ' ' . $_SERVER['REMOTE_ADDR'] . "\n"); 105 else{ 106 if(($fp = @fopen($bd_chckfile, 'w')) && flock($fp, LOCK_EX)){ // do an exclusive lock 107 fwrite($fp, $f_count.','.$f_time.','.$now); 114 if($new_file){ 115 if(($fp = @fopen($bd_chckfile, 'w')) && flock($fp, LOCK_EX)){ // do an exclusive lock 116 fwrite($fp, '1,'.$now.','.$now); 128// Czyszczenie wszystkich statystyk raz na 24 godzny 129if($f = @ fopen($bd_save_dir.'day.dat', 'r')){ 130 $f_date = chop(fgets($f, 5));Cronjob.php git://github.com/daylightstudio/FUEL-CMS.git | PHP | 265 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2/** 23 * based on this: 24 * http://www.underwaterdesign.com/2006/06/php_create_a_cron_job_with_php.php 25 * 152 $cron = ''; 153 if (!empty($this->mailto)) $cron .= "MAILTO=".$this->mailto.PHP_EOL; 154 $joiner = (empty($this->mailto)) ? ">> /dev/null 2>&1" : ''; 154 $joiner = (empty($this->mailto)) ? ">> /dev/null 2>&1" : ''; 155 $cron .= implode($joiner.PHP_EOL, $this->_jobs); 156 $cron .= PHP_EOL; // !!!important... for cronjobs to run, you must have this ending newline 159 { 160 $open = fopen($this->cronfile, "w"); // This overwrites current line 161 fwrite($open, $cron); 178 chmod($this->cronfile, 0777); // make new file writeable 179 $open = fopen($this->cronfile, "w"); 180 fwrite($open, $cron);ConsoleOutput.php git://github.com/cakephp/cakephp.git | PHP | 288 lines
1<?php 2/** 4 * 5 * PHP 5 6 * 6 * 7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org) 8 * Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) 13 * @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org) 14 * @link http://cakephp.org CakePHP(tm) Project 15 * @since CakePHP(tm) v 2.0 15 * @since CakePHP(tm) v 2.0 16 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 17 */ 19 * Object wrapper for outputting information from a shell application. 20 * Can be connected to any stream resource that can be used with fopen() 21 *FolderTest.php git://github.com/silverstripe/sapphire.git | PHP | 240 lines
1<?php 2 46 SS_Filesystem::makeFolder(dirname($path)); 47 $fh = fopen($path, "w+"); 48 fwrite($fh, str_repeat('x', 1000000));Z_ImportStocks.php http://chronique.googlecode.com/svn/ | PHP | 306 lines
1<?php 2/* $Id: Z_ImportStocks.php 4628 2011-07-08 10:43:09Z daintree $*/ 51 //get file handle 52 $handle = fopen($tmpName, 'r'); 53 245 $ErrMsg = _('The locations for the item') . ' ' . $StockID . ' ' . _('could not be added because'); 246 $DbgMsg = _('NB Locations records can be added by opening the utility page') . ' <i>Z_MakeStockLocns.php</i> ' . _('The SQL that was used to add the location records that failed was'); 247 $InsResult = DB_query($sql,$db,$ErrMsg,$DbgMsg); 288 <br /> 289 <a href="Z_ImportStocks.php?gettemplate=1">Get Import Template</a> 290 <br /> 292 '; 293 echo "<form ENCtype='multipart/form-data' action='Z_ImportStocks.php' method=post>"; 294 echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '">';dir.c git://github.com/infusion/PHP.git | C | 607 lines
87 } \ 88 ZEND_FETCH_RESOURCE(dirp, php_stream *, tmp, -1, "Directory", php_file_le_stream()); \ 89 } else { \ 106 PHP_FALIAS(rewind, rewinddir, arginfo_dir) 107 PHP_NAMED_FE(read, php_if_readdir, arginfo_dir) 108 {NULL, NULL, NULL} 399 Read directory entry from dir_handle */ 400PHP_NAMED_FUNCTION(php_if_readdir) 401{ 578 if (!flags) { 579 n = php_stream_scandir(dirn, &namelist, context, (void *) php_stream_dirent_alphasort); 580 } else { 580 } else { 581 n = php_stream_scandir(dirn, &namelist, context, (void *) php_stream_dirent_alphasortr); 582 }flickrrss.php http://suziwen.googlecode.com/svn/trunk/ | PHP | 280 lines
1<?php 2/* 31 if (!function_exists('MagpieRSS')) { // Check if another plugin is using RSS, may not work 32 include_once (ABSPATH . WPINC . '/rss-functions.php'); 33 error_reporting(E_ERROR); 76 if (!file_exists("$fullPath$flickrSlug.jpg")) { 77 if ( function_exists('curl_init') ) { // check for CURL, if not use fopen 78 $curl = curl_init(); 78 $curl = curl_init(); 79 $localimage = fopen("$fullPath$flickrSlug.jpg", "wb"); 80 curl_setopt($curl, CURLOPT_URL, $imgurl); 86 $filedata = ""; 87 $remoteimage = fopen($imgurl, 'rb'); 88 if ($remoteimage) { 93 fclose($remoteimage); 94 $localimage = fopen("$fullPath$flickrSlug.jpg", 'wb'); 95 fwrite($localimage,$filedata);FS.php git://github.com/gallery/gallery3-contrib.git | PHP | 180 lines
1<?php 2 5 * 6 * This Lock Manager stores all its data in the filesystem. By default it will do this in PHP's standard temporary session directory, 7 * but this can be overriden by specifiying an alternative path in the contructor 137 // opening up the file, and creating a shared lock 138 $handle = fopen($path,'r'); 139 flock($handle,LOCK_SH); 168 // opening up the file, and creating a shared lock 169 $handle = fopen($path,'a+'); 170 flock($handle,LOCK_EX);GettextExtractor.class.php https://code.google.com/p/celebrio/ | PHP | 164 lines
1<?php 2 2 3if (version_compare(PHP_VERSION, '5.2.2', '<')) 4 exit('GettextExtractor needs PHP 5.2.2 or newer'); 14 public $filters = array( 15 'php' => array('PHP'), 16 'phtml' => array('PHP', 'NetteCurlyBrackets') 28 { 29 $this->logHandler = fopen(dirname(__FILE__) . self::LOG_FILE, "w"); 30 } 95 if (!class_exists($filter)) { 96 $filter_file = dirname(__FILE__) . '/Filters/' . $filter . ".php"; 97 if (!file_exists($filter_file)) { 121 122 $handle = fopen($outputFile, "w"); 123file.php git://github.com/joomla/joomla-platform.git | PHP | 554 lines
1<?php 2/** 318 319 if (false === $fh = fopen($filename, 'rb', $incpath)) 320 { 427 * 428 * @param string $src The name of the php (temporary) uploaded file 429 * @param string $dest The path (including filename) to move the uploaded file toFile_Structure_Test.php git://github.com/gallery/gallery3.git | PHP | 340 lines
1<?php defined("SYSPATH") or die("No direct script access."); 2/** 28 $count++; 29 if (!preg_match("|\.html\.php$|", $file->getPathname())) { 30 $this->assert_false( 43 foreach ($dir as $file) { 44 if (strpos($file, "views/kohana/error.php")) { 45 continue; 49 $this->assert_true( 50 preg_match("#/views/.*?\.(html|mrss|txt|json)\.php$#", $file->getPathname()), 51 "{$file->getPathname()} should end in .{html,mrss,txt,json}.php"); 73 $expected = "<?php defined('SYSPATH') OR die('No direct access allowed.'); ?>\n"; 74 $expected_2 = "<?php defined('SYSPATH') OR die('No direct access allowed.');\n"; // error.php 75 } else { 111 $expected_2 = array("<?php defined('SYSPATH') OR die('No direct access allowed.');\n"); 112 $expected_3 = array("<?php defined(\"SYSPATH\") or die(\"No direct script access.\");\n"); 113 $fp = fopen($path, "r");api.php http://ooe.googlecode.com/svn/trunk/ | PHP | 274 lines
1<?php 2 2 3 require_once('curl.class.php'); 4 require_once('apiClasses.php'); 4 require_once('apiClasses.php'); 5 require_once('apiMailClasses.php'); 6 require_once('apiCorpClasses.php'); 6 require_once('apiCorpClasses.php'); 7 require_once('apiChar.php'); 8 require_once('apiCorp.php'); 8 require_once('apiCorp.php'); 9 require_once('apidb.php'); 10 require_once('apimarket.php'); 10 require_once('apimarket.php'); 11 require_once('apiConstants.php'); 12write.vorbiscomment.php https://bitbucket.org/chamilo/chamilo/ | PHP | 124 lines
1<?php 2///////////////////////////////////////////////////////////////// 9// // 10// write.vorbiscomment.php // 11// module for writing VorbisComment tags // 34 $tempcommentsfilename = tempnam('*', 'getID3'); 35 if ($fpcomments = @fopen($tempcommentsfilename, 'wb')) { 36 100 101 $this->errors[] = 'PHP running in Safe Mode (backtick operator not available) - cannot call vorbiscomment, tags not written'; 102 return false;MiscFunctions.php http://chronique.googlecode.com/svn/ | PHP | 387 lines
1<?php 2 2 3/* $Id: MiscFunctions.php 4761 2011-12-03 03:03:38Z daintree $*/ 4 23 if (isset($_SESSION['LogSeverity']) and $_SESSION['LogSeverity']>0) { 24 $LogFile=fopen($_SESSION['LogPath'].'/webERP-test.log', 'a'); 25 } 98 // Check for a DNS 'MX' or 'A' record. 99 // Windows supported from PHP 5.3.0 on - so check. 100 $Ret = true; 101 /* Apparentely causes some problems on some versions - perhaps bleeding edge just yet 102 if (version_compare(PHP_VERSION, '5.3.0') >= 0 OR mb_strtoupper(mb_substr(PHP_OS, 0, 3) !== 'WIN')) { 103 $Ret = checkdnsrr( $Domain, 'MX' ) OR checkdnsrr( $Domain, 'A' ); 232 } elseif ($_SESSION['WikiApp']==_('MediaWiki')){ 233 echo '<a target="_blank" href="../' . $_SESSION['WikiPath'] . '/index.php/' . $type . '/' . $id . '">' . _('Wiki ' . $type . ' Knowlege Base') . '</a><br />'; 234 } elseif ($_SESSION['WikiApp']==_('DokuWiki')){SpecialExport.php https://code.google.com/p/alfresco-php-sdk/ | PHP | 132 lines
1<?php 2# Copyright (C) 2003 Brion Vibber <brion@pobox.com> 117 118 $form = wfOpenElement( 'form', array( 'method' => 'post', 'action' => $titleObj->getLocalUrl() ) ); 119 $form .= wfOpenElement( 'textarea', array( 'name' => 'pages', 'cols' => 40, 'rows' => 10 ) ) . '</textarea><br />';File.php git://github.com/kohana/core.git | PHP | 241 lines
1<?php defined('SYSPATH') OR die('No direct script access.'); 2/** 14 * Attempt to get the mime type from a file. This method is horribly 15 * unreliable, due to PHP being horribly unreliable when it comes to 16 * determining the mime type of a file. 68 * 69 * @param string $extension php, pdf, txt, etc 70 * @return string mime type on success 157 // Open the input file 158 $file = fopen($filename, 'rb'); 159 175 $piece = str_pad($pieces, 3, '0', STR_PAD_LEFT); 176 $piece = fopen($filename.'.'.$piece, 'wb+'); 177 211 // Open the file 212 $file = fopen($filename, 'wb+'); 213upload-file.php http://pirozek-yaps.googlecode.com/svn/trunk/ | PHP | 120 lines
1<?php 2include '../../../config.php'; 42 43$handler = fopen('log.txt','a'); 44fwrite($handler,$file_for_upload."\n\n".print_r($_FILES,true)); 51 52 $handler = fopen('log.txt','a'); 53 fwrite($handler,'nahrano!'); 81 82 $handler = fopen('log.txt','a'); 83 fwrite($handler,"\n\nerror ".$_FILES['Filedata']['error']." --- ".$_FILES['Filedata']['tmp_name']."---> ".$_FILES['Filedata']['name']." %%% ".$file."($size)");receipt_add.php git://git.savannah.nongnu.org/gcourrier.git | PHP | 193 lines
1<?php 2/* 21 22require('phppdflib/phppdflib.class.php'); 23require('functions/mail.php'); 23require('functions/mail.php'); 24require('init.php'); 25 173$path = "accuse/$filename"; 174$inF = fopen($path, "wn"); 175fputs($inF, $pdf->generate(0)); 179 180include('templates/header.php'); 181echo "<p>" 181echo "<p>" 182. "<a href='file_view.php/" 183. $filenameclass.update.php https://code.google.com/p/mangoswebv3/ | PHP | 426 lines
1<?php 2/****************************************************************************/ 106 { 107 $variables_file_address = $this->server_address."update_". (string)$this->update_version ."/update_vars.php"; 108 $file = file($variables_file_address); 203 $rm = file_exists($path); 204 $f = @fopen($path, 'a'); 205 if ($f == false) 377 { 378 // Start by replacing .php to .upd, and using file_get_contents 379 $updated_file_url = $this->server_address."/update_".$this->update_version."/".str_replace(".php",".upd",$filename); 381 382 // As long as the file isnt empty, lets use fopen, and fwrite to put the contents in the file. 383 if($updated_file_contents != "") 384 { 385 $file = fopen($filename,"w"); 386 fwrite($file, $updated_file_contents);Config_File.class.php git://github.com/openmelody/melody.git | PHP | 389 lines
1<?php 2 19 * 20 * @link http://smarty.php.net/ 21 * @version 2.6.13 22 * @copyright Copyright: 2001-2005 New Digital Group, Inc. 23 * @author Andrei Zmievski <andrei@php.net> 24 * @access public 27 28/* $Id: Config_File.class.php,v 1.84 2006/01/18 19:02:52 mohrt Exp $ */ 29 236 ini_set('track_errors', true); 237 $fp = @fopen($config_file, "r"); 238 if (!is_resource($fp)) { 377 /** 378 * @uses trigger_error() creates a PHP warning/error 379 * @param string $error_msgCache.php git://github.com/daylightstudio/FUEL-CMS.git | PHP | 258 lines
1<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); 2 71 // Ok, so setting ttl = 0 is not quite forever, but 1000 years 72 // Is your PHP code going to be running for 1000 years? If so dont use this library (or just regenerate the cache then)! 73 // 77 78 $f1 = fopen($expiry_file, 'w'); 79 $f2 = fopen($cache_file, 'w');test_environment.php git://github.com/mrclay/minify.git | PHP | 139 lines
1<?php 2 2 3//phpinfo(); exit(); 4 22 23require_once '_inc.php'; 24 42 echo "\nDOCUMENT_ROOT is set to: '{$_SERVER['DOCUMENT_ROOT']}'. If you " 43 . "cannot modify this, consider setting \$min_documentRoot in config.php\n\n"; 44 } 46 echo "\n environment : \$_SERVER['SUBDOMAIN_DOCUMENT_ROOT'] is set. " 47 . "You may need to set \$min_documentRoot to this in config.php\n"; 48 } 48 } 49 if (realpath(__FILE__) !== realpath($_SERVER['DOCUMENT_ROOT'] . '/min_unit_tests/test_environment.php')) { 50 echo " environment : /min_unit_tests/ is not directly inside DOCUMENT_ROOT\n";acceptFile.php https://code.google.com/p/s3db/ | PHP | 291 lines
1<?php 2function put_the_frag_on_frag_file($F) 106 107$fin = fopen($filelocation, 'a+'); 108 180 $indname = $folder.'ind'.$file_id.'.txt'; 181 $fid = fopen($filename, 'a+'); 182 chmod($filename, 0777); 185 if($fragNr=='' || $fileStr=='') 186 { $msg= "Syntax: uploads.php?filekey=[filekey]&fragNr=x/Total&fileStr=[encoded as base 64 fragment string]&encode=1<BR>"; 187 #echo "<filekey>...</filekey><BR>";SpecialListusers.php https://code.google.com/p/alfresco-php-sdk/ | PHP | 235 lines
1<?php 2 79 # Form tag 80 $out = wfOpenElement( 'form', array( 'method' => 'post', 'action' => $self->getLocalUrl() ) ); 81 83 $out .= wfElement( 'label', array( 'for' => 'group' ), wfMsg( 'group' ) ) . ' '; 84 $out .= wfOpenElement( 'select', array( 'name' => 'group' ) ); 85 $out .= wfElement( 'option', array( 'value' => '' ), wfMsg( 'group-all' ) ); # Item for "all groups"onupdate.php http://xoopscube-modules.googlecode.com/svn/trunk/ | PHP | 147 lines
1<?php 2 24 $template_dir = XOOPS_ROOT_PATH . '/modules/' . $dirname . '/templates'; 25 include_once XOOPS_ROOT_PATH . '/class/template.php'; 26 $msgs[] = 'Updating templates...'; 110 if ($prev_version < 30) { 111 $file = fopen(XOOPS_UPLOAD_PATH . "/" . $dirname . "/.htaccess", "w"); 112 flock($file, LOCK_EX);smtp_old.php http://mootoolstools.googlecode.com/svn/trunk/ | PHP | 338 lines
2/*********************************** 3PHP MIME?SMTP ver 1.0 Powered by Boss_ch? Unigenius soft ware co. Ltd 4All rights reserved, Copyright 2000 ; 125 // ???????????????? 126 $img_file_con=fopen($image_tag,"r"); 127 unset($image_data); 259 if (file_exists($file_source)) { 260 $file_data=addslashes(fread($fp=fopen($file_source,"r"), filesize($file_source))); 261 $file_data=chunk_split(base64_encode(StripSlashes($file_data))); 317<? 318include("smtp.php"); 319CryptUtil.php git://github.com/openid/php-openid.git | PHP | 121 lines
1<?php 2 6 * 7 * PHP versions 4 and 5 8 * 46 } else { 47 $f = @fopen(Auth_OpenID_RAND_SOURCE, "r"); 48 if ($f === false) {up_vote.php http://cartonbank.googlecode.com/svn/trunk/ | PHP | 173 lines
1<?php 2include("config.php"); 45 //'http://cartoonbank.ru/wp-content/totwit/totwit.php?artist=Vasya&cid='.$id 46 $handle = fopen("http://cartoonbank.ru/wp-content/totwit/totwit.php?cid=".$id, "r"); 47 fclose($handle); 49 // send update to Livejournal 50 $handle = fopen("http://cartoonbank.ru/wp-content/plugins/lj-post-ales/post_to_lj.php?id=".$id, "r"); 51 fclose($handle); 53 // send update to Facebook 54 // $handle = fopen("http://cartoonbank.ru/wp-content/plugins/fb-post-ales/fb_post.php?id=".$id, "r"); 55 63{ 64 $fp = fopen('_kloplog.txt', 'a'); 65 fwrite($fp, $text); 161 /* ????????? ??????? ??????? ? ???????? XML-????????? */ 162 $v = php_xmlrpc_decode($r->value()); 163 print_r($v);Archive.class.php git://github.com/tpruvot/GitPHP.git | PHP | 560 lines
12 13require_once(GITPHP_GITOBJECTDIR . 'GitExe.class.php'); 14require_once(GITPHP_GITOBJECTDIR . 'Commit.class.php'); 544 545 $formats[GITPHP_COMPRESS_TAR] = GitPHP_Archive::FormatToExtension(GITPHP_COMPRESS_TAR); 546 547 // TODO check for git > 1.4.3 for zip 548 $formats[GITPHP_COMPRESS_ZIP] = GitPHP_Archive::FormatToExtension(GITPHP_COMPRESS_ZIP); 549 550 if (function_exists('bzcompress')) 551 $formats[GITPHP_COMPRESS_BZ2] = GitPHP_Archive::FormatToExtension(GITPHP_COMPRESS_BZ2); 552 553 if (function_exists('gzencode')) 554 $formats[GITPHP_COMPRESS_GZ] = GitPHP_Archive::FormatToExtension(GITPHP_COMPRESS_GZ); 555CSV.php https://PHPExcel.svn.codeplex.com/svn | PHP | 305 lines
22 * @package PHPExcel_Writer 23 * @copyright Copyright (c) 2006 - 2007 PHPExcel (http://www.codeplex.com/PHPExcel) 24 * @license http://www.gnu.org/licenses/lgpl.txt LGPL 32/** PHPExcel_Cell */ 33require_once 'PHPExcel/Cell.php'; 34 45 */ 46class PHPExcel_Writer_CSV implements PHPExcel_Writer_IWriter { 47 /** 91 * 92 * @param PHPExcel $phpExcel PHPExcel object 93 */ 94 public function __construct(PHPExcel $phpExcel) { 95 $this->_phpExcel = $phpExcel; 96 $this->_delimiter = ',';lib.captcha.class.php http://php-ppcms.googlecode.com/svn/trunk/ | PHP | 356 lines
1<?php 2/*************************************************************** 23 /** Dictionary word file (empty for randnom text) */ 24 var $wordsFile = 'words/en.php'; 25 235 236 $fp = fopen($wordsfile, "r"); 237 $length = strlen(fgets($fp));file.php git://github.com/fuel/core.git | PHP | 371 lines
1<?php 2/** 2/** 3 * Fuel is a fast, lightweight, community driven PHP 5.4+ framework. 4 * 9 * @copyright 2010 - 2019 Fuel Development Team 10 * @link https://fuelphp.com 11 */ 235 $exists = is_file($file); 236 $handle = fopen($file, 'c'); 237 if ($handle) 284 { 285 $handle = fopen($file, 'r'); 286 if ($handle)HttpClient.php http://firephp.googlecode.com/svn/trunk/ | PHP | 0 lines
1<?php 2 25 */ 26require_once 'Zend/Exception.php'; 27 30 */ 31require_once 'Zend/Http/Client.php'; 32 94 $useIncludePath = false) { 95 $fp = fopen($file, "r", $useIncludePath); 96 $key = ''; 106 * 107 * In order to call this method, openssl must be enabled in your PHP 108 * installation. Otherwise, a Zend_Gdata_App_InvalidArgumentException 117 if ($key != null && !function_exists('openssl_pkey_get_private')) { 118 require_once 'Zend/Gdata/App/InvalidArgumentException.php'; 119 throw new Zend_Gdata_App_InvalidArgumentException(MessageTest.php git://github.com/zendframework/zf2.git | PHP | 446 lines
1<?php 2/** 39 */ 40class MessageTest extends \PHPUnit_Framework_TestCase 41{ 90 { 91 $fh = fopen($this->_file, 'r'); 92 $message = new Message(array('file' => $fh)); 129 130 $this->assertEquals(substr($message->getContent(), 0, 5), '<?php'); 131 135 136 $this->assertEquals(substr($message->getContent(), 0, 6), "\t<?php"); 137 } 204 if ($num == 1) { 205 // explicit call of __toString() needed for PHP < 5.2 206 $this->assertEquals(substr($part->__toString(), 0, 14), 'The first part');class.wsdlcache.php https://bitbucket.org/chamilo/chamilo/ | PHP | 210 lines
1<?php 2/* 14* @author Ingo Fischer <ingo@apollon.de> 15* @version $Id: class.wsdlcache.php 137 2009-11-09 13:24:37Z vanpouckesven $ 16* @access public 98 } 99 $fp = @fopen($filename, "r"); 100 if ($fp) { 128 } 129 $this->fplock[md5($filename)] = fopen($filename.".lock", "w"); 130 if ($mode == "r") { 147 if ($this->obtainMutex($filename, "w")) { 148 $fp = fopen($filename, "w"); 149 if (! $fp) {file2folder.php https://code.google.com/p/s3db/ | PHP | 287 lines
1<?php 2#File2folder will accept the file and transfer it to its appropriate location in the 129 #is there a tab in the first 100 chars? If not, it probably is not a text file 130 $h=@fread(@fopen($uploaded_file, 'r'), '1000'); 131import_NS_data_sample.php http://prohits.googlecode.com/svn/trunk/ | PHP | 471 lines
1<?php 2/*********************************************************************** 21$frm_username = ''; 22$PHP_SELF = ''; 23$frm_password = ''; 30 31require_once("../msManager/is_dir_file.inc.php"); 32 89 $frm_fields_enclosed_by = stripslashes($frm_fields_enclosed_by); 90 $fd = fopen ($tmp_import_file, "r"); 91 $fd_tmp = fopen("./tmp/tmp_import_file_$REMOTE_ADDR.modified.txt", "w"); 129 if($table_name == "UploadMDS" or $table_name == "UploadMDS2" ){ 130 require("../classes/yeastDB_class.php"); 131 require("../db/dbstart.php"); 133 } 134 $fd = fopen ($tmp_import_file, "r"); 135 $out_preview = "<table border=1>";funcs-misc.php http://umspx.googlecode.com/svn/trunk/ | PHP | 198 lines
1<?php 2 include_once($_SERVER["DOCUMENT_ROOT"].'/umsp/funcs-config.php'); 24 $tmpPluginPath = Array( 25 dirname(__FILE__).'/user-plugins/'. $pluginName . '.php', 26 dirname(__FILE__).'/plugins/'. $pluginName . '.php', 26 dirname(__FILE__).'/plugins/'. $pluginName . '.php', 27 dirname(__FILE__).'/plugins/'. $pluginName . '/' . $tmpArr[2] . '.php', 28 dirname(__FILE__).'/plugins/'. $pluginName . '/' . $pluginName . '.php' 159 $myFile = $prmFile; 160 $fh = fopen($myFile, 'a') or die(); 161 fwrite($fh, $content . "\r\n");