This file contains hidden or 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
$val = Validation::forge(); | |
$password = Input::post('password'); | |
$confirm_password = Input::post('confirm_password'); | |
$val->add('password', 'パスワード') | |
->add_rule('trim') | |
->add_rule('required') | |
->add_rule('min_length', 8) | |
->add_rule('max_length', 16) |
This file contains hidden or 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
/** | |
* GoogleanAlyticsトラッキングを、PHPで強引に送信する | |
* | |
* @param type $long_url | |
* @param type $title | |
* @param type $remote_addr | |
* @param type $http_user_agent | |
*/ | |
public static function googleanalytics_track($long_url, $title, $remote_addr, $http_user_agent) | |
{ |
This file contains hidden or 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
// $date = "Tue, 20 Jan 2015 12:20:53 +0900" | |
// $sdate = "2013-08-25T17:00:00+00:00" | |
$tpdate = new DateTime($date); | |
$sdate = $tpdate->format('Y-m-d\TH:i:s'); |
This file contains hidden or 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_error_handler(function($errno, $errstr, $errfile, $errline) { | |
throw new \Exception($errstr, $errno); | |
}); | |
try { | |
$search = array("\0", "\x01", "\x02", "\x03", "\x04", "\x05","\x06", "\x07", "\x08", "\x0b", "\x0c", "\x0e", "\x0f"); | |
$options = array( | |
'http' => array( | |
'method' => 'GET', |
This file contains hidden or 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
function getXmlData($rss_url = NULL) { | |
set_error_handler(function($errno, $errstr, $errfile, $errline) { | |
throw new Exception($errstr, $errno); | |
}); | |
try { | |
$search = array("\0", "\x01", "\x02", "\x03", "\x04", "\x05","\x06", "\x07", "\x08", "\x0b", "\x0c", "\x0e", "\x0f"); | |
$options = array( | |
'http' => array( |
This file contains hidden or 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
auto eth1 | |
iface eth1 inet static | |
address 172.16.1.2 | |
netmask 255.255.0.0 | |
network 172.16.0.1 | |
broadcast 172.16.255.255 |
This file contains hidden or 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
auto eth1 | |
iface eth1 inet static | |
address 172.16.1.1 | |
netmask 255.255.0.0 | |
network 172.16.0.1 | |
broadcast 172.16.255.255 |
This file contains hidden or 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
/** | |
* GoogleanAlyticsトラッキングを、PHPで強引に送信する | |
* | |
* @param type $long_url | |
* @param type $title | |
* @param type $remote_addr | |
* @param type $http_user_agent | |
*/ | |
public static function googleanalytics_track($long_url, $title, $remote_addr, $http_user_agent) | |
{ |
This file contains hidden or 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
Fuel\Core\Database_Exception [ Warning ]: | |
mysqli::mysqli(): Headers and client library minor version mismatch. Headers:50540 Library:50622 |
This file contains hidden or 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
wp s3-uploads migrate-attachments --url=acmilan.f14s.xyz | |
wp s3-uploads enable --url=acmilan.f14s.xyz |
OlderNewer