You are here: Re: Fatal error non-object « PHP Language « IT news, forums, messages
Re: Fatal error non-object

Posted by Norman Peelman on 11/27/07 12:03

Jean Pierre Daviau wrote:
> Thanks for your patience,
>
>
> What would be the object? The filename, the $buf variable dont
> work. I have the php_id3.dll in my extensions folder...
>
>
>
> Fatal error: Call to a member function id3_get_tag() on a
> non-object in C:\Documents and Settings\Jean
> Pierre\Bureau\id3\IDTAG.php on line 42
> ----
> $fichier = "Zaytoun.mp3";
> $f=fopen($fichier,"r");
> fseek($f,filesize($fichier)-125);
> $buf = fgets($f, 125);
>
> $tag = id3_get_tag($buf, ID3_V2_3 ); //line 42
>
> fclose($f);
>
> print_r($tag);

The function expects a filename. You are trying to do the work of the
function yourself. Leave the other code out and add in some error checking.

$tag = id3_get_tag($fichier, ID3_V2_3 );

Please see: http://us.php.net/manual/en/function.id3-get-tag.php

and:

http://us.php.net/manual/en/function.id3-get-version.php

Norm

 

Navigation:

[Reply to this message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация