y m i getting this error???? can ne 1 help me out????

Parse error: parse error, expecting `')'' in
/home/test/public_html/mp3/music.php3 on line 10



<?
function ConvertBin($Binary)
{
/*  global extract($GLOBALS);*/

//This function converts a binary byte into an ASCII byte.
  for ($i=1; $i<=strlen($Binary); $i=$i+1)
  {
    $strChar=char($AscB[substr($Binary,$i-1,1)]);
    $function_ret=ConvertBin(.$strChar);
  }
  return $function_ret;
}


//Specify the folder to iterate through, displaying all the MP3s
$folder="/home/test/public_html/mp3/";

//Grab the folder information
// $objFSO is of type "Scripting.FileSYstemObject"

$objFolder=readfile($folder);

//Create the Stream object
// $objStream is of type "ADODB.Stream"

$objStream.$Type=$adTypeBinary;

//Loop through the files in the folder
foreach (;
// unknown filesystem method as $objFile)
{
//Open the stream
} $Open;
$objStream.$LoadFromFile$objFile.$Path;

//Read the last 128 bytes
$objStream.$Position=$objStream.$size-128;

//Read the ID3 v1 tag info
$strTag=ConvertBin($objStream.$Read[3]);
if (strtoupper($strTag)=="TAG")
{

  $strSongName=ConvertBin($objStream.$Read[30]);
  $strArtist=ConvertBin($objStream.$Read[30]);
  $strAlbum=ConvertBin($objStream.$Read[30]);
  $strYear=ConvertBin($objStream.$Read[4]);
  $strComment=ConvertBin($objStream.$Read[30]);
}


//Display the results
print "<table><tr><td colspan=2><h3>".
"ID3 Tag info for:</td></tr><tr>".
"<td colspan=2>".$objFile.$Name."</td></tr>";
print "<tr><td><b>Artist: </b></td>".
"<td>".$strArtist."</td></tr>";
print "<tr><td><b>Track: </b></td>".
"<td>".$strSongName."</td></tr>";
print ;

?>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to