Jump to content

Hrenojed

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Hrenojed's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hrenojed

    Url regex

    Hey, I need to upgrade some website I made and I'm kinda out of PHP for a while. I need to make url like [url=http://www.google.com]Search with Google![/url] At the current website, I have regex for stuff like bold, italic, etc. $c['text'] = preg_replace("#\[b\](.*?)\[\/b\]#is", "<b>$1</b>", $c['text']); I need to have a regex for url that looks like the one up there for Google. I've searched on google and here and I couldn't find anything like this. Thanks! Hrenojed
  2. Hi, I am planning to write a simple CMS with user system, forum, news, poll and stuff like that. I want to do that so I could learn more about design patterns in php5. I know how to code that in "normal" way but I don't know the logic how to do it on object orianted way. I know OOP but I don't know how to write good code with it. I have a book Php|Architects Guide To Php Design Patterns, but since my English is not very good and I don't understand complicated English, I ask you if you could write me a simply "tactic" how classes should be made for CMS, so I would have a basic to start writing it. Thank you very much
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.