* Thus wrote Andrea Tricco ([EMAIL PROTECTED]):
For the images that don't contain http://; my program is already able to
get them from the web server.
In other cases, I have to determine the name of the directory where the html
page is located.
Thus, the equivocal paths are the problem, for
* Thus wrote Andrea Tricco ([EMAIL PROTECTED]):
Hi,
Hello
I'm using the function file_get_contents() to replicate the content of a
remote html page on my server.
But, the function file_get_contents() works even when the name of the file
is not specified. For example:
Hi,
I'm using the function file_get_contents() to replicate the content of a
remote html page on my server.
But, the function file_get_contents() works even when the name of the file
is not specified. For example:
http://www.php.net; rather that http://php.net/index.php;
Does a method
No way, it might be anything from apache's DirectoryIndex directive.
Browsers don't know that either.
Andrea Tricco wrote:
Hi,
I'm using the function file_get_contents() to replicate the content of a
remote html page on my server.
But, the function file_get_contents() works even when the
Hi,
I'm using the function file_get_contents() to replicate the content of a
remote html page on my server.
But, the function file_get_contents() works even when the name of the file
is not specified. For example:
http://www.php.net; rather that http://php.net/index.php;
Does a method exist to
You could pull out all the img src attributes and if they don't contain
http://; then prepeand the address of te page then download otherwise just
downlocad the url, but to get the page to work in the new location you may
have to replace the img src attributes
Ryan Gibson
---
[EMAIL
PROTECTED]
To: Andrea Tricco [EMAIL PROTECTED]; php-general
[EMAIL PROTECTED]
Sent: Friday, September 12, 2003 12:26 PM
Subject: Re: [PHP] caching program
You could pull out all the img src attributes and if they don't contain
http://; then prepeand the address of te page then download
/manual/it/
Best regards.
Andrea
- Original Message -
From: Andrea Tricco [EMAIL PROTECTED]
To: php-general [EMAIL PROTECTED]
Sent: Wednesday, September 17, 2003 1:11 PM
Subject: Re: [PHP] caching program
For the images that don't contain http://; my program is already able to
get them
once upon a long ago someone (i belive his name is Hrvoje Niksic) wrote
a program called wget so that people do not have to do all this :-)
Andrea Tricco wrote:
Hi,
I'm using the function file_get_contents() to replicate the content of a
remote html page on my server.
But, the function
On 17/9/03 12:18 pm, Andrea Tricco [EMAIL PROTECTED] wrote:
Thus, the equivocal paths are the problem, for example:
www.php.net/manual/it/index.php
www.php.net/manual/it/
For the above examples the url is the string up to the last '/' char (as
long as the string after the '/' char has an
10 matches
Mail list logo