<?
$page = 0 ;
$URL = "http://www.beginnersphp.co.uk/" ;
$page = @ fopen ( $URL , "r" );
print( "Links at $URL <BR>\n" );
print( "<UL>\n" );
while(! feof ( $page )) {
$line = fgets ( $page , 255 );
while( eregi ( "HREF=\"[^\"]*\"" , $line , $match )) {
print( "<LI>" );
print( $match [ 0 ]);
print( "<BR>\n" );
$replace = ereg_replace ( "\?" , "\?" , $match [ 0 ]);
$line = ereg_replace ( $replace , "" , $line );
}
}
print( "</UL>\n" );
fclose ( $page );
?>
Gets the browser and OS from the $_SERVER['http_user_agent'] variable in PHP Categories : PHP , HTTP , Regexps PHP Domain Availability Checker Categories : PHP , Complete Programs , Regexps , HTTP , Sockets Form input return conformance Categories : HTML and PHP , PHP , Regexps The simple counter with use MySql and gd. Categories : MySQL , HTTP , Graphics , PHP , Databases HTTP Basic Authentication via POP3. Categories : Authentication , HTTP , Email , PHP Request Method Class - seful for situations like form processing or API development. Requires PHP5 for the magic __call() method.
Categories : PHP , PHP Classes , HTTP , Headers Inserting data to a MySQL Database using AJAX Categories : AJAX , HTTP , PHP , Databases , MySQL Upload Script, Upload File Script, Input Type="File" Categories : PHP , HTML and PHP , HTTP This script shows you the 7th latest php items from the mailing list archive on zend.com Categories : HTML , HTML and PHP , HTTP , PHP PHP based HTML rabbing Tools Categories : PHP , HTML and PHP , Tag Extractors , Regexps , Beginner Guides Link Extractor - This function is used to extract links from a given URL. This will convert relative path into absolute path and also remove PHPSESSID stuff. Categories : PHP , URLs , Regexps columned txt file to array()? Categories : Arrays , Strings , Regexps , PHP Forcing a proxy to not cache a document Categories : HTTP , PHP Banknote Validation - A PHP class that provides several methods to quickly validate banknote serial numbers of the following currencies: AUD, CAD, CHF, CNY, EUR, GBP, JPY, USD.
Categories : PHP , PHP Classes , Data Validation , Regexps IP Blocking Categories : PHP , Security , HTTP
Tim N wrote : 1689
Please take a look at the function posted by
"max99x [at] gmail [dot] com" at http://de.php.net/preg_match/.
Your function does not get the links Javascript import links, CSS links, and the regular URL/SRC HTML links.