<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8437464</id><updated>2026-07-23T23:05:29.427-07:00</updated><category term="perl"/><category term="PHP"/><category term="Javascript"/><category term="MySQL"/><category term="Template Toolkit"/><category term="Smarty"/><category term="MVC"/><category term="ajax"/><category term="apache"/><category term="curl"/><category term="prototype.js"/><category term="jquery.js"/><category term="postfix"/><category term="Ethna"/><category term="HTML"/><category term="HTML::Template"/><category term="OMA"/><category term="PHP Imagemagick"/><category term="POSIX"/><category term="PostgreSQL"/><category term="Template::Toolkit"/><category term="USB"/><category term="WordPress"/><category term="apache2"/><category term="dbh"/><category term="email"/><category term="linux"/><category term="memcache"/><category term="mod_perl"/><category term="mod_rewrite"/><category term="mount"/><category term="pear"/><category term="perl 配列"/><category term="phpmyadmin"/><category term="ps"/><category term="tar"/><category term="wget"/><category term="コンストラクト"/><category term="ソート"/><category term="ファイルサイズ"/><category term="ファイルロック"/><category term="多次元配列"/><category term="携帯"/><category term="日付"/><category term="正規表現"/><category term="解凍"/><category term="転送不可"/><category term="配列"/><title type='text'>rings100&#39;s プログラミング</title><subtitle type='html'>Perl,PHPなどのWeb系プログラミングのTipsです。</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://100rings.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8437464/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://100rings.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/8437464/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>151</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8437464.post-5349888757470465183</id><published>2010-09-19T09:08:00.000-07:00</published><updated>2010-09-19T09:12:12.739-07:00</updated><title type='text'>Websphereでの外部jarの認識</title><content type='html'>eclipseで外部Jarの追加をした場合、Websphereも当然、それを認識させる必要がある。&lt;br /&gt;簡単なのはLibファイルにそれらをいれてしまうこと。&lt;br /&gt;Websphere\AppServer\libの下など</content><link rel='replies' type='application/atom+xml' href='http://100rings.blogspot.com/feeds/5349888757470465183/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8437464/5349888757470465183' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8437464/posts/default/5349888757470465183'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8437464/posts/default/5349888757470465183'/><link rel='alternate' type='text/html' href='http://100rings.blogspot.com/2010/09/webspherejar.html' title='Websphereでの外部jarの認識'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8437464.post-6222723761752456200</id><published>2009-11-23T22:18:00.001-08:00</published><updated>2009-11-23T22:19:59.825-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="perl"/><title type='text'>Perl 定義ファイルの例と使い方</title><content type='html'>---定義ファイルの例&lt;br /&gt;# Mysql DB Configure&lt;br /&gt;    DB_HOST = &#39;localhost&#39;&lt;br /&gt;    DB_USER = &#39;test&#39;&lt;br /&gt;    DB_PASSWORD = &#39;test1234&#39;&lt;br /&gt;    DB_DATABASE = &#39;test&#39;&lt;br /&gt;----&lt;br /&gt;&lt;br /&gt;#!/usr/bin/perl&lt;br /&gt;open (CONF,&quot;dbs.conf&quot;) || die &quot;cannot open conf file!&quot;;&lt;br /&gt;while (&lt;CONF&gt;) {&lt;br /&gt;    $_ =~ s/\#.*//g;&lt;br /&gt;    if ($_ =~ /&#39;.*&#39;/) {&lt;br /&gt;        /(\S+).*=.*\&#39;(\S+)\&#39;/;&lt;br /&gt;        ${lc($1)} = $2;&lt;br /&gt;        }&lt;br /&gt;}&lt;br /&gt;close (CONF);</content><link rel='replies' type='application/atom+xml' href='http://100rings.blogspot.com/feeds/6222723761752456200/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8437464/6222723761752456200' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8437464/posts/default/6222723761752456200'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8437464/posts/default/6222723761752456200'/><link rel='alternate' type='text/html' href='http://100rings.blogspot.com/2009/11/perl.html' title='Perl 定義ファイルの例と使い方'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8437464.post-4349863572604605051</id><published>2009-11-04T01:16:00.000-08:00</published><updated>2009-11-04T01:18:37.550-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="wget"/><title type='text'>wget PHP</title><content type='html'>/*&lt;br /&gt;$url = &quot; http://192.168.1.1/test/test.php&quot;;&lt;br /&gt;$www = new wget();&lt;br /&gt;$but = $www-&gt;get($url,true,true, &quot;aaa=1&amp;www=2&quot;); // パラメータでシングルコーテーションは&amp;#039;に変更する&lt;br /&gt;echo $but;&lt;br /&gt;*/&lt;br /&gt;&lt;br /&gt;class wget{&lt;br /&gt; const SAVE_COOKIE = &quot;--save-cookies cookies.txt --keep-session-cookies&quot;;&lt;br /&gt; const LOAD_COOKIE = &quot;--load-cookies cookies.txt&quot;;&lt;br /&gt; const OUT_FILE = &quot;test11.text&quot;; &lt;br /&gt; &lt;br /&gt; const DEV = &quot; &gt;/dev/null 2&gt;&amp;1 &quot;;&lt;br /&gt; const OP_TIME = &quot;--timeout=60 --wait=5&quot;;&lt;br /&gt; const SAVE_FILE = &quot;--output-document=test11.text&quot;;&lt;br /&gt; const TRIES = &quot; -t 1 &quot;;&lt;br /&gt; const USERAGENT = &#39;--user-agent=&quot;Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)&quot;&#39;; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt; public function __construct(){&lt;br /&gt;&lt;br /&gt; }&lt;br /&gt; /*&lt;br /&gt;  post_data = &quot;ssss=qqq&amp;eee=1&quot;;&lt;br /&gt; */&lt;br /&gt; public function get($url,$save_cookie=null,$load_cookie=null,$post_data=null){&lt;br /&gt;  if ($save_cookie==true){&lt;br /&gt;   $save_cookie = self::SAVE_COOKIE;&lt;br /&gt;  }else{&lt;br /&gt;   $save_cookie = &quot;&quot;;&lt;br /&gt;  }&lt;br /&gt;  if ($load_cookie==true){&lt;br /&gt;   $load_cookie = self::LOAD_COOKIE;&lt;br /&gt;  }else{&lt;br /&gt;   $load_cookie = &quot;&quot;;&lt;br /&gt;  }&lt;br /&gt;  if ($post_data!=null){&lt;br /&gt;   $post_data = &quot;--post-data=&#39;&quot;.$post_data.&quot;&#39;&quot;;&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  $com = &quot;wget&quot;. self::TRIES .&quot; $save_cookie $load_cookie  &quot;. self::OP_TIME.&quot; &quot;. self::USERAGENT.&quot; &quot;. $post_data.&quot; &quot;. $url .&quot; &quot; .self::SAVE_FILE.&quot; &quot; .self::DEV;&lt;br /&gt;  $foo = system($com,$output);&lt;br /&gt;  $buff = file_get_contents( self::OUT_FILE, true);&lt;br /&gt;  return $buff;&lt;br /&gt;&lt;br /&gt; }&lt;br /&gt; public function __destruct(){&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;}</content><link rel='replies' type='application/atom+xml' href='http://100rings.blogspot.com/feeds/4349863572604605051/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8437464/4349863572604605051' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8437464/posts/default/4349863572604605051'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8437464/posts/default/4349863572604605051'/><link rel='alternate' type='text/html' href='http://100rings.blogspot.com/2009/11/wget-php.html' title='wget PHP'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8437464.post-2607564465343520769</id><published>2009-10-22T00:26:00.000-07:00</published><updated>2009-10-22T00:27:37.195-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><title type='text'>file_get_contentsのCookie取得のサンプル</title><content type='html'>$url = &quot;http://hoge.com/&quot;;&lt;br /&gt; $data = array();&lt;br /&gt;&lt;br /&gt; $data[&#39;TITLE&#39;] = &quot;hhh&quot;;&lt;br /&gt; $data[&#39;NAME&#39;] = &quot;aaa&quot;;&lt;br /&gt;&lt;br /&gt; $options = array(&#39;http&#39; =&gt; array(&lt;br /&gt;        &#39;method&#39; =&gt; &#39;POST&#39;,&lt;br /&gt;        &#39;content&#39; =&gt; http_build_query($data),&lt;br /&gt;&lt;br /&gt; ));&lt;br /&gt; $content = file_get_contents($url, false, stream_context_create($options));&lt;br /&gt;&lt;br /&gt; &lt;br /&gt; $nLines = count( $http_response_header ); // after file_get_contents&lt;br /&gt; $match = &quot;/Set-Cookie: JSESSIONID=(.+):/&quot;;&lt;br /&gt; $cookie = &quot;&quot;;&lt;br /&gt; $matches = array();&lt;br /&gt; for ( $i = 0; $i &lt; $nLines; $i++ )&lt;br /&gt; {&lt;br /&gt;  $line = $http_response_header[$i];&lt;br /&gt;  if (preg_match( $match,$line,$matches))&lt;br /&gt;  {&lt;br /&gt;   $cookie = $matches[1];&lt;br /&gt;   break;&lt;br /&gt;  }&lt;br /&gt;    }&lt;br /&gt; echo $cookie;</content><link rel='replies' type='application/atom+xml' href='http://100rings.blogspot.com/feeds/2607564465343520769/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8437464/2607564465343520769' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8437464/posts/default/2607564465343520769'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8437464/posts/default/2607564465343520769'/><link rel='alternate' type='text/html' href='http://100rings.blogspot.com/2009/10/filegetcontentscookie.html' title='file_get_contentsのCookie取得のサンプル'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8437464.post-324349527897538736</id><published>2009-10-22T00:17:00.000-07:00</published><updated>2009-10-22T00:21:06.294-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="curl"/><title type='text'>curl Postデータ</title><content type='html'>$data = array(&lt;br /&gt; &#39;MAX&#39; =&gt;&#39;20&#39;,&lt;br /&gt; &#39;NAME&#39; =&gt; &#39;田中&#39;,&lt;br /&gt; &#39;ADDRESS&#39; =&gt; &#39;test@test.com&#39;,&lt;br /&gt;);&lt;br /&gt;&lt;br /&gt;$post_words=array();&lt;br /&gt;foreach( $data as $key =&gt; $value ){&lt;br /&gt;   $post_words[] = $key. &quot;=&quot; .$value;&lt;br /&gt;}&lt;br /&gt;$post_word = implode(&quot;&amp;&quot;, $post_words);&lt;br /&gt;&lt;br /&gt;curl_setopt($ch,CURLOPT_POSTFIELDS,$post_word);</content><link rel='replies' type='application/atom+xml' href='http://100rings.blogspot.com/feeds/324349527897538736/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8437464/324349527897538736' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8437464/posts/default/324349527897538736'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8437464/posts/default/324349527897538736'/><link rel='alternate' type='text/html' href='http://100rings.blogspot.com/2009/10/curl-post.html' title='curl Postデータ'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8437464.post-974801604518584547</id><published>2009-10-21T23:49:00.000-07:00</published><updated>2009-10-21T23:51:34.101-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="curl"/><title type='text'>curl とCookie</title><content type='html'>$useragent = &#39;User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)&#39;;&lt;br /&gt; $cookie_save_file = &#39;cookie_data&#39;;&lt;br /&gt;&lt;br /&gt; $url = &#39;http://example.com/test.php&#39;;&lt;br /&gt; $ch = curl_init();&lt;br /&gt; curl_setopt($ch, CURLOPT_URL, $url);&lt;br /&gt; curl_setopt($ch, CURLOPT_TIMEOUT, 2);&lt;br /&gt; curl_setopt ($ch,CURLOPT_POST,1);&lt;br /&gt; $post_word = &quot;input=了承&quot;;&lt;br /&gt; curl_setopt($ch,CURLOPT_POSTFIELDS,$post_word);&lt;br /&gt; curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie_save_file);// 読み込まれるファイル&lt;br /&gt; curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie_save_file);// 内容が保存される。&lt;br /&gt; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);&lt;br /&gt; curl_setopt($ch, CURLOPT_USERAGENT, $useragent);&lt;br /&gt; $content = curl_exec($ch);&lt;br /&gt; curl_close($ch);&lt;br /&gt; &lt;br /&gt; echo $content;</content><link rel='replies' type='application/atom+xml' href='http://100rings.blogspot.com/feeds/974801604518584547/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8437464/974801604518584547' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8437464/posts/default/974801604518584547'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8437464/posts/default/974801604518584547'/><link rel='alternate' type='text/html' href='http://100rings.blogspot.com/2009/10/curl-cookie.html' title='curl とCookie'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8437464.post-4926122528724764995</id><published>2009-08-27T18:37:00.000-07:00</published><updated>2009-08-27T18:38:45.121-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><title type='text'>PHPでXlsファイルを作成</title><content type='html'>xml方式でxlsを作るのですが、結構役立っています。&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;http://www.phpclasses.org/browse/file/8061.html</content><link rel='replies' type='application/atom+xml' href='http://100rings.blogspot.com/feeds/4926122528724764995/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8437464/4926122528724764995' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8437464/posts/default/4926122528724764995'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8437464/posts/default/4926122528724764995'/><link rel='alternate' type='text/html' href='http://100rings.blogspot.com/2009/08/phpxls.html' title='PHPでXlsファイルを作成'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8437464.post-7759812996852459564</id><published>2009-08-26T02:19:00.000-07:00</published><updated>2009-08-26T02:21:21.381-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PHP Imagemagick"/><title type='text'>PHP 画像を縮小</title><content type='html'>&amp;lt;?php&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;$convert = &quot;/usr/bin/convert&quot;;&lt;br /&gt;&lt;br /&gt;$image = &#39;/tmp/ssss.jpg&#39;;&lt;br /&gt;&lt;br /&gt;$newimage = &#39;/tmp/ssss-70x70.jpg&#39;;&lt;br /&gt;&lt;br /&gt;$option = &#39; -resize 70x70  &#39;;&lt;br /&gt;&lt;br /&gt;exec(escapeshellcmd($convert. &#39; &#39; .$option . &#39; &#39; .$image. &#39; &#39; .$newimage));&lt;br /&gt;&lt;br /&gt;chmod ($newimage,0666);&lt;br /&gt;echo &quot;ok&quot;;&lt;br /&gt;?&gt;</content><link rel='replies' type='application/atom+xml' href='http://100rings.blogspot.com/feeds/7759812996852459564/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8437464/7759812996852459564' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8437464/posts/default/7759812996852459564'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8437464/posts/default/7759812996852459564'/><link rel='alternate' type='text/html' href='http://100rings.blogspot.com/2009/08/php.html' title='PHP 画像を縮小'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8437464.post-2018061139823203385</id><published>2009-08-19T00:18:00.000-07:00</published><updated>2009-08-19T00:20:21.535-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="postfix"/><title type='text'>postfix 拡張アドレス</title><content type='html'>test+111@mydomain.com&lt;br /&gt;&lt;br /&gt;vi /etc/postfix/main.cf&lt;br /&gt;に以下を追加&lt;br /&gt;&lt;br /&gt;recipient_delimiter = +&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;vi .forward&lt;br /&gt;~/Maildir/</content><link rel='replies' type='application/atom+xml' href='http://100rings.blogspot.com/feeds/2018061139823203385/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8437464/2018061139823203385' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8437464/posts/default/2018061139823203385'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8437464/posts/default/2018061139823203385'/><link rel='alternate' type='text/html' href='http://100rings.blogspot.com/2009/08/postfix.html' title='postfix 拡張アドレス'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8437464.post-682842834850281061</id><published>2009-08-18T20:37:00.000-07:00</published><updated>2009-08-18T20:40:43.797-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="postfix"/><title type='text'>postfixで .qmail-defaultのようなこと</title><content type='html'>[/etc/postfix/main.cf]&lt;br /&gt;virtual_alias_maps = hash:/etc/postfix/virtual &lt;&lt; 追加&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;書き込み &lt;br /&gt;&lt;br /&gt;/etc/postfix/virtual: &lt;br /&gt;admin@mydomain.com admin このようにしておくとadmin@mydomain.comは転送されない。&lt;br /&gt;@mydomain.com forward &lt;br /&gt;&lt;br /&gt;設定反映&lt;br /&gt;postmap /etc/postfix/virtual&lt;br /&gt;/etc/init.d/postfix reload&lt;br /&gt;&lt;br /&gt;forwardユーザの.forwardにプログラムをキックする場合&lt;br /&gt;vi ~forward/.forward: &lt;br /&gt;&quot;|/test/forward.pl</content><link rel='replies' type='application/atom+xml' href='http://100rings.blogspot.com/feeds/682842834850281061/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8437464/682842834850281061' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8437464/posts/default/682842834850281061'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8437464/posts/default/682842834850281061'/><link rel='alternate' type='text/html' href='http://100rings.blogspot.com/2009/08/postfix-qmail-default.html' title='postfixで .qmail-defaultのようなこと'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8437464.post-4477219649639598535</id><published>2009-02-04T17:49:00.000-08:00</published><updated>2009-02-04T17:51:42.050-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="jquery.js"/><category scheme="http://www.blogger.com/atom/ns#" term="prototype.js"/><title type='text'>イベント監視 prototype.jsと jquery</title><content type='html'>prototype.js&lt;br /&gt;&lt;br /&gt;window.onload = function() { &lt;br /&gt; $$(&#39;a.box&#39;).invoke(&#39;observe&#39;, &#39;click&#39;, function(){&lt;br /&gt;      alert(&#39;Hello world!&#39;); &lt;br /&gt; });&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;jquery.js&lt;br /&gt;&lt;br /&gt;$(document).ready(function(){&lt;br /&gt;    $(&quot;a.box&quot;).click(function(){&lt;br /&gt;      alert(&#39;Hello world!&#39;); &lt;br /&gt;    });&lt;br /&gt;});&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;a href=&quot;#&quot; class=&quot;box&quot; &gt;link&amp;lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://100rings.blogspot.com/feeds/4477219649639598535/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8437464/4477219649639598535' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8437464/posts/default/4477219649639598535'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8437464/posts/default/4477219649639598535'/><link rel='alternate' type='text/html' href='http://100rings.blogspot.com/2009/02/prototypejs-jquery.html' title='イベント監視 prototype.jsと jquery'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8437464.post-6394336494536150099</id><published>2008-12-07T17:18:00.000-08:00</published><updated>2008-12-07T17:20:29.700-08:00</updated><title type='text'>yahoo messenger : change  handle</title><content type='html'>メニュー　Messnger＞ My Contact Details &lt;br /&gt;&lt;br /&gt;Nicknameを変更する。</content><link rel='replies' type='application/atom+xml' href='http://100rings.blogspot.com/feeds/6394336494536150099/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8437464/6394336494536150099' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8437464/posts/default/6394336494536150099'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8437464/posts/default/6394336494536150099'/><link rel='alternate' type='text/html' href='http://100rings.blogspot.com/2008/12/yahoo-messenger-change-handle.html' title='yahoo messenger : change  handle'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8437464.post-8612437801508063928</id><published>2008-10-16T22:32:00.000-07:00</published><updated>2008-10-16T22:34:54.095-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="curl"/><title type='text'>curlによるSSL sample</title><content type='html'>$ch=curl_init();&lt;br /&gt;        $url =  &quot;https://hoge.coom/authentication_email.php&quot;;&lt;br /&gt;        curl_setopt ($ch,CURLOPT_URL, $url );&lt;br /&gt;        curl_setopt ($ch,CURLOPT_POST,1);&lt;br /&gt;        $post = &quot;email=&quot;.$_POST[&#39;email&#39;];&lt;br /&gt;        curl_setopt($ch,CURLOPT_POSTFIELDS,$post);&lt;br /&gt;        curl_setopt($ch,CURLOPT_SSL_VERIFYPEER,FALSE);&lt;br /&gt;        curl_setopt($ch,CURLOPT_SSL_VERIFYHOST,FALSE);&lt;br /&gt;//        curl_setopt ($ch,CURLOPT_RETURNTRANSFER, FALSE);&lt;br /&gt;        curl_setopt ($ch,CURLOPT_RETURNTRANSFER, 1);&lt;br /&gt;&lt;br /&gt;        $ret = curl_exec($ch);&lt;br /&gt;&lt;br /&gt;        if (empty($ret)) {&lt;br /&gt;            // some kind of an error happened&lt;br /&gt;                die(curl_error($ch));&lt;br /&gt;                    curl_close($ch); // close cURL handler&lt;br /&gt;        } else {&lt;br /&gt;            echo $ret;&lt;br /&gt;            //     $info = curl_getinfo($ch);&lt;br /&gt;                  curl_close($ch); // close cURL handler&lt;br /&gt;        }</content><link rel='replies' type='application/atom+xml' href='http://100rings.blogspot.com/feeds/8612437801508063928/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8437464/8612437801508063928' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8437464/posts/default/8612437801508063928'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8437464/posts/default/8612437801508063928'/><link rel='alternate' type='text/html' href='http://100rings.blogspot.com/2008/10/curlssl-sample.html' title='curlによるSSL sample'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8437464.post-1263363199958266890</id><published>2008-10-08T23:06:00.000-07:00</published><updated>2008-10-08T23:09:53.804-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><title type='text'>PHP コマンドライン</title><content type='html'>php -i  phpinfoと同じ&lt;br /&gt;php -l  シンタックスエラーチェック perl -wcのPHP版 使用例 php -l test.php</content><link rel='replies' type='application/atom+xml' href='http://100rings.blogspot.com/feeds/1263363199958266890/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8437464/1263363199958266890' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8437464/posts/default/1263363199958266890'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8437464/posts/default/1263363199958266890'/><link rel='alternate' type='text/html' href='http://100rings.blogspot.com/2008/10/php.html' title='PHP コマンドライン'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8437464.post-6669787877311292451</id><published>2008-09-21T19:28:00.000-07:00</published><updated>2008-09-21T19:30:54.602-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="tar"/><category scheme="http://www.blogger.com/atom/ns#" term="解凍"/><title type='text'>tar.bz2の解凍</title><content type='html'>tar jxvf  aaa.tar.bz2&lt;br /&gt;&lt;br /&gt;tar xvfz tar xvfz qmail-1.03.tar.gz</content><link rel='replies' type='application/atom+xml' href='http://100rings.blogspot.com/feeds/6669787877311292451/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8437464/6669787877311292451' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8437464/posts/default/6669787877311292451'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8437464/posts/default/6669787877311292451'/><link rel='alternate' type='text/html' href='http://100rings.blogspot.com/2008/09/tarbz2.html' title='tar.bz2の解凍'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8437464.post-5238199289238506213</id><published>2008-09-11T02:14:00.000-07:00</published><updated>2008-09-11T02:26:33.295-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><title type='text'>apache1.3とPHP4とPHP5</title><content type='html'>apacheとPHP4で運用していてphp5を試したいときにの方のための記述&lt;br /&gt;php5(cgi)で行う。&lt;br /&gt;インストールは例--with-apxs2や--with-apxsをつけないでインストールする。&lt;br /&gt;&lt;br /&gt;その後以下のようにシンボリックリンクを張ります。&lt;br /&gt;&lt;br /&gt;apache/cgi-bin/php5 -&gt; /bin/php-cgi　&lt;br /&gt;&lt;br /&gt;php-cgiは コマンドラインから実行するとヘッダ (text/html)を出力する&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;apacheの設定ファイルを以下のようにします。&lt;br /&gt;&amp;lt;Directory &quot;/**/apache/cgi-bin&quot;&gt;&lt;br /&gt;    Options +ExecCGI  +FollowSymLinks&lt;br /&gt;    AllowOverride All&lt;br /&gt;    Order allow,deny&lt;br /&gt;    Allow from all&lt;br /&gt;&amp;lt;/Directory&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;Directory &quot;/home/tomo/htdocs&quot;&gt;&lt;br /&gt;    AddHandler php5-script .php&lt;br /&gt;    Action php5-script /cgi-bin/php5&lt;br /&gt;    Options +ExecCGI +FollowSymLinks&lt;br /&gt;    AllowOverride All&lt;br /&gt;    Order allow,deny&lt;br /&gt;    Allow from all&lt;br /&gt;&amp;lt;/Directory&gt;&lt;br /&gt;&lt;br /&gt;指定の場合&lt;br /&gt;/home/tomo/htdocsの下のphpはphp5のcgiとして実行されます。</content><link rel='replies' type='application/atom+xml' href='http://100rings.blogspot.com/feeds/5238199289238506213/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8437464/5238199289238506213' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8437464/posts/default/5238199289238506213'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8437464/posts/default/5238199289238506213'/><link rel='alternate' type='text/html' href='http://100rings.blogspot.com/2008/09/apache13php4php5.html' title='apache1.3とPHP4とPHP5'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8437464.post-7862245401033410189</id><published>2008-09-10T00:31:00.000-07:00</published><updated>2008-09-10T01:01:11.119-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="mod_perl"/><title type='text'>mod_perl</title><content type='html'>apache2とmod_perl&lt;br /&gt;&lt;br /&gt;perl Makefile.PL MP_APXS=/usr/bin/apxs2&lt;br /&gt;make&lt;br /&gt;make install&lt;br /&gt;&lt;br /&gt;httpd.conf&lt;br /&gt;&lt;br /&gt;AddHandler cgi-script .cgi .pl&lt;br /&gt;LoadModule perl_module lib/httpd/modules/mod_perl.so&lt;br /&gt;&lt;br /&gt;&amp;lt;Files *.pl&gt;&lt;br /&gt; SetHandler perl-script&lt;br /&gt; # PerlHandler ModPerl::PerlRun&lt;br /&gt; PerlResponseHandler ModPerl::Registry&lt;br /&gt;&lt;br /&gt; PerlSendHeader On&lt;br /&gt; Options +ExecCGI&lt;br /&gt;&amp;lt;/Files&gt;&lt;br /&gt;&lt;br /&gt;確認の方法&lt;br /&gt;#!/usr/bin/perl&lt;br /&gt;print &quot;Content-type: text/plain\n\n&quot;;&lt;br /&gt;foreach $key (sort keys %ENV) {&lt;br /&gt;  print &quot;$key = $ENV{$key}\n&quot;;&lt;br /&gt;}&lt;br /&gt;で $ENV{&#39;MOD_PERL&#39;}があればOK</content><link rel='replies' type='application/atom+xml' href='http://100rings.blogspot.com/feeds/7862245401033410189/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8437464/7862245401033410189' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8437464/posts/default/7862245401033410189'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8437464/posts/default/7862245401033410189'/><link rel='alternate' type='text/html' href='http://100rings.blogspot.com/2008/09/modperl.html' title='mod_perl'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8437464.post-4840961950611740792</id><published>2008-09-09T20:20:00.000-07:00</published><updated>2008-09-09T20:23:21.453-07:00</updated><title type='text'>L 99 99 99 99 99 99 99 99</title><content type='html'>liloが壊れている&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;CDまたはDVDブートでlinuxを立ち上げて　lilo.confを修正する。</content><link rel='replies' type='application/atom+xml' href='http://100rings.blogspot.com/feeds/4840961950611740792/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8437464/4840961950611740792' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8437464/posts/default/4840961950611740792'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8437464/posts/default/4840961950611740792'/><link rel='alternate' type='text/html' href='http://100rings.blogspot.com/2008/09/l-99-99-99-99-99-99-99-99.html' title='L 99 99 99 99 99 99 99 99'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8437464.post-6315967279241699914</id><published>2008-09-08T19:54:00.000-07:00</published><updated>2008-09-08T20:05:49.361-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="mount"/><category scheme="http://www.blogger.com/atom/ns#" term="USB"/><title type='text'>USB HD(ハードディスク)の接続　for Linux</title><content type='html'>USBをPCに接続後に以下のコマンドを入力し、USBが正しく認識されているか確認する。&lt;br /&gt;&lt;br /&gt;cat /proc/bus/usb/devices&lt;br /&gt;cat /proc/scsi/scsi &lt;br /&gt;(HDはscsi 扱い)&lt;br /&gt;&lt;br /&gt;問題ない場合dmesgコマンドを実行し、認識されている情報を取得&lt;br /&gt;&lt;br /&gt;SCSI device sda: 20028960 512-byte hdwr sectors (10255 MB)&lt;br /&gt;sda: Write Protect is off&lt;br /&gt;sda: Mode Sense: 23 00 00 00&lt;br /&gt;sda: assuming drive cache: write through&lt;br /&gt; sda: sda1 sda2&lt;br /&gt;&lt;br /&gt;sda1とsda2で認識されている。&lt;br /&gt;元々HDはLinuxで使用していたものなので&lt;br /&gt;sda1はswap パーティンション&lt;br /&gt;&lt;br /&gt;マウントの場所を作成&lt;br /&gt;mkdir /mnt/usb (例)&lt;br /&gt;mount /dev/sda2 /mnt/usb&lt;br /&gt;&lt;br /&gt;アンマウントは以下になります。&lt;br /&gt;umount /mnt/usb</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8437464/posts/default/6315967279241699914'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8437464/posts/default/6315967279241699914'/><link rel='alternate' type='text/html' href='http://100rings.blogspot.com/2008/09/usb-hdfor-linux.html' title='USB HD(ハードディスク)の接続　for Linux'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8437464.post-1715509443982670051</id><published>2008-09-08T03:09:00.000-07:00</published><updated>2008-09-08T03:11:00.545-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><title type='text'>PHP キャッシュされないため</title><content type='html'>header(&quot;Content-type: text/html; charset=utf-8&quot;);&lt;br /&gt;header(&quot;Expires: -1&quot;);&lt;br /&gt;header(&quot;Last-Modified: &quot;. gmdate(&quot;D, d M Y H:i:s&quot;). &quot; GMT&quot;);&lt;br /&gt;header(&quot;Cache-Control: no-cache, must-revalidate&quot;);&lt;br /&gt;header(&quot;Pragma: no-cache&quot;);</content><link rel='replies' type='application/atom+xml' href='http://100rings.blogspot.com/feeds/1715509443982670051/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8437464/1715509443982670051' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8437464/posts/default/1715509443982670051'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8437464/posts/default/1715509443982670051'/><link rel='alternate' type='text/html' href='http://100rings.blogspot.com/2008/09/php_08.html' title='PHP キャッシュされないため'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8437464.post-1376707511298829963</id><published>2008-09-08T03:03:00.000-07:00</published><updated>2008-09-08T03:05:45.866-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><title type='text'>Smarty 設定確認用PHP</title><content type='html'>単純にSmartyをインストールしたときに動作するかの確認&lt;br /&gt;&lt;br /&gt;phpinfo();&lt;br /&gt;で確認してから&lt;br /&gt;---&lt;br /&gt;&lt;br /&gt;&amp;lt;?php&lt;br /&gt;require_once( &#39;MySmarty.class.php&#39;);&lt;br /&gt;$objSmarty =&amp; new MySmarty;&lt;br /&gt;&lt;br /&gt;// $objSmarty-&gt;assign(&#39;name&#39;,&#39;Smarty man&#39;);&lt;br /&gt;$objSmarty-&gt;display(&#39;hello.html&#39;);&lt;br /&gt;?&gt;</content><link rel='replies' type='application/atom+xml' href='http://100rings.blogspot.com/feeds/1376707511298829963/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8437464/1376707511298829963' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8437464/posts/default/1376707511298829963'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8437464/posts/default/1376707511298829963'/><link rel='alternate' type='text/html' href='http://100rings.blogspot.com/2008/09/smarty-php.html' title='Smarty 設定確認用PHP'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8437464.post-6425244205702851887</id><published>2008-09-08T02:54:00.000-07:00</published><updated>2008-09-08T02:56:54.338-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><title type='text'>PHP Cookieの確認サンプル</title><content type='html'>&amp;lt;?php&lt;br /&gt;&lt;br /&gt;print_r($_COOKIE);&lt;br /&gt;&lt;br /&gt;?&gt;</content><link rel='replies' type='application/atom+xml' href='http://100rings.blogspot.com/feeds/6425244205702851887/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8437464/6425244205702851887' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8437464/posts/default/6425244205702851887'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8437464/posts/default/6425244205702851887'/><link rel='alternate' type='text/html' href='http://100rings.blogspot.com/2008/09/php-cookie.html' title='PHP Cookieの確認サンプル'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8437464.post-6729099680936350786</id><published>2008-09-08T02:43:00.000-07:00</published><updated>2008-09-08T02:47:42.167-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="MySQL"/><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><title type='text'>PHP mysqli_connectのサンプル</title><content type='html'>if (!($cn = mysqli_connect(&quot;localhost&quot;, &quot;hoge&quot;, &quot;hoge&quot;))) {&lt;br /&gt;    die;&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;  if (!(mysqli_select_db($cn,&quot;test&quot;))) {&lt;br /&gt;    die;&lt;br /&gt;  }&lt;br /&gt;  $sql = &quot;select * from address&quot;;&lt;br /&gt;  if (!($rs = mysqli_query($cn,$sql))) {&lt;br /&gt;    die;&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;    $i=0;&lt;br /&gt;    while ($item = mysqli_fetch_array($rs)) {&lt;br /&gt;        print &quot;${item[&#39;id&#39;]} &quot;;&lt;br /&gt;        print &quot;${item[&#39;name&#39;]} &quot;;&lt;br /&gt;        print &quot;&lt;BR&gt;&quot;;&lt;br /&gt;        $data[$i][&#39;name&#39;]= $item[&#39;name&#39;];&lt;br /&gt;        $data[$i][&#39;tel&#39;]= $item[&#39;tel&#39;];&lt;br /&gt;        $i++;&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;mysqli_close($cn);</content><link rel='replies' type='application/atom+xml' href='http://100rings.blogspot.com/feeds/6729099680936350786/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8437464/6729099680936350786' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8437464/posts/default/6729099680936350786'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8437464/posts/default/6729099680936350786'/><link rel='alternate' type='text/html' href='http://100rings.blogspot.com/2008/09/php-mysqliconnect.html' title='PHP mysqli_connectのサンプル'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8437464.post-3692325595475349524</id><published>2008-09-04T19:13:00.000-07:00</published><updated>2008-09-04T19:16:49.692-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="email"/><category scheme="http://www.blogger.com/atom/ns#" term="PHP"/><title type='text'>PHP 日本語送信</title><content type='html'>よくあるパターンなのですが、PEARとか使えない環境のため&lt;br /&gt;&lt;br /&gt;&amp;lt;?php &lt;br /&gt; mb_internal_encoding( &quot;UTF-8&quot;);&lt;br /&gt; mb_language(&quot;Japanese&quot;);&lt;br /&gt;&lt;br /&gt;header(&quot;Content-Type: text/html; charset=UTF-8&quot;);&lt;br /&gt;&lt;br /&gt;// UTF-8&lt;br /&gt;&lt;br /&gt;if (my_email(&quot;atesaki@example.com&quot;)){&lt;br /&gt;  print &quot;メールを送信しました。&quot;;&lt;br /&gt;&lt;br /&gt;}else{&lt;br /&gt;  print &quot;メールの送信に失敗。&quot;;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;function my_email ($to) {&lt;br /&gt; $from = mb_encode_mimeheader(&quot;送信者&quot;) . &quot;&amp;lt;from@example.net&gt;&quot;;&lt;br /&gt; $sbj = &quot;タイトル&quot;;&lt;br /&gt; $msg = &quot;本文です。&quot;;&lt;br /&gt; $header = &quot;From: {$from}&quot;;&lt;br /&gt; return mb_send_mail($to , $sbj , $msg , $header);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;?&gt;</content><link rel='replies' type='application/atom+xml' href='http://100rings.blogspot.com/feeds/3692325595475349524/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8437464/3692325595475349524' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8437464/posts/default/3692325595475349524'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8437464/posts/default/3692325595475349524'/><link rel='alternate' type='text/html' href='http://100rings.blogspot.com/2008/09/php.html' title='PHP 日本語送信'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8437464.post-8810465191971471109</id><published>2008-08-26T23:42:00.000-07:00</published><updated>2008-08-26T23:43:01.076-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="MySQL"/><title type='text'>外部キーの取得　MYSQL</title><content type='html'>select * from information_schema.table_constraints where constraint_type like &#39;for%&#39;</content><link rel='replies' type='application/atom+xml' href='http://100rings.blogspot.com/feeds/8810465191971471109/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8437464/8810465191971471109' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8437464/posts/default/8810465191971471109'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8437464/posts/default/8810465191971471109'/><link rel='alternate' type='text/html' href='http://100rings.blogspot.com/2008/08/mysql_26.html' title='外部キーの取得　MYSQL'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>