southbeach
Programmer
I have
I have used this kind of code in linux countless times w/out problems. For the first in windows and it does not work. file_exists() is returning FALSE and the file, I can assure, you is there.
Why won't file_exists() find the file?
Thanks
Code:
if (file_exists("c:/appl/data/piechart.txt"))
{
$fdata = file("c:/appl/data/piechart.txt");
$size = sizeof($fdata);
for($i = 0; $i < sizeof($fdata); $i++){
if ($i == 1) { // Data Headings
list($hdept,$hfreight,$houtlay,$hhandling,$hpos,$hshipments)=split("~",$fdata[$i]);
} elseif ($i == 2) { // Air
list($adept,$afreight,$aoutlay,$ahandling,$apos,$ashipments)=split("~",$fdata[$i]);
} elseif ($i == 3) { // Ocean
list($odept,$ofreight,$ooutlay,$ohandling,$opos,$oshipments)=split("~",$fdata[$i]);
} elseif ($i == 4) { // Surface
list($sdept,$sfreight,$soutlay,$shandling,$spos,$sshipments)=split("~",$fdata[$i]);
}
}
I have used this kind of code in linux countless times w/out problems. For the first in windows and it does not work. file_exists() is returning FALSE and the file, I can assure, you is there.
Why won't file_exists() find the file?
Thanks