Page is a not externally linkable
- Code, Content, and Presentation
-- PHP Server Side Scripting
---- Grabbing A Remote File


Vis3R - 12:47 am on Feb 28, 2008 (gmt 0)


Some time ago i did a research, and found out file_get_contents is the fastest way, fastest code. If you need some more advanced options than just requesting a file, like adding cookies and other headers, you can use function's context variable. So file_get_contents is what i'd suggest.

[edited by: Vis3R at 12:49 am (utc) on Feb. 28, 2008]


Thread source:: http://www.webmasterworld.com/php/3585915.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com