02/06/09 18:45
Innanzi tutto, susate per il titolo, ma non sapevo come formularlo.
Vorrei sapere come fare un if con file_exist. Io ho provato così:
Mi dà l'errore
Parse error: syntax error, unexpected '=' in /membri/simonecassin/Login/login.php on line 7
Come posso dunque creare un if con file_exist con php correttamente???
Grazie in anticipo
SC
Vorrei sapere come fare un if con file_exist. Io ho provato così:
<? if (file_exist($username)=TRUE) { echo "Il file esiste"; }else{ echo "Il file NON esiste"; } ?>
Mi dà l'errore
Parse error: syntax error, unexpected '=' in /membri/simonecassin/Login/login.php on line 7
Come posso dunque creare un if con file_exist con php correttamente???
Grazie in anticipo
SC