Changeset 1730

Show
Ignore:
Timestamp:
2005-12-22 16:34:14 (3 years ago)
Author:
ctford
Message:

Now correctly finds the .anx file to import. It's now possible to request an .anx file from Apache and ummm... get an .anx file :) Temporal URIs still untested.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • phpannodex/trunk/phpsrc/nph-mod_annodex.php

    r1728 r1730  
    2828function get_filename_root() { 
    2929 
    30         $filename = $_SERVER['PATH_INFO']; 
     30        /* FIXME There must be a better way of getting the actual path of the 
     31         * file than this. Also, I'm not sure that this will port at all. 
     32         */ 
     33        $filename = $_ENV['DOCUMENT_ROOT'] . substr($_SERVER['PATH_INFO'],1); 
    3134 
    3235        /* Remove ".anx" */ 
     
    7174 
    7275        start_headers(); 
    73         echo('Content-Type: text/x-cmml'); 
    74         echo "\n"; 
     76        echo("Content-Type: text/x-cmml\n"); 
    7577        echo "\n"; 
    7678 
     
    9092 
    9193        //$comp = "/var/www/phpannodex/php_tests/a_new_computer"; 
    92         $filename = $filename_root . ".ogg"; 
     94        $filename = $filename_root . ".anx"; 
    9395        //$filename = $comp . ".ogg"; 
    9496         
    9597        start_headers(); 
    9698        echo "Content-Type: application/x-annodex\n"; 
    97         echo "$filename\n"; 
    98         //header("X-Duration: $duration"); 
    99         //header("X-Bitrate: $bitrate"); 
    10099        echo "\n"; 
    101100