php upload q
php upload q
Out of context: Reply #1
- Started
- Last post
- 9 Responses
- CAJTBr0
well the last time i used php was about 18 months ago, but i'll have a shot anyway.
i'd guess what's happening is that because php files are text files, doing a strstr for text/plain on the type is always going to return something. i don't understand why you're doing that anyway, why not just strstr the filename on its own rather than filename and file type?
i may be reading it wrong, but i'd do that.