2009年12月06日 過去Blog
$img_path // 取得する画像のパス(URL) $path = “ここは保存先のパス”;  //  /home/ドメイン/public_html/imagesなど $img = file_get_contents($img_path) ;//画像を取得 $fullpath = $path.basename($img_path);//画像の保存フルパス file_put_contents($fullpath, $img);//保存。 *basename >> パス中のファイル名の部分を返す

この投稿へのコメント

コメントはまだありません。

コメントを残す

メールアドレスが公開されることはありません。

次のHTML タグと属性が使えます。
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

CAPTCHA


ピックアップ記事

Start it now!!

2009年11月18日 過去Blog
今日からブログを開始することにしました。 どれぐらいの頻度で更新出きるかは不明ですが、ほどほどにがんばってみます。 とりあえず、気になるのは、記事にコメントした場合に表示される、無意味な<div class="reply"></div>のタグです・・・。 コメントへの返答をするためのリンクが表示される箇所かなと思うのですが、空のタグだけが表示されているようです。 放…
「Start it now!!」をはてなブックマークに追加

iPhoneアプリ MapKitを使って地図を表示

2011年04月26日 過去Blog
落ち着き次第、MapKitの使い方を投稿したいと思いますが、とりあえず、覚え書き 参考サイト:http://blog.syuhari.jp/archives/2040 http://iphone-tora.sakura.ne.jp/mkannotationview.html UITableViewのcellに地図を表示させる方法などを書きたいなと思っています。
「iPhoneアプリ MapKitを使って地図を表示」をはてなブックマークに追加

UITableView cell の選択を無効にする

2011年04月28日 過去Blog
cell.selectionStyle = UITableViewCellSelectionStyleNone;
「UITableView cell の選択を無効にする」をはてなブックマークに追加

Drupal6でクリーンURL

2011年04月25日 過去Blog
.htaccessに以下を記述してルートに設置 # Various rewrite rules. <IfModule mod_rewrite.c>   RewriteEngine on   # Modify the RewriteBase if you are using Drupal in a subdirectory and   # the rewrite rules are n…
「Drupal6でクリーンURL」をはてなブックマークに追加
© graffiti on the web . All rights reserved. WordPress Theme by comfy