Make a copy of the file you need, on the machine you need it on.
Require or including PHP files by a URL is NOT a good idea, and it will probably NOT do what you want, and it smells bad.
Basically, when you request a PHP file by HTTP, the server won't serve the file, it will execute it instead. Therefore, if you use require(some url), the PHP script will be executed on the remote server, and its output WILL BE TREATED AS ANOTHER PHP SCRIPT.
This is unbelievably dangerous as it gives the owner of the other site the ability to run arbritary code on your server, moreover, it smells of code-writing code, which is usually a really bad anti-pattern.
Mark