Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > PHP How-To
|
PHP How-To Post your "How do I do this with PHP?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 30th, 2006, 01:57 PM
Friend of Wrox
 
Join Date: Mar 2005
Posts: 264
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to grab and store executed value of url

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="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





Similar Threads
Thread Thread Starter Forum Replies Last Post
Application that can grab & display URL of webpage josephx VB.NET 3 November 4th, 2007 11:59 AM
why is this code executed twice? hertendreef ASP.NET 2.0 Basics 1 February 23rd, 2007 06:05 AM
Grab url address Mantis Pro PHP 3 December 23rd, 2005 09:04 AM
Retrieve and store the images from server URL ccc_storage Classic ASP Professional 13 August 19th, 2004 07:28 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.