WeberDev.com PHP and MySQL Code

LOG IN
BEGINNER GUIDESPHP CLASSESCODE SEARCHARTICLES SEARCHPHP FORUMSPHP MANUALPHP FUNCTIONS LISTWEB SITE TEMPLATES
Start typing to search for PHP and MySQL Code Snippets and Articles Search
Submit a code Example / Snippet Join us on FaceBook
Submit a code Example / Snippet Submit Your Code
Poker Tournaments Poker Tournaments
Poker Guide for Developers Poker Guide for Developers
Search Engine Optimization Monitor SEO Monitor
Web Site UpTime Monitor UpTime Monitor
Your Personal Examples List My Favorite Examples
Your Personal Articles List My Favorite Articles
Edit Account Info Update Your Profile
PHP Code Search
Web Development Forums
Learn MySQL Playing Trivia
PHPBB2 Templates
Web Development Resources
Web Development Content
Internet Security Software
PHPClasses
PHP Editor
PHP Jobs
Vision.To Design
Ajax Tutorials
PHP Programming Help
PHP/MySQL Programming
Webmaster Resources
Webmaster Forum
XML meta language
website builder
פרייסז - הכח לקנות עובר לידיים שלך
Texas Holdem Poker Evangelists

Go Back Add a Comment Send this example to a friend Add this Article to your personal favoritest for easy future access to your favorite Code Examples and Articles. Submit a code example Print this code example.
BACK ADD A COMMENT SEND TO A FRIEND ADD TO MY FAVORITES ADD CODE EXAMPLES PRINT
Title : Grab links from a page
Categories : PHP, Regexps, HTTP Click here to Update Your Picture
glen mc arthur
Date : Nov 18th 2005
Grade : 2 of 5 (graded 6 times)
Viewed : 11045
File : No file for this code example.
Images : No Images for this code example.
Search : More code by glen mc arthur
Action : Grade This Code Example
Tools : My Examples List

Submit your own code examples  Submit your own code examples 
 

<?
$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.