NEVERMIND :) i think i fixed it!! but im not sure of the security of the fix. but it works so far. ill be hardening it up if i need to... thanks! tony
On Tue, Mar 10, 2009 at 6:52 PM, Rastafari <[email protected]> wrote: > 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 <xml> data file found<br>Please upload the data xml > file ".$filename); > } > > ?> > > > thanks!! > tony > > On Tue, Mar 10, 2009 at 7:37 PM, Yuliang Ruan <[email protected]> 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:320340 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

