Jump to content

[SOLVED] Execute a Function when a die/exit occurs


grs5211

Recommended Posts

I have this code:

$dir_handle = opendir($path) or die("Unable to open $path");

 

What I want to do is goto a javascript function if the path fails instead of just the message output.

 

I would like to do this:

$dir_handle = opendir($path) or die(execute my 'function');

 

Any thoughts!!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.