Forum Moderators: coopster

Message Too Old, No Replies

How to integrate a User-Agent string into include() like functions?

         

sidyadav

4:10 am on May 13, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm currently in the process to setup something which will display any url entered within the url string.

So for example, if you go to example.php?url=http://www.widgets.com, it will show you widgets.com through the script (using php include ;)).

This is just a experimental thing but I may soon decide (once it gets all good and nasty) to put it on the web.

My real question would be, how can I add a user-agent string to the include($url) function?
It currently uses my server's default user-agent.

Any help/suggestions would be most appreciated.

Sid

jatar_k

5:10 pm on May 13, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



why not use curl [ca.php.net] for it instead of include?