Posted by Iván Sánchez Ortega on 02/13/07 18:36
Françoise Debat wrote:
> I have this problem reading the contents of a directory. here is my code:
>
> $my_dir = dir('data/templates');
>
> asort($my_dir);
Eeeerrr.... $my_dir is not an array, you cannot run asort() through it!!
--
----------------------------------
Iván Sánchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-
http://acm.asoc.fi.upm.es/~mr/ ; http://acm.asoc.fi.upm.es/~ivan/
MSN:i_eat_s_p_a_m_for_breakfast@hotmail.com
Jabber:ivansanchez@jabber.org ; ivansanchez@kdetalk.net
Navigation:
[Reply to this message]
|