On Sun, 09 Jan 2005 14:19:10 -0600
"JupiterHost.Net" <[EMAIL PROTECTED]> wrote:
> In this case there is no other sensible error message so why is die
> "$!"; what I mean when I mean die $!; ? Why no t die "Sensible error
> message $!"; ?
Well perhaps for a single debugging line, it doesn't ma
I'll need to investigate the source and maybe redo gdlib and then
GD.pm again.
is this the same gd_example.cgi that comes with GD.pm, in the demos dir
of the package, or are you running the script we've pasted here for you?
The one I had, modified with the suggestions from the list to rule out
Scott R. Godin wrote:
JupiterHost.Net wrote:
$image->string($font,2,10,'hello world',$fontcolor);
my $png = $image->png or die $!;
err, you mean
or die "$!"
not
or die $!;
Why? Its redundant and ugly to double quote a string that is a single
variable.
the quotes are there to prompt you
JupiterHost.Net wrote:
Very weird, still nothing :)
GD just isn't returning anything in any format, scalar or array
context...
Well all a bit of a mystery.
su to root and do all that stuff again, maybe there is a permission
problem on the files or on the directory.
Great idea! Still busted:
r
> >
> > Can anyone help with this
> > I have the following array:
> > 1,1040209458..
> > WRITE CONTENTS OF AN ARRAY TO OUTPUT FILES
> > for ($i=0; $i < $num_of_files; $i++){
> > open(OUT,">$file_$seq_num.txt");
> > foreach $item (@temp_array){
> >
JupiterHost.Net wrote:
$image->string($font,2,10,'hello world',$fontcolor);
my $png = $image->png or die $!;
err, you mean
or die "$!"
not
or die $!;
Why? Its redundant and ugly to double quote a string that is a single
variable.
the quotes are there to prompt you to include a sensible
Very weird, still nothing :)
GD just isn't returning anything in any format, scalar or array context...
Well all a bit of a mystery.
su to root and do all that stuff again, maybe there is a permission problem on the files or on the directory.
Great idea! Still busted:
root# ./gdtest.pl
No such
$image->string($font,2,10,'hello world',$fontcolor);
my $png = $image->png or die $!;
err, you mean
or die "$!"
not
or die $!;
Why? Its redundant and ugly to double quote a string that is a single
variable.
As for the content type header, it may display in your browser but you
should p
-Original Message-
From: Manav Mathur [mailto:[EMAIL PROTECTED]
Sent: Sunday, January 09, 2005 2:29 AM
To: beginners@perl.org
Subject: RE: Execute commands on the servers through a cgi script
Norton AntiVirus deleted the following email message because it was infected
with a virus:
Fro
JupiterHost.Net wrote:
Scott R. Godin wrote:
Owen wrote:
--insert---
open (OUT,">GD.png");
my $img = $image->png;
print OUT "$img";
--end insert---
It worked for me, try modify
Are you sure you want to do this. The type of page you are developing has
been long been a security headache. Imagine the user entering
/bin/date -s 20050427; cat /etc/passwd | mail -s 'there you are'
I understand that you are trying to implement remote root tasks through CGI,
but you must consi
11 matches
Mail list logo