If you have a script on a remote server and you are using PHP5, then you will not be able to use include()
or require()
.
I learned that while trying to include a script on a subdomain (for speed).
The only solution is to use the file_get_contents()
function instead.
That’s all. Your remote inclusion will now work.
5 Responses to Include Remote Files With PHP
Leave a Reply Cancel reply
-
Recent posts
-
New Plugin on CodeCanyon!
November 4th, 2010
Read more and discuss (0) » -
Inception Theme
August 29th, 2010
Read more and discuss (3) » -
Links of the Day
October 15th, 2010
Read more and discuss (0) » -
Links of the Week
October 15th, 2010
Read more and discuss (0) » -
Industry News: PayPal Updates its Terms and phpLD Reaches Version 4.1 with a Twist!
September 15th, 2010
Read more and discuss (0) » -
Demistifying JavaScript history.back() and history.go() Methods
September 14th, 2010
Read more and discuss (0) » -
How To Build An Online Visitor Counter
August 30th, 2010
Read more and discuss (0) » -
3D Offices Building – 1980′s Style
August 25th, 2010
Read more and discuss (0) » -
Beautiful Websites – Design Inspiration #1
August 21st, 2010
Read more and discuss (0) » -
iPad and iPhone Design Inspiration
August 21st, 2010
Read more and discuss (3) »
-
New Plugin on CodeCanyon!
-
Most commented posts from 2010
-
Most commented posts from 2009
- Top 10 Web Hosting Sites (36)
- Twitter Fiasco (32)
- How To Export PDF in Photoshop CS4 (27)
- 1000 Web Links (23)
- Corporate Mistakes (23)
-
Most commented posts from 2008
-
Most commented posts from 2007
-
Categories
- 3D (2)
- AdSense (24)
- Blogging (121)
- Branding (22)
- Featured (3)
- General (167)
- Google (49)
- Graphics (54)
- Interviews (9)
- JavaScript (21)
- jQuery (2)
- Marketing (41)
- Microsoft (7)
- MSN (8)
- Organizer (2)
- Programming (51)
- Resources (59)
- Reviews (7)
- SEO (53)
- Social Networking (18)
- Speedlinking (42)
- Themes (8)
- Web (180)
- Windows 7 (4)
- Windows Mobile (6)
- WordPress (77)
- Yahoo (9)
-
Latest on the forums!
-
Re: Inception Wordpress Theme 1.0a Launched!
by: Chip
November 10, 2010, 23:33 -
Re: Doesnt work
by: Chip
November 10, 2010, 23:32 -
Doesnt work
by: Guest
November 9, 2010, 16:01 -
Re: Inception Wordpress Theme 1.0a Launched!
by: Guest
November 6, 2010, 08:43 -
Butterfly Merchant
by: Chip
October 21, 2010, 16:44
-
Re: Inception Wordpress Theme 1.0a Launched!
Network
» Deviant Art Member ProfileAds
» U.S. Funeral HomesCategories: 3D, AdSense, Blogging, Branding, Featured, General, Google, Graphics, Interviews, JavaScript, jQuery, Marketing, Microsoft, MSN, Organizer, PHP, Programming, Resources, Reviews, SEO, Social Networking, Speedlinking, Themes, Web, Windows 7, Windows Mobile, WordPress, Yahoo, Home
Whiskey Air 2.1 theme created by Butterfly Media Romania. Going for HTML5. Built on Windows 7.
Loaded in 1.097 seconds using 96 queries and 13 bottles of whiskey.
Tots2Teens | Cariera Piatra Constanta | Verighete
Haha that was the shortest blog post I have ever seen.
Pingback: 2008 Retrospective | Butterfly Media Romania Blog - Marketing, SEO and WordPress
Pingback: 2008 Retrospective | SulVision
Thank you.
I’ve been wondering how to do this for a while.
I am developing an API, for which we require remote HTML data.
Pingback: Architectural Technologist - Document storage, the legal side « The Konstrukshon Weblog