This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'./configure' '--prefix=/home/admaker/mcam/local/php' '--with-apxs2=/home/admaker/mcam/local/apache/bin/apxs' '--with-mysql=/home/admaker/mcam/local/mysql' '--with-mysqli=/home/admaker/mcam/local/mysql/bin/mysql_config' '--with-mhash=/home/admaker/mcam/lib/mhash-0.9.7.1' '--with-libxml-dir=/home/admaker/mcam/lib/libxml2-2.6.26' '--with-gd=/home/admaker/mcam/lib/gd-2.0.33' '--with-png-dir=/home/admaker/mcam/lib/libpng-1.2.12' '--with-jpeg-dir=/home/admaker/mcam/lib/jpeg-6b' '--with-freetype-dir=/home/admaker/mcam/lib/freetype-2.4.2' '--with-mcrypt=/home/admaker/mcam/lib/libmcrypt-2.5.7' '--with-zlib-dir=/home/admaker/mcam/lib/zlib-1.2.3' '--enable-bcmath' '--enable-ftp' '--enable-sockets' '--enable-wddx' '--with-iconv' '--enable-mbstring' '--disable-dom' '--without-sqlite' '--enable-shmop' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--enable-mbstring --with-openssl --with-mysql=/home/admaker/mcam/local/mysql --with-mysqli=/home/admaker/mcam/local/mysql/bin/mysql_config --with-zlib-dir=/home/admaker/mcam/lib/zlib-1.2.3 --with-iconv --enable-mbstring --enable-shmop --enable-sockets --enable-wddx --enable-fastcgi --enable-fpm --prefix=/usr/local/php --with-curl --with-curlwrappers --with-config-file-path=/usr/local/php/lib --enable-pcntl | |
'./configure' '--prefix=/home/admaker/mcam/local/php' '--with-apxs2=/home/admaker/mcam/local/apache/bin/apxs' '--with-mysql=/home/admaker/mcam/local/mysql' '--with-mysqli=/home/admaker/mcam/local/mysql/bin/mysql_config' '--with-mhash=/home/admaker/mcam/lib/mhash-0.9.7.1' '--with-libxml-dir=/home/admaker/mcam/lib/libxml2-2.6.26' '--with-gd=/home/admaker/mcam/lib/gd-2.0.33' '--with-png-dir=/home/admaker/mcam/lib/libpng-1.2.12' '--with-jpeg-dir=/home/admaker/mcam/lib/jpeg-6b' '--with-freetype-dir=/home/admaker/mcam/lib/freetype-2.4.2' '--with-mcrypt=/home/admaker/mcam/lib/libmcrypt-2.5.7' '--with-zlib-dir=/ho |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat /etc/issue |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php $curl = curl_init(); | |
$httpHeader = array( | |
'Content-Type: application/x-www-form-urlencoded', | |
); | |
$curlOptions = array( | |
CURLOPT_URL => self::MESSAGER_SERVICE_URL, | |
CURLOPT_TIMEOUT => 3, | |
CURLOPT_HTTPHEADER => $httpHeader, | |
CURLOPT_POST => TRUE, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$consumer_key = $this->generateKey(true); | |
$consumer_secret= $this->generateKey(); | |
public function generateKey ( $unique = false ) | |
{ | |
$key = md5(uniqid(rand(), true)); | |
if ($unique) | |
{ | |
list($usec,$sec) = explode(' ',microtime()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
void main() | |
{ | |
char a[] = "i am a boy"; | |
char b[20]; | |
int i; | |
for (i = 0; *(a + i) != '\0'; i++) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HTTP/1.1 200 OK | |
Date: Fri, 09 Jul 2010 02:30:43 GMT | |
Server: BWS/1.0 | |
Content-Length: 4185 | |
Content-Type: text/html;charset=gb2312 | |
Cache-Control: private | |
Expires: Fri, 09 Jul 2010 02:30:43 GMT | |
Set-Cookie: BAIDUID=5734F922761D06577D84C404645F2717:FG=1; expires=Fri, 09-Jul-40 02:30:43 GMT; path=/; domain=.baidu.com | |
P3P: CP=" OTI DSP COR IVA OUR IND COM " |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Socket { | |
private $_host = 'www.google.com.hk'; | |
private $_port = '80'; | |
private $_socket = null; | |
private $_timeout = 30; | |
private $_method = ''; | |
private $_protocol = 'tcp'; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible | |
set nobomb | |
set ambiwidth=double | |
set encoding=utf-8 | |
set termencoding=utf-8 | |
set langmenu=zh_CN.UTF-8 | |
language message zh_CN.UTF-8 | |
set guifont=Droid\ Sans\ Mono:h12 | |
set ts=4 | |
set shiftwidth=4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Queue { | |
private $_queueArr; | |
private $_front; | |
private $_rear; | |
private $_queueSize = 10; | |
public function __construct() { |
NewerOlder