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


By: Fred

Share on Facebook: On Twitter: TwitterTweet this!

  Reply to How To Create Hyperlinks Automatically With PHP

  Receive Our Newsletter




Questions about PHP:

Ask question

More Articles:
How to Turn Off Autoplay for Program CDs
How to explain bandwidth and data transfer
Image tag checker