PHP Classes

Unsafe package?

Recommend this page to a friend!

      Login Controller  >  All threads  >  Unsafe package?  >  (Un) Subscribe thread alerts  
Subject:Unsafe package?
Summary:use of .inc files is not unsafe?
Messages:2
Author:Sergio Penalva Marín
Date:2012-03-02 10:44:37
Update:2012-04-16 10:55:26
 

  1. Unsafe package?   Reply   Report abuse  
Picture of Sergio Penalva Marín Sergio Penalva Marín - 2012-03-02 10:44:37
Hi. I'm watching your class and i think the use of .inc files may be unsafe for a web developer. These files can be read as plain text by url. Is not better do these files .php?

Sorry for my english. i don't know much :_

  2. Re: Unsafe package?   Reply   Report abuse  
Picture of Marcos Rafael Costa Loureiro Marcos Rafael Costa Loureiro - 2012-04-16 10:55:26 - In reply to message 1 from Sergio Penalva Marín
PHP can be readed as plain text too, so theres no security in changing to .php, meanwhile, being, .inc it might "diverge" the hacker attention to other files, like php xD