Posted by Françoise Debat on 02/13/07 18:42
Iván Sánchez Ortega wrote:
> 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!!
Yes, I understand. How then can I sort the list alphabetically?
Thanks for your help
Françoise
Navigation:
[Reply to this message]
|