проблемы с new MP3_Id() - Visavi.net https://visavi.net/ RSS - Visavi.net https://visavi.net/assets/img/images/logo_small.png RSS - Visavi.net https://visavi.net/ [email protected] (admin) [email protected] (admin) Sat, 11 Jan 2025 16:00:45 +0300 Ты старую библиотеку id3 для php используешь, судя по функциям. Вот как я это делал. в наборе пример (ну, это естественно заменишь на своё) и сами библиотеки.<br> <a href="http://rghost.ru/34315781" target="_blank" rel="nofollow">http://rghost.ru/34315781</a> https://visavi.net/topics/27364/460987 проблемы с new MP3_Id() Станислав Mon, 12 Dec 2011 06:14:02 +0400 Сообщения https://visavi.net/topics/27364/460987 нет записи в базу<br> <pre class="prettyprint"> $size = $_FILES&#91;&#039;muzfile&#039;]&#91;&#039;size&#039;]; $name = mysql_escape_string(htmlspecialchars($_FILES&#91;&#039;muzfile&#039;]&#91;&#039;name&#039;])); $new = $_SERVER&#91;&#039;DOCUMENT_ROOT&#039;].&quot;/files/muz/&quot;.time().&quot;.&quot;.rand(1,900); move_uploaded_file($_FILES&#91;&#039;muzfile&#039;]&#91;&#039;tmp_name&#039;], $new); $bitrate = 0; $long = 0; if($ex == &#039;mp3&#039;) { $id3 = new MP3_Id(); $result = $id3-&gt;read($new); $bitrate = $id3-&gt;getTag(&#039;bitrate&#039;); $long = $id3-&gt;getTag(&#039;length&#039;); $l = explode(&quot;&#58;&quot;,$long); $long = $l&#91;0]*60 + $l&#91;1]; $a1 = iconv(&quot;windows-1251&quot;,&quot;utf-8&quot;,$id3-&gt;getTag(&#039;name&#039;)); $name = (!empty($a1)) ? mysql_escape_string(htmlspecialchars($id3-&gt;getTag(&#039;name&#039;))) &#58; $name; } mysql_query(&quot;INSERT INTO `gallery_music_file` (`set`, `id_user`, `name`, `ext`, `size`, `bitrate`, `long`, `path`) VALUES (&#039;$alb&#91;id]&#039;,&#039;$id&#039;,&#039;$name&#039;,&#039;$ex&#039;, &#039;$size&#039;,&#039;$bitrate&#039;,&#039;$long&#039;,&#039;$new&#039;)&quot;); echo mysql_error(); $err = &#039;Файл успешно загружен.&#039;; $id_music = mysql_insert_id(); mysql_query(&quot;INSERT INTO `user_news` (`id_user`,`news`,`time`,`where`,`link`) VALUES (&#039;$user&#91;id]&#039;,&#039;Добавлена новая аудиозапись&#039;,&#039;&quot;.date(&quot;Y-m-d H&#58;i&#58;s&quot;).&quot;&#039;,&#039;$alb&#91;name]&#039;,&#039;audio/$user&#91;id]_$alb&#91;id]_$id_music.$ex&#039;)&quot;); </pre> https://visavi.net/topics/27364/460980 проблемы с new MP3_Id() Удаленный Mon, 12 Dec 2011 04:40:26 +0400 Сообщения https://visavi.net/topics/27364/460980