in reply to calling another script

Most likely, the user your webserver is configured to run your scripts as does not have access permissions to access the network resources. The error log of your webserver likely tells you more.