1

Topic: Loading of a file from the server fopen ()

Misters, good afternoon;
I struggle with simple loading of a file from a site and I do not understand, why does not work:

$filename = ' Macro.xlsm ';
if (file_exists ($filename)) {
echo "the File $filename exists <br>";
if (is_readable ($filename)) {
echo ' the File is accessible to reading <br> ';
fopen ($filename, "r");
} else {
echo ' the File is inaccessible to reading ';
}
} else {
echo "the File $filename does not exist";
}

The page produces to me:
File Macro.xlsm exists
The file is accessible to reading
But suggests to download nothing. That I do not so...?
In advance thanks for the help!

2

Re: Loading of a file from the server fopen ()

 

3

Re: Loading of a file from the server fopen ()

SharuPoNemnogu;
Many thanks!!