oh! too bad , I met the same trouble!
I want to save images into DB,so I use a sample php3 script to test.I had used this script successfully last year,but this time i get a error message:
++++++++++++++++++++++++++++++++++++++++++
Warning: fopen("\php14","r") - No such file or directory in C:\Inetpub\wwwroot\save.php3 on line 23
++++++++++++++++++++++++++++++++++++++++++++
line 23 is :
$data = addslashes(fread(fopen($form_data, "r"), filesize($form_data)));
in this sentence ,I can get filesize ,so I think symbol $form_data is right ,but why I can't use function fopen normally?
sablos wrote:
I too get get error messages like
"Warning: fopen("whatever.txt","r") - No such file or directory in c:\foxserv\www\try\login.php on line x"
(I use PHP with Apache server on Win98) Pressure!
In your case, I know for a fact that "bw+" is not a valid parameter for the fopen() function. I think you need to change it to "w+". That is the reason for your error.