vendredi 4 août 2017

PHP Inline If Syntax error [on hold]

I'm trying to make a inline if request.

Here the code

<?=(file_exits($storage.$file.'.md5')) ? file_get_contents($storage.$file.'.md5') : file_put_contents($storage.$file.'.md5', md5_file($storage.$file)?>

The log says

syntax error, unexpected '?>', expecting ',' or ')'

What's the problem?

Aucun commentaire:

Enregistrer un commentaire