communication
 databases
 directories
 file handling
 html and code
 image editing
 image listing
 sessions and co
 string handling
 information
 forms
 apple stuff
 image handling
 array handling
 lixlpixel
php - snippets
google search terms detected and highlighted.
remove highlighting | keep highlighting
make snippet in "file handling" - download "file exists"
 search
php - snippets

Valid CSS!

php webring logo
prev next
random list
join the Ring!

file handling - file exists was created/last modified on Mon 06 Oct 2003 7:08 PM

<?
  
function file_exist($filename) {
      if(
file_exists($filename)) {
          return
false;
      } else {
          return
true;
      }
  }
  
?>   

learn more about some of the PHP functions used in this snippet: else, file, file_exists, function, return

view the GNU general license - view the GNU library license - search on PHPsnippets - see your code like this

 a lixlpixel.com site

go to PHParadise to get free PHP, Javascript and FlashMX code