$filename può essere anche un path (assoluto o relativo)

http://it.php.net/manual/en/function.fopen.php