Re: Watermark with GD
| From: | Gary | Date: | Fri, 29 Oct 2010 19:44:50 +0000 |
| Subject: | Re: Watermark with GD | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-309146@lists.php.net to get a copy of this message | ||
"Adam Richardson" <simpleshot@gmail.com> wrote in message
news:AANLkTi=keNXt7yEwrZtcm4+hyifRLQhOZxSe7Ufmqjp=@mail.gmail.com...
On Fri, Oct 29, 2010 at 3:05 PM, Gary <gpaul@paulgdesigns.com> wrote:
> I am trying to get the watermark to work, however I am having a problem in
> that the image is being called from a database (image sits in images
> file).
>
> The script in question is this
>
> $image = imagecreatefromjpeg($_GET['src']);
>
> However it produces an error message of
>
> Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: Filename
> cannot be empty in /home/content/a/l/i/alinde52/html/imagesDetail.php on
> line 233
>
First things first. It looks like there's nothing in $_GET['src'].
From where are you getting the value 'src'?
Adam
**
Adam
Thanks for your reply, that is my question, what is to replace ['src'] if I
am calling the image from a database.
Gary
__________ Information from ESET Smart Security, version of virus signature database 5575 (20101029)
__________
The message was checked by ESET Smart Security.
http://www.eset.com