separate url link from other text inside variable
Posted: Thu Mar 22, 2007 6:39 am
Hi all
whatI'm trying to accomplish is:
- separate link from other text inside variable and put it in new variable
- if in new variable is some text (if (stristr($MY_SELF, "/FCKeditor/File/")))
- take name of file from link (basename) (some html file)
- read content of that file (certain number) (file_get_contents)
- change link with new link (str_replace)
As you can see I'm missing only first part (separate link from other text inside variable)
how can I do it?
whatI'm trying to accomplish is:
- separate link from other text inside variable and put it in new variable
- if in new variable is some text (if (stristr($MY_SELF, "/FCKeditor/File/")))
- take name of file from link (basename) (some html file)
- read content of that file (certain number) (file_get_contents)
- change link with new link (str_replace)
As you can see I'm missing only first part (separate link from other text inside variable)
how can I do it?