it looks from the error like you are on a server running safe mode which limits heaps!
I believe safe mode restricts access to files in your directory only. This is for safety.
I have a server running on my home computer (with DSL) and I am able to use that exact code.
I'm not sure of a way round it with PHP. I can think of 3 other options tho:
1) If you are able to change system settings on ur server then change PHP off safe mode or plead with your Server People (they prolly wont change it)
2) Move to a server that allows this (I will give you free, no-ads webhosting with PHP, MySQL, and FTP - however, coz its free, i guarantee nothing - email me)
3) Open the page in an inline frame and then from the parent frame, have a javascript that wait till the frame is completely loaded, then read it and paste it into a textbox of a form and then it automatically submits the form. This then means you get the page sent to you in a nice variable 🙂
Hope this helps 🙂
- Matt
http://daphreeek.kicks-ass.net
phreeeky@hotmail.com