Do not do this at run time - this is terrible for security (PHP code must be passed in clear text to enable) and performance (an HTTP call will take a long time, and if the remote server is down or unavailable, your script will shut down).
If you need to get content from a remote location, consider using a cron job that will receive data at regular intervals, or maybe better - an active "push" solution using FTP, for example, updating a file in several places when it is updated .
To set cron, you really need to use curl (if it is installed), since your provider denies access to http: // URLs from file functions.
Pekka 웃
source share