You are here: Parsing issues in PHP « PHP Programming Language « IT news, forums, messages
Parsing issues in PHP

Posted by Pol on 02/22/06 23:46

1. I am trying to parse URLs from a txt file. The file will contain
either one link or multiple links. They may or may not have a protocol
def like http:// or ftp:// prepended.

I would like to parse this file and load these into an array.
I would also like to normalize any links without the protocol def such
as www.foobar.com to a default of http://www.foobar.com.


2. I would like to parse a link such as this:

<a href="http://www.foobar.com target="_blank">Test</a>
and load just the link(http://www.foobar.com) and proper name (Test)
into 2 separate arrays.

Any help appreciated or a link to an appropriate FAQ would also be
appreciated.

Thanks!!

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация