This question already has an answer here:
You have forgot to add semicolon (;).
$path = "/print/" @ $fp = fopen("$path""$filename", "wb");
$path = "/print/"; @ $fp = fopen("$path" . "$filename", "wb");
Answer author Vasil-shaddix
Tickanswer.com is providing the only single recommended solution of the question PHP fopen path is not working [duplicate] under the categories i.e php , path , fopen , . Our team of experts filter the best solution for you.