Php脚本(读取共享服务器数据和本地写入)在一台计算机上运行良好,但在另一台计算机上运行时间很长

I have a php script that Queries folder structure at Network location and writes processed array to a Json file. This works well for on a one machine. However, when I try to hit the same URL with a different machine, the php keeps on loading and does not loads result. It Just times out

My URL is like:

> http://localhost/test.php?filename=fileName.json&path=\\Server\folder

Both machines have Apace Server Installed. Both can access the Server share(I checked by opening the folder, but not sure if web browser does it another way. If there is a way to check if URL can access the path, please share) There is no Exception thrown. Note: I know i have to be specific, but at this point i don't know what "specific details" would include.

Thanks for inputs.