Saturday, June 8, 2013
Enabling Case sensitive support for mysql in Wamp
For enabling case sensitive support for mysql in Wamp update mysql.ini(WAMP–>MYSQL–>mysql.ini) in wamp with lower_case_table_names=2
Reference:
SoftException in Application.cpp:629: Directory is writeable by group
“SoftException in Application.cpp:629: Directory is writeable by group”. generally happens in CGI server with suPHP and Fastcgi Servers.
Fix:
By Changing executable files/folders permission from 777 to 755 will fix such issues.
Reason:
- Both suPHP and Fastcgi Servers has the security and ownership benefits.
- PHP files are executed as cpanel Users.
- Files and folders with 777 permission excluded from execution
Here’s an easy forward-compatible way to use JSON (json_encode() and json_decode()) in versions of PHP earlier than 5.2.
Download the Services_JSON PEAR package (JSON.tar)
And then add the following to your custom functions:
JSON DECODEif (!function_exists('json_decode'))
{
function json_decode($content, $assoc=false)
{
require_once 'classes/JSON.php';
if ($assoc)
{
$json = new Services_JSON(SERVICES_JSON_LOOSE_TYPE);
}
else
{
$json = new Services_JSON;
}
return $json->decode($content);
}
}
JSON ENCODE
if (!function_exists('json_encode'))
{
function json_encode($content)
{
require_once 'classes/JSON.php';
$json = new Services_JSON;
return $json->encode($content);
}
}
{
require_once 'classes/JSON.php';
if ($assoc)
{
$json = new Services_JSON(SERVICES_JSON_LOOSE_TYPE);
}
else
{
$json = new Services_JSON;
}
return $json->decode($content);
}
}
JSON ENCODE
if (!function_exists('json_encode'))
{
function json_encode($content)
{
require_once 'classes/JSON.php';
$json = new Services_JSON;
return $json->encode($content);
}
}
That’s it! Your code will continue to work, even when you eventually upgrade to PHP 5.2
Subscribe to:
Posts (Atom)