内容へ移動
heavyhandの実験室
ユーザ用ツール
ログイン
サイト用ツール
検索
ツール
文書の表示
以前のリビジョン
バックリンク
最近の変更
メディアマネージャー
サイトマップ
ログイン
>
最近の変更
メディアマネージャー
サイトマップ
トレース:
php:関数使用例:ファイルシステム:file_exists
この文書は読取専用です。文書のソースを閲覧することは可能ですが、変更はできません。もし変更したい場合は管理者に連絡してください。
====== PHP:関数使用例:ファイルシステム:file_exists ====== ===== 分類 ===== ファイルシステム ===== 機能 ===== ファイルまたはディレクトリが存在するかどうか調べる ===== sample ===== ==== ソース ==== <code php> <html> <head> <title>t_file_exist.php</title> <body> <?php $file_name ="/home/hoge/public_html/test/test.txt"; if(file_exists($file_name)){ echo "ファイル(".$file_name.")あり"; }else{ echo "ファイル(".$file_name.")なし"; } ?> </body> </html> </code> ==== 出力結果 ==== <code php> ファイル(/home/hoge/public_html/test/test.txt)あり </code>
php/関数使用例/ファイルシステム/file_exists.txt
· 最終更新: 2015/12/08 02:04 by
dokuroot
ページ用ツール
文書の表示
以前のリビジョン
バックリンク
文書の先頭へ