Hi all i tried the following php script but when i run it i get the following error:
I put ')' after Arry( to make it like Array() but still i get the above error. So i be happy if an expert tell me how to fix it. ThanksCode:Parse error: syntax error, unexpected ';', expecting ')' in www\remote.php on line 35
The bold part shows the error line:
Code:<? // Copy remote file locally to scan with getID3() $remotefilename = 'http://ww.remoteserver.com/song.mp3'; if ($fp_remote = fopen($remotefilename, 'rb')) { $localtempfilename = tempnam('/tmp', 'getID3'); if ($fp_local = fopen($localtempfilename, 'wb')) { while ($buffer = fread($fp_remote, 8192)) { fwrite($fp_local, $buffer); } fclose($fp_local); // Initialize getID3 engine $getID3 = new getID3; $ThisFileInfo = $getID3->analyze($filename); // Delete temporary file unlink($localtempfilename); } fclose($fp_remote); } // Writing tags: require_once('getid3.php'); $getID3 = new getID3; getid3_lib::IncludeDependency(GETID3_INCLUDEPATH.'write.php', __FILE__); $tagwriter = new getid3_writetags; $tagwriter->filename = $Filename; $tagwriter->tagformats = array('id3v2.3', 'ape'); $TagData['title'][] = 'Song Title'; $TagData['artist'][] = 'Artist Name'; $tagwriter->tag_data = array(; ===> error here if ($tagwriter->WriteTags()) { echo 'success'; } else { echo 'failure'; } <?




Reply With Quote