PHP Simple Fopen / Include Issue!

Associate
Joined
18 May 2006
Posts
785
I'm trying to read a text / php or html file (whichever - it doesn't matter). locally on a server and have it printed or echo'd on the screen.

However I'm struggling... Include is disabled by default in php.ini and my reading of it says I should really leave it this way for security.

I've tried fopen and get contents with no joy but my PHP is very shady at best...

any help?

Code:
<?php $homepage = file_get_contents("http://www.example.co.uk/text.txt');echo $homepage;?>
 
Associate
OP
Joined
18 May 2006
Posts
785
I should add - using that code in a simple .php file works fine - using it within joomla content within a php extension doesn't (the extension is to allow me to type raw php into the joomla content area) I've tried a few with no joy
 
Back
Top Bottom