...Beauty, cleaning, DIY tips and more - free to join!
   Login   Contact us   Site map   Puzzle Club   Ask a question    Newsletter

How To Create Hyperlinks Automatically With PHP

Computing : Learning PHP

If you run a website that allows people to add articles or posts, then you may want to set it up so as to automatically turn URLs into actual links.

There are many options to do this. You can use some sort of BBCode in order to turn the contents between 'a' in square brackets into a link, or you can simply parse for http:// followed by anything but a space and turn that into a link automatically.

To do so there are several methods, but you will probably get the most joy from using something like the preg_replace command - for more info check out the manpage at php.net


No photo yet
By: Fred

  More about PHP

  Reply to How To Create Hyperlinks Automatically With PHP

  Receive Our Newsletter

  Send to friend




Questions about PHP:

Ask question

More Articles:
How to stop pop up messages on XP
How to Change Drive Letters in Windows XP
How to Use a Shortcut to Local Area Network Connection Information