Does anybody know what is the solution of try .. catch .. block for PHP4..? This is the fault of my web hosting that's not supporting PHP5.x and the application that I'm going to create will required this piece of code below:
PHP Code:
//catch the exception that gets thrown if the cookie has an invalid session_key in it
try {
if (!$fb->api_client->users_isAppAdded()) {
$fb->redirect($fb->get_add_url());
}
} catch (Exception $ex) {
//this will clear cookies for your application and redirect them to a login prompt
$fb->set_user(null, null);
$fb->redirect($appcallbackurl);
}
does anybody know how can I convert this into PHP4 style..?

thx a lot!