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
rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm | |
yum install yum-plugin-replace -y | |
yum replace php-common --replace-with=php55w-common |
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
#!/usr/bin/php | |
<?php | |
$scheme='tcp'; | |
$host='www.kernel.org'; | |
$port=80; | |
$path='/'; | |
if(isset($argv[1])) { | |
$parsedUrl=parse_url($argv[1]); |
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 | |
/** | |
* Returns the active language. | |
* @return string the locale. | |
*/ | |
public function resolveActiveLanguage() | |
{ | |
$user = user(); | |
$matches = array(); | |
if ($user->hasState('__locale')) { |
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
" Modeline and notes { | |
" vim: set foldmarker={,} foldlevel=0 foldmethod=marker spell: | |
" } | |
" Setup Environment { | |
" The following two lines are required by Vundle. | |
set nocompatible " be iMproved | |
filetype off " required! | |
" Windows Compatibility |
NewerOlder