Search found 5 matches
- Wed Nov 12, 2008 2:43 am
- Forum: PHP - Code
- Topic: Ways to read a file from an external host
- Replies: 11
- Views: 640
Re: Ways to read a file from an external host
I guess the people at my host are a bunch who don't know anything about PHP. Because I gave them all the details and they just stared at me dumbly. 
- Wed Nov 12, 2008 2:14 am
- Forum: PHP - Code
- Topic: Ways to read a file from an external host
- Replies: 11
- Views: 640
Re: Ways to read a file from an external host
Thanks again. When I leave out the transport, or replace it with TCP, I get the following: php_network_getaddresses: getaddrinfo failed: Name or service not known I think using the fopen method must be the right thing to do. Because in this topic I found somebody who wanted to basically do the same ...
- Tue Nov 11, 2008 12:48 pm
- Forum: PHP - Code
- Topic: Ways to read a file from an external host
- Replies: 11
- Views: 640
Re: Ways to read a file from an external host
Thanks Syntac for your detailed reply. I tried it, but I get "Unable to find the socket transport "http" - did you forget to enable it when you configured PHP?" Am I doing something wrong? And am I getting the meaning of this script right? On line 2 you are opening a connection t...
- Mon Nov 10, 2008 12:53 pm
- Forum: PHP - Code
- Topic: Ways to read a file from an external host
- Replies: 11
- Views: 640
Re: Ways to read a file from an external host
Yeah I did notice the dust everywhere in the topic :D But I thought starting a new topic about something so old would be inappropriate. Anyway, how can I make sure the wrappers are On? Is there something I should set in the php.ini ? (other than setting the "allow_url_fopen" to On, which i...
- Mon Nov 10, 2008 11:03 am
- Forum: PHP - Code
- Topic: Ways to read a file from an external host
- Replies: 11
- Views: 640
Re: Ways to read a file from an external host
Hi there guys, I am new to this forums and I'm in need of an answer as soon as possible. I want to use this piece of code: $file = 'http://www.fileden.com/files/2008/11/7/2177439/24.zip'; header('Content-type: application/force-download'); header('Content-Transfer-Encoding: Binary'); header('Content...