Easy configuring timezone in web server
Simply Include the next line in the .htaccess file of your web server:
php_value date.timezone Europe/MadridHere you can see the complete List of Supported Timezones.
Simply Include the next line in the .htaccess file of your web server:
php_value date.timezone Europe/MadridHere you can see the complete List of Supported Timezones.
I have been studing symfony for the last two months and I have discovered a new world in web developing.
Armed with all my new skills, I am now migrating the web site www.ajedrezenmadrid.com from msaccess/asp to mysql/php.
As a senior windows developer I feel comfortable with my windows system, so I installed wampserver package as an easy way to get apache, mysql and php running in my windows xp system.
After the normal newbie counter-times, that I will explain in fore coming articles, and several weeks of hard work, I had a beta version of the backend running in my computer. It was time to deploy my work.
I used the straight-forward method of uploading all my project by hand via ftp, and every seemed to go well… except for one page. The web server was reporting an “unable to find the file …” exception, so I checked that the file existed, but, what to do next?
The problem was not so obvious for a long time windows developer. I had changed the case of a letter of one filename in an include php instruction. That was all, but it took me half an hour to find the problem, so today’s article is just a reminder for those of us that have always developed under Microsoft Windows systems:
Beware of the case-sensitive filenames!
Nowadays, most web servers are linux systems, which are case-sensitive, so remember to be very careful when writing filenames or you will encounter yourself following a “ghost-bug” for a while.