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
$ dd if=/dev/zero of=tmpfile1 bs=1024 count=90000 |
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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charaset="UTF-8"> | |
<script src="http://code.jquery.com/jquery-1.6.4.min.js"></script> | |
<title>メモ帳</title> | |
</head> | |
<body> | |
<h1>メモ帳</h1> | |
<textarea id="memo" rows="10" cols="40" name="memo"></textarea> |
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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="UTF-8" /> | |
<script src="http://code.jquery.com/jquery-1.6.4.min.js"></script> | |
<title>一行掲示板</title> | |
</head> | |
<body> | |
<h1>一行掲示板</h1> | |
<form action="" method="post"> |
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
$ ls -l | cut -f 5 -d" " | |
60974881 | |
59324524 | |
55605231 | |
51894156 | |
48293723 | |
44810780 | |
41347986 | |
37894218 | |
34493241 |
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
function show_category_page( $atts, $content = null ) { | |
if ( is_category() ) { | |
return $content | |
} | |
} | |
add_shortcode('show_category_page', 'show_category_page); |
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 | |
putenv('CLASSPATH=/opt/・・・'); //CLASSPATHを通す必要がある時は設定する | |
$arg= 'parameter1'; //引数の入力例 | |
$ret = exec("java sample $arg"); | |
echo $ret; | |
?> |
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 | |
$stdin = file_get_contents('php://stdin', 'rb'); | |
preg_match_all('@<img .*?/>@isu' ,$stdin ,$regex, PREG_SET_ORDER); | |
foreach ($regex as $str) { | |
echo $str[0] . PHP_EOL; | |
} | |
?> |
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 | |
$proxy = array( | |
'http' => array( | |
'proxy' => 'tcp://127.0.0.1:8080', | |
'request_fulluri' => True, | |
), | |
); | |
$context = stream_context_create($proxy); |
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
Warning: file_get_contents(http://xxx.co.jp/xxx.jpg): | |
failed to open stream: operation failed in /xxxx.php on line 66 |
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
Warning: strtotime(): It is not safe to rely on the system's timezone settings. | |
You are *required* to use the date.timezone setting or the date_default_timezone_set() function. | |
In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. | |
We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. | |
in /xxxx.php on line 52 |