Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/casper/sunbbs/Skinny.php(1250) : eval()'d code on line 46
タグ検索:Location |Project Note
ページ番号  1 |  2 |  3 |  4 |  5 |  6 |  7 |  8 |  9 |  10

ランダムジャンプ用phpスクリプト

URL:http://bit.ly/hAuiKD
テキストファイルのアドレスをランダムに選択してリダイレクトするphpです。
※「url.txt」が存在しない場合はエラーになります。
<?php
 $list = @file("url.txt");
 $link = rtrim($list[array_rand($list)]);
 header("Location:$link");
?>
ランダムジャンプ[Amazon]

リダイレクト (HTTP) - wikipedia


ページ番号  1 |  2 |  3 |  4 |  5 |  6 |  7 |  8 |  9 |  10