Re: [RFC] Script only include/require
| From: | Stanislav Malyshev | Date: | Tue, 24 Feb 2015 22:31:03 +0000 |
| Subject: | Re: [RFC] Script only include/require | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-83708@lists.php.net to get a copy of this message | ||
Hi!
> I think he means matching file "extension". File extension should
> represent file type, though.
You can not rely on that. I can name files anything regardless of what's
in the file.
> Since "pwnd.php" has ".php" extension, move_uploaded_file() refuses to
> move it
> to upload dir by default.
There's no pwnd.php. The file that I upload is "cuteponies.gif". Please
look at the sequence again carefully.
--
Stas Malyshev
smalyshev@gmail.com