Ik heb dit script, waarbij het bestand niet bestaat, toch wil hij het the include weergeven (wat niet kan, want het bestaat niet):
$langfilename = $pathpodium.'languages/'.$lang.'/'.$maintekst['tekst'];
if (file_exists($langfilename))
{
echo $langfilename;
include_once($langfilename);
}
else
{
echo 'file does not excist';
}Toevoeging op 26/12/2015 03:39:26:
I changed it to is_file(), seems to work fine for now.