[PHP] readdir problem with white spaces

2006-06-15 Thread Francisco Morales
Hello, I the following problem with readdir 

 

When I read the directory, if the file has more than one "white spaces",
readdir only return me 

the file with one space ...

 

so if I have on the file system . "ROAD 1  005.JPG"  or "ROAD1
0005.JPG"  php readdir 

return me ROAD 1 005.JPG!!

 

while ($file = readdir ($dirlist))

   {

   if ($file != '.' && $file != '..')

   {   echo "FILE: $file";  -> ROAD 1 005.JPG

}

 

-rw-rw-r--  1 seaquist edi  125352 jun 15 12:06 ROAD 1 001.JPG

-rw-rw-r--  1 seaquist edi  157365 jun 15 12:06 ROAD 1 002.JPG

-rw-rw-r--  1 seaquist edi  115891 jun 15 12:07 ROAD 1 004.JPG

-rw-rw-r--  1 seaquist edi  135876 jun 15 12:07 ROAD 1 005.JPG

-rw-rw-r--  1 seaquist edi  103983 jun 15 12:07 ROAD 2  003.JPG

-rw-rw-r--  1 seaquist edi   92410 jun 15 12:07 ROAD 2  006.JPG

-rw-rw-r--  1 seaquist edi   75342 jun 15 12:07 ROAD 3  002.JPG

 

How can I fix this?

 

Thanks a lot

 


Key fingerprint = A232 A22F AEF0 1988 6ACB  99AF A18F A220 BD2E 8CD8

 



[PHP] Multiple upload files with php problem!!

2003-07-09 Thread Francisco Morales
Hi, I need to upload multiples files using php, but with the same "" 
tag,
somebody can help my, is this feature supported by php?.

Anyboy knows how to invocate the browser windows that allow to select more 
than one file for upload ?

thanks a lot

_
Melodías, logos y mil servicios para tu teléfono en MSN Móviles.  
http://www.msn.es/MSNMovil/

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


[PHP] Multiple upload files with php

2003-07-09 Thread Francisco Morales
Hi, I need to upload multiples files using php, but with the same "" 
tag,
somebody can help my, is this feature supported by php?.

Anyboy knows how to invocate the browser windows that allow to select more 
than one file for upload ?

thanks a lot

_
MSN Compras: Veinte tiendas personales abiertas todo el día.  
http://www.msn.es/compras/

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