Remember last URL or How to integrate a simple proxy ?
Posted: Tue May 27, 2008 4:18 pm
Hi all,
I have a PHP that opens a second browser window (with a few controls) and then re-directs the main window to a third party search page where the user operates. Nevertheless, I would like the PHP to have access to current URL in the main browser window so that it can be used by the controls in the second window.
I thought about a number of solutions, one being Javascript. However JS does not allow for cross domain information thus the URL cannot be requested. A cookie also won't work since the main window leaves my PHP environment and I don't want to use a frame because of that. Another sensible solution seems to be a super-light and simple proxy in PHP that would operate in between the browser and the web and record the last page URL that was visted (entered or clicked) and provide it through a PHP function.
I found one here:
http://www.abdulqabiz.com/files/proxy.php.txt
The question remains how to integrate this script as a proxy into Internet Explorer (or generally into any web browser) settings so that every time the browser performs a request it is handed over to this script in the right manner and the output if pushed back to the browser.
Did anybody here have some similar problem and can help? Or is there a much simpler solution to this? I am an absolute PHP newbee but happy to learn.
Best Regards,
Karl
I have a PHP that opens a second browser window (with a few controls) and then re-directs the main window to a third party search page where the user operates. Nevertheless, I would like the PHP to have access to current URL in the main browser window so that it can be used by the controls in the second window.
I thought about a number of solutions, one being Javascript. However JS does not allow for cross domain information thus the URL cannot be requested. A cookie also won't work since the main window leaves my PHP environment and I don't want to use a frame because of that. Another sensible solution seems to be a super-light and simple proxy in PHP that would operate in between the browser and the web and record the last page URL that was visted (entered or clicked) and provide it through a PHP function.
I found one here:
http://www.abdulqabiz.com/files/proxy.php.txt
The question remains how to integrate this script as a proxy into Internet Explorer (or generally into any web browser) settings so that every time the browser performs a request it is handed over to this script in the right manner and the output if pushed back to the browser.
Did anybody here have some similar problem and can help? Or is there a much simpler solution to this? I am an absolute PHP newbee but happy to learn.
Best Regards,
Karl