
Rivotti
User
Mar 25, 2000, 4:13 AM
Post #3 of 3
(339 views)
|
|
Re: Getting code from a section in a html page
[In reply to]
|
Can't Post
|
|
Ok I used something like this: <BLOCKQUOTE><font size="1" face="Arial,Helvetica,sans serif">code:</font><HR> $url="http://www.contifax.com/cgi-bin/curriculum/html/passo3.htm"; $pagina=get($url);</pre><HR></BLOCKQUOTE> Is it Right? Now I want to grab what is inside the tag: <! Temp == ($any characters) --> Or inside the section: [section] ($any characters [/section] Note: This can have html code such as: <BLOCKQUOTE><font size="1" face="Arial,Helvetica,sans serif">code:</font><HR> <img border="0" src="xxx.jpg"><br><h1>something</h1> </pre><HR></BLOCKQUOTE> The ideia is to open a file, grab a piece of the code inside the file and then used it inside a loop. Is something like what you do in the UBB Code: you find the the [something]text[/something], grab the text inside and them apply the style [something] to the text. Now apply this ideia to a file and use it in your CGI program. [This message has been edited by Rivotti (edited 03-26-2000).]
|