>
> Any thoughts as to why this snippet:
>
> 25: if ($attach != "none")
> 26:  {
> 27:    $file = fopen($attach, "r");
> 28:    $contents = fread($file, $attach_size);
> 29:    $encoded_attach = chunk_split(base64_encode($contents));
> 30:    fclose($file);
>
> would produce these errors:
>
> Warning: fread(): supplied argument is not a valid stream resource in
> /usr/virtual/share/pkgs/installed/aeromail/1.40/aeromail/send_mess
> age.php on line 28
>
> Warning: fclose(): supplied argument is not a valid stream resource in
> /usr/virtual/share/pkgs/installed/aeromail/1.40/aeromail/send_mess
> age.php on line 30
>
> After upgrading from 4.0.6 to 4.3.0
>

Most probably because with 4.3.0 register_globals is set to OFF by default -
where does $attach get set?

Rich


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

Reply via email to