Training, Open Source computer languages

PerlPythonMySQLTclRubyC & C++LuaJavaTomcatPHPhttpdLinux

Search our site for:
Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact
Easy feed!

Want to provide sites that work close along side you with a feed of your blog? In recent versions of PHP, you can include a remote file from their server in your page. Here's a little example that's on our site - we're pulling down a piece of PHP via a URL.

Want the latest news from Well House Consultants? Read
<?php include("http://www.wellho.net/hml.inc"); ?> on
"The Horse's Mouth".


If you've PHP 4.3.0 or later, and allow_url_fopen is allowed, then the above example should work for you and give you a link where the text will change each time I post a new article on "The Horse's Mouth".

Both the site offering a service such as this AND the user site need to be aware of the security implications; our hml.inc file is open to anyone to read (and so must NOT give away secrets like passwords), and the user site must trust their supplier to be competent not to compromise their security. But with closely linked sites, it can work well.

Note - the included file must NOT have a parsed extension such as .php ... otherwise it will be run on the site offering the service rather than being shipped down to the user site..

This is a working example, so you can see the source code through the URL shown above. I've also indexed it and you can see it here in our resource library
(written 2006-03-21 07:29:37)

 
Associated topics are indexed under
W603 - Web and Intranet - Server Side Technologies
A301 - Web Application Deployment - XML, DTD, XSLT, XHTML and More
H109 - PHP - Input / Output

Back to
Morning Post
Previous and next
or
Horse's mouth home
Forward to
Making use of disabled facilities
Some other Articles
The ternary operator in Python
Think about your design even if you don't use full UML
Can some food be TOO different?
Making use of disabled facilities
Easy feed!
Morning Post
Please Register with Opentalk - but just once!
A person of few words
Denial of Service ''attack''
West Wilts Railway Users Group and trains to Lacock
1892 posts, page by page
Link to page ... 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38 at 50 posts per page


This is a page archived from The Horse's Mouth at http://www.wellho.net/horse/ - the diary and writings of Graham Ellis. Every attempt was made to provide current information at the time the page was written, but things do move forward in our business - new software releases, price changes, new techniques. Please check back via our main site for current courses, prices, versions, etc - any mention of a price in "The Horse's Mouth" cannot be taken as an offer to supply at that price.

Link to Ezine home page (for reading).
Link to Blogging home page (to add comments).

© WELL HOUSE CONSULTANTS LTD., 2008: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 0800 043 8225 or 01225 708225 • FAX: 0845 8382 405 or 01225 707126 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho