Share » Forums » Setup & design » "file_get_contents" to add content of...

"file_get_contents" to add content of a url not working

"file_get_contents" to add content of a url not working

Friday 24 March 2006 12:28:41 am - 3 replies

Modified on Friday 24 March 2006 12:30:29 am by Alexandre Cunha

Author Message

Marc Boon

Friday 24 March 2006 4:48:12 am

how about: {include uri='somefile.html'}

Alexandre Cunha

Friday 24 March 2006 5:32:52 am

how about: {include uri='somefile.html'}

This only works for local static html files.

I want include the result of a remote script.

http://AlexandreCunha.com

Marc Boon

Friday 24 March 2006 1:38:20 pm

I tried your first approach with the php operator file_get_contents, and it works fine.
Make sure you didn't make a typo somewhere, and try clearing cache.
Also, check in your php.ini that allow_url_fopen is enabled.

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu