php header to non http page

Associate
Joined
20 May 2007
Posts
441
Hey everyone,

I'm not sure if this is possible but here it goes, I basically need to detect when I a user selects a link a navigates away from a web page in a program.

So they click logout, some computer is done and then I would like to redirect the browser to a link along the lines of 'MyAppName://<Logout></Logout>' Which my app can then extract the MyAppName from the link and parse the XML accordingly.

However in php the:

header("Location: MyAppName://<Logout></Logout>");

Doesn't seem to be working, I've only gotten this technique to work on links on a page i.e. <a href="MyAppName://...." /> but I don't want the user to have to click a button.

Anyone have any ideas?

Cheers,
Matt
 
I've used the header like that and it worked without problems before, however I need it to go to a page not starting with http:// Which is where the problem starts :-S.

The application side of it can just be ignored, as all it does is listen to the browser for when the url changes.
 
Back
Top Bottom