Changeset 1730
- Timestamp:
- 2005-12-22 16:34:14 (3 years ago)
- Files:
-
- phpannodex/trunk/phpsrc/nph-mod_annodex.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
phpannodex/trunk/phpsrc/nph-mod_annodex.php
r1728 r1730 28 28 function get_filename_root() { 29 29 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); 31 34 32 35 /* Remove ".anx" */ … … 71 74 72 75 start_headers(); 73 echo('Content-Type: text/x-cmml'); 74 echo "\n"; 76 echo("Content-Type: text/x-cmml\n"); 75 77 echo "\n"; 76 78 … … 90 92 91 93 //$comp = "/var/www/phpannodex/php_tests/a_new_computer"; 92 $filename = $filename_root . ". ogg";94 $filename = $filename_root . ".anx"; 93 95 //$filename = $comp . ".ogg"; 94 96 95 97 start_headers(); 96 98 echo "Content-Type: application/x-annodex\n"; 97 echo "$filename\n";98 //header("X-Duration: $duration");99 //header("X-Bitrate: $bitrate");100 99 echo "\n"; 101 100