PHP

No Input File Specified Codeigniter Problem

If you are facing problem/error "no input file specified." in Codeigniter, here is a quick fix for that: Open .htaccess file in your favorite code editor and add ? (question Mark) after index.php in line which says: RewriteRule ^(.*)$ /index.php/$1 [L] your file should look like/similar as below after changes: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /index.php?/$1 [L] It is a well known issue with some of web hosting servers for example Hostgator India and GoDaddy read more >>

Non Well Formed Numeric Value Encountered in PHP Date

If you get "non well formed numeric value encountered" error in PHP while using date() function to save into MYSQL database, use strtotime() function to correct this: $my_date = '20-12-2015'; echo date('Y-m-d', strtotime($my_date)); will output: 2015-12-20 which can be saved into MYSQL. read more >>