file_exists() question

From: Date: Sat, 08 Mar 2003 21:10:54 +0000
Subject: file_exists() question
Groups: php.general 
Request: Send a blank email to php-general+get-138781@lists.php.net to get a copy of this message
Can anyone tell me why this code does not return true when the file in the directory cherpdocs/ with the file (which I see as being there) does exist? if(file_exists('cherpdocs/$annrow[id].doc')){
        echo "<br /><a href=\"cherpdocs/$annrow[id].doc\">Funding details paper</a>";
} This is a path relative to the file calling it, should it be otherwise? Thanks Charles

« previous php.general (#138781) next »