FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


eregi_replace problem





Antoine_935
I've a problem with logical functions...
i wrote that :
$text = eregi_replace("[img](.)+[/img]", "<img src=\"\\1\">", $text);

following what I understand, it should translate [img]source.jpg[/img] into <img src="source.jpg">

but it doesn't work...
please, help me !

EDIT: It's all right, the problem is now down

$text = eregi_replace("\[img\](.+)\[/img\]", "<img src=\"\\1\">", $text);
Related topics
Problem with Subdomains
Strange Fire fox problem
Logout problem (Cookie?)
How to solve this problem? Thanks
I have a problem....Mozilla Firefox
post nuke problem
anyone had this phpBB problem?
phpbb problem....
Transport yourself over the Net
Problem with my password
Pictures problem...
database problem
same problem over here...
Header("Location: PROBLEM");
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.