Sample project, how to manage dynamic web site content via an AMS GUI

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Corey
    Indigo Rose Staff Alumni
    • Aug 2002
    • 9745

    Sample project, how to manage dynamic web site content via an AMS GUI

    OK so Protocol was asking how to control dynamic web site content using an AMS project. I thought I would post the sample file here for everyone.

    This is a very, very simplified demo. It consists of 3 files. One is the display page, one is the data container, and one is the admin script to edit the data. To adapt this to an AMS project simply insert a remote link to the the admin file (do.php) in a web object. Sure you could make a form in AMS, etc. but why create extra layers considering it wouldn't add any extra functionality? I always like the simplest possible solution...

    Note, when you upload the PHP files to your server you must CHMOD or change the permissions for the data.php file so that the admin script can write to it. If you don't make the data.php file writable the admin script will not work.

    Obviously this concept is infinitely expandable. I usually use a MySQL database to write to, but you can use flat text files, php files, any other type of database, etc... Personally if I was going to use a flat file to store the data I would store it as multi-dimensional array (hash), i.e.:

    $catalog[0]['name'] = "AutoPlay Media Studio Professional";
    $catalog[0]['link'] = "http://www.autoplaystudio.com";
    $catalog[0]['price'] = "495";

    $catalog[1]['name'] = "AutoPlay Media Studio Standard";
    $catalog[1]['link'] = "http://www.autoplaystudio.com";
    $catalog[1]['price'] = "295";

    $catalog[2]['name'] = "Style Workshop";
    $catalog[2]['link'] = "http://www.styleworkshop.com";
    $catalog[2]['price'] = "59";

    $catalog[3]['name'] = "Setup Factory";
    $catalog[3]['link'] = "http://www.setupfactory.com";
    $catalog[3]['price'] = "395";

    And so forth...

    Corey Milner
    Creative Director, Indigo Rose Software
    Attached Files
  • Protocol
    Indigo Rose Customer
    • Oct 2002
    • 423

    #2
    Re: Blah, blah...

    I can't tell you how invaluable this is...you rock!

    Protocol
    "White-colla-AMS-gangsta."

    Comment

    Working...
    X