Re: 4.0.6 to 4.3.0
| From: | nicos@php.net | Date: | Fri, 07 Feb 2003 14:10:47 +0000 |
| Subject: | Re: 4.0.6 to 4.3.0 | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-134719@lists.php.net to get a copy of this message | ||
Yes, see http://www.php.net/manual/en/language.variables.predefined.php
You should use $attach = $_GET['attach']; before if it's comming from an URI
or $_POST or $_SESSION or $_COOKIE...
--
Regards.
M.CHAILLAN Nicolas
nicos@php.net
www.WorldAKT.com Hébergement de sites internets.
"Brian V Bonini" <b-bonini@cox.net> a écrit dans le message de news:
1044626602.3994.8.camel@gfxdesign...
> 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_message.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_message.php
on line 30
>
> After upgrading from 4.0.6 to 4.3.0
>