Short Tag – Web Development Blog

Entries Tagged ‘Apache’

CGI script and PHP

CGI it’s not a programming language. CGI(Common Gateway Interface) it’s just an interface between the http server and the software residing on the host machine.
You can write CGI script using a variety of programming languages: PHP, PERL, C, C++, etc.
Why use CGI scripts?
CGI scripts are very useful when you need to combine PHP with other [...]

Force server to parse old .INC files, Add Extension Handler in Apache

If we use some older script we might notice that they use files with extensions, like .inc. Some servers do parse these files only if they are included from .php files, if accessed directly the server will display them as regular text files. Depending on the script this could be a big security issue.
So we [...]