????JFIF??x?x????'
| Server IP : 79.136.114.73 / Your IP : 216.73.216.36 Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64 User : www-data ( 33) PHP Version : 5.5.9-1ubuntu4.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/self/root/home/b8009/php-5.6.22/ext/ |
Upload File : |
<?php
/* $Id$ */
if (php_sapi_name() != "cli") {
echo "Please run this script using the CLI version of PHP\n";
exit;
}
/*
This script can be used on Win32 systems
1) Make sure you have CygWin installed
2) Adjust the $cygwin_path to match your installation
3) Change the environment cariable PATHEXT to include .PHP
4) run ext_skel --extname=...
the first time you run this script you will be asked to
associate it with a program. chooses the CLI version of php.
*/
$cygwin_path = 'c:\cygwin\bin';
$path = getenv("PATH");
putenv("PATH=$cygwin_path;$path");
array_shift($argv);
system("sh ext_skel " . implode(" ", $argv));
$extname = "";
$skel = "skeleton";
foreach($argv as $arg) {
if (strtolower(substr($arg, 0, 9)) == "--extname") {
$extname = substr($arg, 10);
}
if (strtolower(substr($arg, 0, 6)) == "--skel") {
$skel = substr($arg, 7);
}
}
$fp = fopen("$skel/skeleton.dsp", "rb");
if ($fp) {
$dsp_file = fread($fp, filesize("$skel/skeleton.dsp"));
fclose($fp);
$dsp_file = str_replace("extname", $extname, $dsp_file);
$dsp_file = str_replace("EXTNAME", strtoupper($extname), $dsp_file);
$fp = fopen("$extname/$extname.dsp", "wb");
if ($fp) {
fwrite($fp, $dsp_file);
fclose($fp);
}
}
$fp = fopen("$extname/$extname.php", "rb");
if ($fp) {
$php_file = fread($fp, filesize("$extname/$extname.php"));
fclose($fp);
$php_file = str_replace("dl('", "dl('php_", $php_file);
$fp = fopen("$extname/$extname.php", "wb");
if ($fp) {
fwrite($fp, $php_file);
fclose($fp);
}
}
?>