February 13th, 2008

Posted in
php,
random
I was very pleased to receive an e-mail from hostgator today, in which they stated that they will be upgrading all servers to have MySQL 5 and PHP 5 installed by default! I hope this will send out a message to the other hosting firms, which would finally allow us to start using PHP5 in all our opensource projects.

Read the rest of this entry »
Share This
February 11th, 2008

Posted in
google,
microsoft,
random
The title may be a bit too harsh, but it still remains a funny sight! Using the latest anti-phishing, the google adsense page is being blocked by Internet Explorer 7. You are recommended not to continue - and perhaps to use live search instead, we all know it’s better anyway!

Share This
February 11th, 2008

Posted in
php,
snippets
Since HostGator does not support changing the value of always_populate_raw_post_data in PHP to “1″, I had to find a work around. After spending an hour Googling my issue and it turning zero-dot-zero results I was forced into being creative.
Appearantly you can use the input wrappers to go around this setting. Perhaps you could find this useful in the future
<php
if(!$HTTP_RAW_POST_DATA){
$HTTP_RAW_POST_DATA = file_get_contents(’php://input’);
if(empty($HTTP_RAW_POST_DATA))
{
// die here
}
}
Share This