Take a look here: http://us3.php.net/include/ Example 16-7. include() through HTTP That's one way - cheating and making it look like inline code. Another way is to just pass data via a query string and harvest the response as if your PHP script was a browser: http://us3.php.net/manual/en/ref.curl.php OR http://us3.php.net/manual/en/function.file-get-contents.php I think PEAR might have something like this too. Not sure.