PHP Parse error



Hi I am a newbie and my following code is giving me parse error. What am I doing wrong?


<?php

$file 
fopen("words.txt","r")

if(
file_exists("words.txt")) {
echo 
"this is correct";
}
?>

This gives me error.

<?php
PHP Parse error
parse error in file.php on line 2.
?>



You are missing semi-color (;):

<?php
$file 
fopen("words.txt","r")
?>