if (File_Exists())

[PHP]
$MTheme="/files/gamethemes/";
if (file_exists($MTheme . $File.".zip")){$Theme = "<a href=\"".$MTheme."".$File.".zip\">Theme Tune</a>";}
else{$Theme = "No Theme";};[/PHP]
Always seems to return the Else statement.
Using -
[PHP]$MTheme . $File.".zip"[/PHP]
Returns the right file, so, any ideas?
NS
$MTheme="/files/gamethemes/";
if (file_exists($MTheme . $File.".zip")){$Theme = "<a href=\"".$MTheme."".$File.".zip\">Theme Tune</a>";}
else{$Theme = "No Theme";};[/PHP]
Always seems to return the Else statement.
Using -
[PHP]$MTheme . $File.".zip"[/PHP]
Returns the right file, so, any ideas?
NS
0
Comments
[PHP]$themefile="".$MTheme."".$File.".zip";
if (file_exists($themefile)){$Theme = "<a href=\"".$MTheme."".$File.".zip\">Theme Tune</a>";}
else{$Theme = "No Theme";};[/PHP]
Honestly wasnt expecting to get it working so fast, makes the thread a bit pointless
See it in use here - http://atomnet.co.uk/amiga/?p=gs&letter=W
NS