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

  Reply to How To Create Hyperlinks Automatically With PHP

  Receive Our Newsletter

PHP picture



Questions about PHP:

Ask question

More Articles:
How to get traffic to your blog
How to Use a Shortcut to Local Area Network Connection Information
How to Clean Your Prefetch to Improve Performance