$img_path // 取得する画像のパス(URL)
$path = "ここは保存先のパス"; // /home/ドメイン/public_html/imagesなど
$img = file_get_contents($img_path) ;//画像を取得
$fullpath = $path.basename($img_path);//画像の保存フルパス
file_put_conten…
phpで少し時間をおいてから処理を実行したい場合は、sleepを使います。
例)
<?php echo "最初の処理"; //3秒後に実行 sleep(3); //処理再開 echo "遅延後の処理"; ?>
graffiti on the web
この投稿へのコメント
コメントはまだありません。