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

Posted by Erwin Moller on 11/27/07 11:26

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);

Hi,

Line 42 is maybe not the problem.
Are you sure $f returns a valid filehandler?
Maybe you need to give a full path to the mp3.
And also check if PHP-user has read-rights on that file.

Regards,
Erwin Moller

 

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

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация