Search code examples
phpphpexcelmamp

Access to a network disk PHPExcel


I was looking for an easy way to read and treat a *.xls file, and I found PHPExcel. All worked perfectly until I tried to access to a file which was in another Network Disk. I now use this to access to my *.xls file :

$objPHPExcel = PHPExcel_IOFactory::load('//NetworkDisk2/Stuff/.../SomeFile.xls');

But, as I said, this ain't working. And I don't know why. When the file and the *.php pages were in the same disk, no problems, all worked just fine.

Could anyone please help me (may be I'm wrong with my path or I don't know) or at least redirect me to another way to do the treatment?

Can it be because of the firewall?

Thanks.


Solution

  • Don't know why, don't know how, but I can't have access with my website to another network disk. I couldn't execute a script all morning same time because the hours of treatments change with the day (never the same twice) so I modify a macro which was use to treat the Excel file and have the good information, so when my coworkers'll execute the macro, a copy of the file created will be paste to the network disk I have access too.

    So the answer is to my question is no, we can't have access to a network disk with PHPExcel.

    Topic closed guys, you can go home, thanks for all of you.