Maybe I am being daft, or misunderstanding either WAMP restrictions or browser restrictions, but I have created a PHP file explorer view using the scandir function recursively using Ajax, and it works great to display the files from our network share (\computername\share).
I can launch the files when accessing http://localhost, however if from the same localhost machine I access http://[our_external_ip_address] then the files do not open. The path in the status bar displays the same on both (e.g. file://computername/share/filename.zip). I eventually want to put the files on a network share which is on the same domain as our web host machine.
Please help. I am fairly competent with PHP & JS but when it comes to web hosts and the like, I am stuffed. TIA.
James
Massive thanks to DaveRandom – this solution worked to allow PDF / Word / Zip files from a UNC path to be launched from an external web client.
FILE 1: – index.php
FILE 2: – filehandler.php