Hi

(Win2000, PHP 4.0.6 IIS)

$filename="streets.dat";

if (file_exists($filename))
{
   Read From File;
   Print To Html;
}
else
{
  $f=fopen($filename,"w");
  read from database to file;
  Print To Html;
  fclose($f);
}

But fopen will not create $filename, and i get an error like:
You dont have permission to create file ...
Although the manual says:

'w' - Open for writing only; place the file pointer at the beginning of the
file and truncate the file to zero length. If the file does not exist,
attempt to create it.

How to simply create file in php?

Radovan



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to