You are here: Re: i want to fopen() a url without images « All PHP « IT news, forums, messages
Re: i want to fopen() a url without images

Posted by J.O. Aho on 11/18/05 14:16

charliefortune wrote:
> Thanks for your reply.
>
> I am loading various different pages, .jsp , .php, .htm etc. and the
> images occur inside the pages. The more I think about it, I am
> wondering if fopen doesn't parse html and therefore create output like
> a browser would, but just reads it as ascii ? In which case, the images
> are not being loaded anyway. Am I correct in this assumption ?
>

fopen() will only read the file you tell it to read, if the file has
references to other files, those won't be read.

If you display what you loaded with fopen() in a browser and the links to
images are full path, then the browser will display the images, but that is
for the browser will parse the HTML code and do as it tells it to do.

So the image isn't loaded by the php script.


//Aho

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация