If the file already exists, the fopen() call will fail by returning FALSE and generating an error of level E_WARNING .
php.net