here is my file:
/ $country_code = "country_name" /
$US = "United States";
$CA = "Canada";
$UK = "United Kingdom";
$AF = "Afghanistan";
I want to read the file and seek a specific $country_code and then read the country_name/$value !
Here's how far along I am !
<?
$file = "country.php";
$country = $UK;
include("country.php");
$fp=fopen($file,"r");
fseek($Country);
while ( $result=fread($Country) )
(list($key, $value) = each($Country))
{
echo $value;
?>
This should print "United Kingdom" and I then I also need to add the "$" in front to make "$United Kingdom"
Many thanks in advance,
Peter