Dynamic uri vs static uri

Discussion in 'PHP' started by figo2476, Jun 14, 2008.

  1. #1
    Hi:

    I just download a free version of flash_page_flip from http://www.flashpageflip.com/

    I set up a file structure like this, based on the package from the site:
    /book
    /book/index.php
    /book/js/ --> swfobject.js
    /book/swf/ --> Magazine.swf, Pages.swf
    /book/txt/Lang.txt
    /book/xml/Pages.xml

    How it works?
    I assume when it accesses from the this uri (http://www.finditreadit.com/afl/aflannualreport/aflannualreport2006/mode/book).
    It will loads Magazine.swf
    Magazine.swf then loads images as pages from the server to Pages.swf

    Why is it called dynamic uri?
    Because it is not based on file system in the server. It is a bit like model view controller used
    by rail.

    Access via dynamic uri
    http://www.finditreadit.com/afl/aflannualreport/aflannualreport2006/mode/book
    You will see a cycle there. That means the flash is still loading, but it never finish.

    Access via static uri (It is based on the paths of the server)
    http://www.finditreadit.com/test/all/aflannualreport/aflannualreport2006/book
    (I disable it, but it is tested.) It will work.

    My understanding:
    I assume when it access via static uri. The flash uses relative paths. That means
    I only need to specify parts of the file paths. While accessing dynamic uri, flash file
    must rely on full file path. So I assume Magazine.swf doesn't know where to find Pages.swf

    What about your thought?
     
    figo2476, Jun 14, 2008 IP