Download our free eBook!

Learn how to dominate your market with a website that drives more traffic and converts more sales.


our free eBook!

Dominate your market with a website that attracts more visitors, converts more enquiries and generates sales.


Voodoochilli Blog

Using a remotely hosted PHP include file

17th of February 2007
Tags: ,

Well here is something I was sure was impossible until the other day. I managed to use a remotely hosted include file in one of my pages. The reason I did this was because all of the coding needed to connect to a database on another site. I think the only reason it worked though is because although the code was on another site, it is on the same server. Still, it worked for me!

One response to “Using a remotely hosted PHP include file”

  1. hmldit says:

    Using remote files are aloud you just need to use a wrapper(see previous blog entry).
    A remote file may be processed at the remote server (depending on the file extension and if the remote server runs PHP or not) but it still has to produce a valid PHP script because it will be processed at the local server. If the file from the remote server should be processed there and outputted only, readfile() is a much better function to use. Otherwise, special care should be taken to secure the remote script to produce a valid and desired code.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  • About Us

    We are Voodoochilli Design Ltd - the place to go for Hereford web design

    We have been designing and building websites for over 10 years and have worked with a wide range of businesses from start-ups to multi-billion pound internationals and everything in between.

    If you are interested in finding out more, check out our full website.

  • Recent Posts

  • Awards, Associations & Media

    Go to