hi all,
I have a file containing links to other web pages.
While reading the file i want to be able to find out the hyperlinks from the rest of the text and open them as well.
Reading a file and finding and opening the links in it.
Moderator: General Moderators
-
sheikhmdirfan
- Forum Newbie
- Posts: 22
- Joined: Tue Jan 20, 2009 12:21 am
Re: Reading a file and finding and opening the links in it.
I've done a script that does the same thing.
Use PHP's file function (or any other similar function that does the same thing) to read the contents of the file.
And I suggest you read on regular expressions in PHP to capture the links inside the file.
Use PHP's file function (or any other similar function that does the same thing) to read the contents of the file.
And I suggest you read on regular expressions in PHP to capture the links inside the file.
Re: Reading a file and finding and opening the links in it.
You'll probably find a couple of good regexps on google if you like.