You are here: Re: 'scanning' html in frame? « PHP Programming Language « IT news, forums, messages
Re: 'scanning' html in frame?

Posted by Andy Hassall on 11/06/41 11:31

On 7 Nov 2005 16:58:32 -0800, eclectic_01@hotmail.com wrote:

>Is it possible to scan the html or plain text of a frame?
>
>I would like to load a remote page into a frame, then 'scan' the html
>for specific content. Preferably, I would like to check for specific
>strings of text so that I can call my own functions depending on the
>content of the frame.

PHP runs on the server, and can't know whether a client has loaded a page into
a frame or somewhere else, so your ordering of events isn't quite right.

PHP can itself read a remote page (see file_get_contents(), and fopen_wrappers
which allow the filesystem functions to transparently read URLs - this is
enabled on most configurations), process it, and then output that page (with
whatever modifications are appropriate) - you then arrange that this PHP script
is what is loaded into a particular frame.
--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

 

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

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