$img_path // 取得する画像のパス(URL)
$path = "ここは保存先のパス"; // /home/ドメイン/public_html/imagesなど
$img = file_get_contents($img_path) ;//画像を取得
$fullpath = $path.basename($img_path);//画像の保存フルパス
file_put_conten…
ピックアップ記事
外部のサイトから画像をサーバに取得(コピー)
2009年12月06日
過去Blog
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…
ModalView経由での値の受け渡し
2011年05月03日
過去Blog
http://timneill.net/2010/11/modal-view-controller-example-part-2/
http://ameblo.jp/iphone0126/entry-10716795357.html buy steroids…
php OS環境に合わせて自動改行
2010年06月08日
過去Blog
PHP_EOL
PHPには定義済み定数に「PHP_EOL」があり、これを使用することで改行を表示させることができます。
Linux、Mac、Windowsなどの異なるOS環境間で改行コードを内部的に自動で切り替えてくれます。
例えば、Macの場合には「¥n」や「¥n¥r」、「¥r¥n」などとコードに記載しても、改行表示されません。
iPhone UILabel 高さをテキストの量で決める
2011年04月30日
過去Blog
http://www.hirano-dept.com/blog/2011/01/iphone-uilabel.html
NSString *str = @"sample string";
CGSize size = [str
sizeWithFont:[UIFont boldSystemFontOfSize:13]
constrainedToSize:CGSizeMake(5…
この投稿へのコメント
コメントはまだありません。