Re: mysql, php, mp3 - a variable problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



well, you are right. the dir '/mp3' does not exist. 'mp3' is a subdir 
from my htdocs dir. so i think the right path should be 
'mp3/someartist/somesong', right?
i fixed that, but the original problem is still the same :(

> hmmm,
> maybe this code..
> 
> $info->load("/".$dir.$file);
> 
> if $dir = mp3s and $file = test.mp3
> then it will load '/mp3s/test.mp3'
> 
> you got that directory?
> I've seen the class and you are hiding the fopen error message, which could be 
> the problem.
> 
> .: Allowee
> 
> On Saturday 07 June 2003 11:11, Ole Hornauer wrote:
> > hi allowee,
> >
> > sorry, this was not meant to be. $info2 is supposed to be $info. my
> > fault. but that is not the actual problem.
> >
> > > Hi,
> > >
> > > Where do you get $info2 from?
> > > I only see $info in this function.
> > >
> > > .: Allowee
> > >
> > > > function scan_dir($dir)
> > > > {
> > > >     $info = New mphp3(2);
> > > >
> > > >     $handle = @opendir($dir);
> > > >     while ($file = @readdir ($handle))
> > > >     {
> > > >         if (eregi("^\.{1,2}$",$file))
> > > >         {
> > > >             continue;
> > > >         }
> > > >
> > > >         if(is_dir($dir.$file))
> > > >         {
> > > >             scan_dir($dir.$file."/");
> > > >         }
> > > >         else
> > > >         {
> > > >             $info->load("/".$dir.$file);
> > > >
> > > >             $query ="insert into mp3 (
> > > >                               file,
> > > >                               path,

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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux