View Full Version : PHP help

06-02-2008, 08:19 AM
I'm doing a small project for our work intranet which involves a simple web based repository of useful "stuff" and industry best-practice resources.

The problem I'm running into is that some of the resources are hosted on network shares, i.e. \\server\share1\folder1\file_a, and some are on other webservers. I want the links to these resources to be automatically generated, so someone can enter a body of text which includes one or more links, and it'll automatically generate the appropriate hyperlink.

Does anyone know if a PHP function exists to do this? it needs to be able to parse and generate http:// https:// and file:// links. The file:// links need to be generate from text in the form of \\server\share\file.