We Recommend

Wicked Cool PHP: Real-World Scripts That Solve Difficult Problems Wicked Cool PHP: Real-World Scripts That Solve Difficult Problems
Wicked Cool PHP contains a wide variety of scripts to process credit cards, check the validity of email addresses, template HTML, and serve dynamic images and text.


Posted By

daisuke103 on 07/31/08


Tagged

file textmate check exists


Versions (?)


PHP ファイルが存在するかチェックする


Published in: PHP 


  1. <?php
  2. // ファイルがあるかチェック
  3. $PATH = $_GET['path'];
  4. if(file_exists($PATH)){
  5. $file_exists = true;
  6. }else{
  7. $file_exists = false;
  8. }
  9. echo 'file_exists='.$file_exists;

Report this snippet 

You need to login to post a comment.