Re: [PHP] caching program

2003-09-14 Thread Curt Zirzow
* 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,

Re: [PHP] caching program...

2003-09-13 Thread Curt Zirzow
* 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: > > "http:

Re: [PHP] caching program

2003-09-12 Thread Ryan Gibson
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 '/' ch

Re: [PHP] caching program

2003-09-12 Thread Raditha Dissanayake
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 file_ge

Re: [PHP] caching program

2003-09-12 Thread Andrea Tricco
the path www.php.net/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 t

Re: [PHP] caching program

2003-09-12 Thread Andrea Tricco
m: "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 do

Re: [PHP] caching program

2003-09-12 Thread Ryan Gibson
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 PROT

[PHP] caching program

2003-09-12 Thread Andrea Tricco
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

Re: [PHP] caching program...

2003-09-12 Thread Marek Kilimajer
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 na

[PHP] caching program...

2003-09-12 Thread Andrea Tricco
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