Re: Newbie Q plz help

From: Date: Sat, 14 Sep 2002 02:32:00 +0000
Subject: Re: Newbie Q plz help
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-15803@lists.php.net to get a copy of this message
You do not have a comma between your parameters. > $fp = fopen("data.txt" 'rb+'); Should be: $fp = fopen("data.txt", 'rb+'); Also, the parameters to fclose are as follows: fclose($fp); Hope this helps. If not, try: <?php $fp = fopen("data.txt", 'rb+'); if ($fp === FALSE) { echo "It failed!!!"; } else { echo "It worked!!!"; } fclose($fp); ?> This will test the connection to see if it worked. Have fun... -- Scott Carr OpenOffice.org Documentation Maintainer http://documentation.openoffice.org/ Quoting "Joe Sze @ HK" <treebear1@hotmail.com>: > i'm using Win 2000 professional > > my code > <?php > echo "Hello World"; > $fp = fopen("data.txt" 'rb+'); > $fp = fclose("data.txt", 'r'); > ?> > > i've found that i cannot call fopen() in win2000, > but under the same configuration in win98, it is no problem, can ne1 help, > thx in advance > > > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > ------------------------------------------------- This mail sent through IMP: http://horde.org/imp/

« previous php.windows (#15803) next »