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
[Back to original message]
|