PHP-Grab-Favicon
PHP-Grab-Favicon copied to clipboard
Web Mode (Not-Console/CLI)
The original design of get-fav.php
seems to have been to be used on a web server. The command line switches aren't very useful in this mode so I'm designing a system for processing options in "web mode".
There will be a master switch to enable these new options, it will default to disabled for security reasons.
define('ENABLE_WEB_INPUT', false);
My current thought is to have options come in over the query string and/or form fields. I have not go into any specifics yet but they will likely follow the general syntax of the command line switches.
I don't really use the script this way so this is a chance for comments/suggestions/notes.
I don't plan on adding security checks to the script itself for incoming requests as that should be handled by the server configuration (htaccess or whatever). I do plan on having some checks with paths, especially for anything that can write.