Monthly archives: March 2007

Entries found: 2

Programmatically determine Joomla homepage

If both mod_rewrite and 301′s are out in full force the home page is not going to be identifiable by a Server query_string containing “frontpage.” To determine if the current code is on the home page:

$s = filter_var($_REQUEST['QUERY_STRING'], FILTER_SANITIZE_SPECIAL_CHARS);
if (empty($s)) {

//you’re on the home page

}

WAMP PHP 5 curl trick

WAMP 5 does not activate curl via the php settings/extensions options. After that menu is checked open php.ini and uncomment extension=php_curl.dll, then restart WAMP services.

2013 © Web Programming Answers