Re: Problem with getting a file
- From: "ZeldorBlat" <zeldorblat@xxxxxxxxx>
- Date: 21 Oct 2005 08:04:43 -0700
If you have fopen wrappers enabled you can make your life a lot easier.
Read about it here:
<http://www.php.net/manual/en/ref.filesystem.php#ini.allow-url-fopen>
If enabled, you can rewrite your code as follows:
$url = 'http://' . $host . '/' . $file;
echo file_get_contents($url);
.
- Follow-Ups:
- Re: Problem with getting a file
- From: NurAzije
- Re: Problem with getting a file
- References:
- Problem with getting a file
- From: NurAzije
- Problem with getting a file
- Prev by Date: Problem with getting a file
- Next by Date: Posting coding on a website
- Previous by thread: Problem with getting a file
- Next by thread: Re: Problem with getting a file
- Index(es):
Relevant Pages
|