You are here: Re: Parsing HTML « All PHP « IT news, forums, messages
Re: Parsing HTML

Posted by Joseph Melnick on 06/16/05 00:31

Hello Jonathan,

The file_get_contents() function will allow you to get the contents of a
page into a variable that you can parse.

Once loaded into a string you have all sorts of string functions at your
disposal to get the job done.

Take a look at the manual: http://www.php.net/docs.php

Search for file_get_contents and strings for syntax and examples.

Good Luck

Joseph Melnick
JM Web Consultants
http://www.jphp.com/




"Jonathan Tremlett" <RemoveToReply.jtremlet+usenet@cis.strath.ac.uk> wrote
in message news:42b0482f$1@nntphost.cis.strath.ac.uk...
> Additionally is there a function that will allow me to read in the
> contents of a webpage.
>
> Cheers,
> Johnny
>
> Jonathan Tremlett wrote:
>
>> Hi,
>>
>> I am doing a university project and am needing to parse HTML code to
>> place it on a different page with a different style using PHP. I have
>> looked at various palces on the web but do not find good examples an dI
>> have not been able to even find out the functions to look at.
>>
>> Any help on this would be appreciated
>>
>> Cheers,
>> Johnny

 

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

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