For some reason file_get_contents isn't allowing me to get files which are on the same server.
This is the error I'm getting:
file_get_contents(http://www.my-url.com/image.jpg): failed to open stream: Connection refused
I know I can use the system path to get files but in this case I need to be able to test this with the URL.