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?
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;?>