problem with this script:
if( file_exists("optionfiles/$country.txt"))
{
$city = file("optionfiles/$country.txt");
$num_cities = count($city);
echo "<select name='city'>";
for ($i=0; $i<$num_cities; $i++)
{
echo "$city[$i]";
}
echo "</select>";
}
else {
echo "<select name='city'><option value='0' selected>No cities list for this country</option></select>";
}
In netscape, if file-exists, this file is being included.... In Internet Explorer returns "No cities list for this country" even if file exists. Where is the problem?
I tried to change the script to:
if( file_exists( "/home/virtual/site5/public_html/optionfiles/$country.txt" ) )
but the same - ok in Netscape, but not in MIE.
Thanks.