how to grab and store executed value of url using php

Joined
Jun 30, 2005
Messages
59
Reaction score
0
Hi all i got a url(http://map.geoup.com/geoup?template=CountryName) that if i paste it in browser address bar it will return for me a value like this:
document.write('usa');
Note: the url is external url

I want to grab only countryname value using php and store it in variable and later insert it in to mysql db. Could an expert show me how i can store the countryname into variable.
My intention is that when a user visits my php page it writes his country name to mysql db so i want the url to be executed within my php and possibly i be print that value too. i be happy if show me how i can execute the url with in my php code.


if if use java script like this :

<script language="Javascript" src="<A href="http://map.geoup.com/geoup?template=CountryName"></script>[/B">http://map.geoup.com/geoup?template=CountryName"></script>

it will print countryname alone for me but i do know if i can use this with in my php and some how set it up equal to
a varible.Thanks
 

Cache-man

Wannabe Webmaster
Joined
Mar 16, 2005
Messages
840
Reaction score
0
can you not extract this info from your server logs. Surely that can be done with PHP.

Is it not possible for you to just analyse your server stats, using something like awstats, or do you have a specific purpose in mind for recording this data?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top