<?
$fcontents = file( 'http://www.abc.net.au/news/' );
while ( list( , $line ) = each( $fcontents ) ) {
while ( eregi(
'(href[[:space:]]*=[[:space:]]*"?[[:alnum:]:@/._-]+"?)(.*)', $line,
$regs ) ) {
echo "Got '$regs[1]'<br>\n";
$line = $regs[2];
}
}
?>
Taken fron the PHP List
How to preset a text string in a textarea input field Categories : HTML , HTML and PHP , PHP , Beginner Guides PHP3: Formmail. Just a cgi formmail, but than in PHP. It is easy to use! Categories : HTML and PHP , Email , PHP , Perl , HTML and PHP BBCode Formatting String Categories : PHP , HTML , Regexps , Arrays Real simple example of removing HTML tags from text then changing \n (new line) to <br>. Could be used in a forum for instance. Categories : HTML , PHP , HTML and PHP , Beginner Guides GonxTabs : Create elegant HTML tabs based interface Categories : Navigation , HTML , HTML and PHP , PHP Tag content retrieval from websites with preg_match Categories : PHP , Regexps , Arrays , HTML and PHP class formHTML build your HTML Forms from PHP Categories : PHP , PHP Classes , HTML and PHP , HTML A simple class with some HTML output functions that would come in handy for consistent page layout etc. Categories : PHP , PHP Classes , HTML and PHP , HTML , Navigation Automatic generation of HTML code for a table. OO interface. Can define colspan, rowspan, table style, cell style, and data style. Simple, but
effective. Categories : PHP , PHP Classes , HTML , HTML and PHP Snipe.Net's Web Design Color Scheme Previewer- Allows uses to input hex
codes for their text, background, and link colors, and preview the color
scheme with their background image. Example:
http://www.snipe.net/tech/snipeschool/hex.php3 Categories : PHP , HTML and PHP , General , Graphics , HTML This script shows you the 7th latest php items from the mailing list archive on zend.com Categories : HTML , HTML and PHP , HTTP , PHP Display Slashdot headers on your own site Categories : HTML and PHP , HTML , PHP Form is a utility class for generating html forms. It provides form initialization and regex based data validation (both server and client side) with a convenient interface. This version obsoletes version 1.0a Categories : HTML , PHP , PHP Classes , Regexps Parse html (title :: meta) Categories : PHP , HTML and PHP , Regexps Query2Report : Generating Html, Pdf and Csv Reports from SQL Query Categories : PHP , PHP , HTML , PDF , Excel
Lubes Haidamaka wrote : 443
Hey there!
This script doesn`t seem to work. :-(
dayton brown wrote : 714
works perfectly for me, was just what i was looking for too...only change i made to the script was the removal of "news/" path.