Yuliang... if you can go to this page:
http://www.morgantownpatiosunrooms.com/fileExists.php
you will see that the file exists.  the code is simple. then...
the next link below... takes you to a page that has
the code below in it...

so, i can detect the files presence but not read it??

http://www.morgantownpatiosunrooms.com/readfile.php
(notice the error)

<?php
$filename = 'c:\inetpub\wwwroot\morgantownpatiosunrooms\morgantown1.xml';

if (file_exists($filename))
{
    $fd = fopen(basename($filename),'r');
    while(!feof($fd))
    {
        $contents .= fgets($fd,1024);
    }
    fclose($fd);
}
else
{
    err("No &lt;xml&gt; data file found<br>Please upload the data xml
file ".$filename);
}

?>


thanks!!
tony

On Tue, Mar 10, 2009 at 7:37 PM, Yuliang Ruan <yuliangr...@hotmail.com> wrote:
>
> so there is a "garagerefacing.xml" in the same directory as that php file 
> that's running?   it might also be something like a environment variable PATH 
> or something.  or the php file is not in the same directory as that XML file 
> and there was a path variable set up before but now doesn't exist.
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320339
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to