View Single Post
  #1 (permalink)  
Old 10-18-2007, 12:23 AM
HelloWorld's Avatar
HelloWorld HelloWorld is offline
PT Admin
Awards Showcase
Quality Tutorial 
Total Awards: 1
Join Date: Jun 2007
Location: In front of computer...
Posts: 1,122
iTrader: (0)
HelloWorld is a jewel in the roughHelloWorld is a jewel in the roughHelloWorld is a jewel in the rough
Icon13 try catch on PHP4 solution..??? - help!!

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(nullnull);
  
$fb->redirect($appcallbackurl);

does anybody know how can I convert this into PHP4 style..? thx a lot!

__________________
PHP Code:
System.out.println("Hello World!"); 

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Reply With Quote