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
![]() Questions about PHP:
|
|




