I have downloaded and installed successfully your
script into my web server (Apache/2.0.52 (Win32)
mod_ssl/2.0.52 OpenSSL/0.9.7c PHP/5.0.3RC2-dev DAV/2).
I choosed the latest snapshot (09/13/2005) and I
detected this problem with the extra "\". I started to
seek in the PHP code where was the problem and I wrote
a little fix:
In the functions file "streamline_functions.php" I have
changed the function joinFilePath to this:
function joinFilePath( $root, $path )
{
global $sl_platform;
$root = str_replace($sl_platform->getPathSeparator(),
'/', $root);
$path_sep = "/";
if ( $root{ strlen( $root ) - 1 } != $path_sep )
{
$root = $root.$path_sep;
}
if ( strpos($path, $path_sep) === 0 )
{
$path = substr( $path, 1, strlen( $path ) - 1 );
}
return $root.$path;
}
As you can notice, I have added:
$root = str_replace($sl_platform->getPathSeparator(),
'/', $root);
$path_sep = "/";
This forces all the "\" characters in a Windows OS path
to "/" as it was a UNIX one. This is done because PHP
can handle them without any problems, and will open the
mp3 file o whatever resource it links to. Now my
streamline in Windows is working fine.
Patched streamline streamline_functions.php file of the core