R: File Uploads
| From: | --- | Date: | Fri, 14 Sep 2001 08:08:38 +0000 |
| Subject: | R: File Uploads | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-67344@lists.php.net to get a copy of this message | ||
you can use strrchr to find the extension, like this:
if ($file != ".htaccess" && $file != "." && $file !=
".." &&
strrchr($file,".") != ".php")
Try to see php manual, probably i mispelled it.
----------------------
Federico
flagzenNO-SPAM@libero.it
----------------------
Christopher Cm Allen <callen@nocpop.net> wrote in message
008d01c13c6c$3a41a640$1dbea318@mn.mediaone.net...
Greetings:
Looking for a way to say *.php in this code:
if ($file != ".htaccess" && $file != "." && $file !=
".." && $file != ANY
PHP FILE)
I have tried *.php...
Any Ideas?
Thanks
CCMA