include - How to send HTTP Headers to an included page in php? -


I need to include some URL in php. I use the following code:

  of   

The problem is that work is not being sent to a different job based on page some_page.jsp request header user-agent

Thank you.

< P> This is a bad pattern to use, if it is on your server, you should include it only through a relative path (why) and if it is not, you basically have the key on your site To another domain.

To request another document with a different user agent, try the cURL library.

Do not release for informational purposes only ...

If you want will run the resulting PHP code (and I firmly I recommend that you do not respond to 'code, eval () and' most important why? )

Update

You point to a URL at Inc_url_ include , and it is off by default if you enable it, You can set the user code with the user_agent option.

If you want to do this php and Jsp should meet the site together, you send data only Should try, the code should not run on HTTP for others

Comments