(2015-10-12, 12:20 AM)Josh H. Wrote: [ -> ] (2015-10-11, 09:10 AM)gamejump Wrote: [ -> ] (2015-09-02, 05:05 PM)laie_techie Wrote: [ -> ]You should probably configure your web server to serve any file with php as an extension in your uploads folder as text/plain.
from admin panel or server settings let me know
Server settings.
nothing happens the same things continue
Could you provide us what you have in your .htaccess file?
Try adding:
(Note: This is a mix of Googling and my modification of a solution. It may result in errors - let me know if it does.)
<FilesMatch "uploads/*\.php$">
ForceType text/plain
</FilesMatch>
(2015-10-19, 03:34 AM)Josh H. Wrote: [ -> ]Try adding:
(Note: This is a mix of Googling and my modification of a solution. It may result in errors - let me know if it does.)
<FilesMatch "uploads/*\.php$">
ForceType text/plain
</FilesMatch>
Added the code but what it does can you explain please
Thank you
(2015-10-20, 04:13 PM)gamejump Wrote: [ -> ] (2015-10-19, 03:34 AM)Josh H. Wrote: [ -> ]Try adding:
(Note: This is a mix of Googling and my modification of a solution. It may result in errors - let me know if it does.)
<FilesMatch "uploads/*\.php$">
ForceType text/plain
</FilesMatch>
Added the code but what it does can you explain please
Thank you
FilesMatch says that this block of configuration applies to files which match the pattern (eg.
.php files in the
uploads directory). The
ForceType configuration says to
always send matching files with the given MIME type (the MIME type tells the browser how to handle a resource).
text/plain is plain text (eg. treat it as a
.txt file). In essence, this prevents your server from executing the
.php file.