Re: Adding links to HTML for a CMS
| From: | Matt Monaco | Date: | Sat, 26 Nov 2005 16:33:01 +0000 |
| Subject: | Re: Adding links to HTML for a CMS | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-226478@lists.php.net to get a copy of this message | ||
You can use file_get_contents and use an http address as a parameter. Then
use the pearl regular expressions functions to replace <p> with the elements
you'd like.
""Shaun"" <shaunthornburgh@hotmail.com> wrote in message
news:AC.48.56276.9A458834@pb1.pair.com...
> Hi,
>
> I am trying to create my own CMS. To being with I want to let users edit
> anything within a <p> tag.
>
> I want to have a menu to the left and display the webpage in the rest of
> the page, and for each set of <p> tags I want the user to be able to click
> on the link to edit that paragraph.
>
> My problem is how can I include a webpage in my CMS and for each <p> tag
> wrap an <a href""> tag araound it?
>
> Thanks for your advice.