dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: PHP Special Scripting Tags

  1. #1
    Wannabe PHP Wizard
    Join Date
    Nov 2001
    Location
    Leechburg, PA
    Posts
    129

    PHP Special Scripting Tags

    I wanted to add a feature into a project I'm making that is similar to the tags that are in use here on this message board and/or wikipedia. Whereas Wikipedia uses something like {something}. The programming takes this and replaces it with something that it's programmed to.

    On this website, there will be data from a quotes database that I want to pull in. I want something like {quote|14}, where upon seeing that code, it would query the quotes database, get the information that has the ID 14, and place it into the result.

    Anyone have experience doing this?

    Thanks!
    Clint
    Clinton N Godlesky
    My Stuff:
    http://www.15656.com/clint http://www.statedirt.com
    Personal Development Projects:
    http://www.15656.com/dev

  2. #2
    Official FK nice guy and MOD 3PRIMATES's Avatar
    Join Date
    Apr 2002
    Location
    Portland Oregon
    Posts
    1,645
    I really havent seen this done the way you are describing it.

    When you show { something }, that to me looks like a templating format.
    Smarty is one of the better known templating engines.
    http://smarty.php.net/

    how it looks and is used:
    http://www.zend.com/zend/tut/tutorial-cezar.php



    3P

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center