Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は自宅で自分のサーバーをホストしていますが、000webhost を使用してドメインを取得し、それを PHP スクリプトでサーバーにポイントします (私の ISP は「安全」のためにポート 80 をブロックしています) PHP スクリプトを使用できるかどうか疑問に思っていましたWebサーバーにpingを実行し、ダウンしている場合は別のWebサイト/ファイルにリダイレクトして、少数のユーザーにダウンしていることを知らせます。PHP でこれができない場合、何を提案しますか?
get_headers ( string $url [, int $format = 0 ] )
http://php.net/manual/en/function.get-headers.php