I have a cgi script-
#!C:/Perl/bin/perl -wT
use strict;
use CGI;
my $q = new CGI;
binmode STDOUT;
print $q->header(-type => "image/gif" );
use Image::Magick;
my $image=Image::Magick->new;
$image->Set(size=>'30x180');
$image->Read("gradient:#ff-#ff");
$image->Raise('3x3');
$image->Rotate
First, thanks (again) for past help. This one might be tough.
I have a number of images stored in a database and a script that takes care
of fetching the right one. It is the target of an html image tag.
http://localhost:80/fetch.pl?star=polatis&type=bright&num=5";>
In static pages, this works fin
Bruce:
use warnings;
use strict;
use DBI;
my $dbname = 'Bruce';
my $dbhostname = 'localhost';
my $user = 'root';
my $password = '' ;
my $cs = "CREATE TABLE employee_Info (primary_key INT AUTO_INCREMENT NOT
NULL, name CHAR(20), surname CHAR(20), employee_no CHAR(10), shoe_colour
CHAR (
The discussion was a learning experience for me as well, (again I learned
the DBI and DBD can do!)
David Kirol
"T. Murlidharan Nair" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi All:
>
> This for the benifit of all. I had a wonderful time discussing this
>
> Calling sub fetch from within the next subroutine again does not work
> either :(
I believe the fetch sub does as you ask it to. The problem is you are asking
it to return the password of row where
f_name = ''
and f_surname = ''
Try passing the names as hidden fields in the first form to the
Richard,
You did take that from the 'Rat' book, but in the book
use CGI qw( standard );
Allows the author to use an implicit $q-> so he can write table
where as you need to write $q->table, $q->Tr, $q->td etc.
HTH
"Richard Krause" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[E
There are many possible sources of error. Please include the actual error
you received, and you will get the help you need.
I have posted a few DBI/CGI scripts here
http://www.geocities.com/k2001evad/pindex.html
They are abit crude, but if you have MySql up and running on you machine and
the CGI,
Bruce,
Connie's point is important. bruce2.pl shebang line (the first line in
the script) must match your perl install because Apache uses it to determine
what program to use to run the script. Also any references to files or
folders in that script must be available on your server. I suspect t
Not sure if this is the correct place to ask, partly because I'm not sure
where the problem lies.
Environ: Winnt, ActiveState Perl, ImageMagick, Apache.
Script uses CGI standard. I am attempting to access various methods from
Image::Magick, some of which require no arguments, 1 argument, several ar
to replicate functionality I have seen on the
web (specifically Image Magick Studio). If this leads to a compact,
functioning program I will make it available to all interested. Thanks for
your response!
David
"Wiggins D'Anconia" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTE
Jerry,
I use this to track the modules I have installed for an ActiveState perl
install on WinNt.
#!E:/Perl/bin/perl -w
use ExtUtils::Installed;
my $instmod = ExtUtils::Installed->new();
foreach my $module ($instmod->modules()) {
my $version = $instmod->version($module) || "???";
print "$module
Merritt,
Works as expected in the console, but not in the browser?
Let me introduce you to a friend of mine
use CGI::Carp qw( fatalsToBrowser );
Your script operates under different permissions in the console and the
browser. Look at the Apache error log (and use cgi carp) to get a better
Idea
tr transliterate
Tr table row
qw( :standard *Tr );
allows one to use start_Tr and end_Tr so that you don't have to pull your
hair out trying to nest method calls.
HTH
<[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I don't believe there is a start_tr() method, w
> > i can't change the text color in a single row of table (even in all
table)
> > sincerely greg
> this is an html specification. To affect data or text in the cells each
cell
> must be formatted with the desired attributes.
> Check W3C HTML 4.01 spec.
You can mix in standard html pretty much a
Greg,
Show some code, if you can.
> i am using references in
> table rows - it's better for me to highlight row by bgcolor avoiding
Why would references be a problem?
> additional loops - but maybe any idea how to quick change text color for a
> row that's defined as reference to table - thanks i
Ed,
A 'cleaner' approach.
#!/usr/bin/perl -w
use strict;
my %hash = (
fruits => {
favorite => "apples",
'second favorite' => "oranges",
},
vegetables => {
favorite => "corn",
'second favorite' => "peas",
'least favorite' => "turnip",
},
meats =>
Ed, Wiggins, et al
> > $newH{'TS'} => $TS; # TS is the outer key. <<== line 33
>
> This sets the outer hash key to the string 'TS' and gives it the value of
the time ($TS) from above.
>
I don't think so. It's late I'm beat but
$newH{'TS'} = $TS;
as opposed to
$newH{'TS'} => $TS;
Which generate
James,
> I am writing a members registration perl script , and I want to be able to
> clear the html output so that another form page can be displayed once the
> form has been filled in and the values processed. ie when the script
passed
The browser will not behave like a terminal screen. You will
Rob,
>
> I tried another program to illustrate the "br" problem. Here is the
> entire program:
>
Not really - the packages ScheduleDay and Train are missing
> #!/usr/bin/perl
>
> use warnings;
> use strict;
> use CGI qw/:standard center *big delete_all/;
>
> use ScheduleDay;
> use Train;
>
> pack
Rob,
> Your response dovetails nicely with my next question. The module I'm
> working in begins as follows:
>
> use warnings;
> use strict;
> use CGI qw/:standard center strong *big delete_all/;
Because the code you have included does not specifically say so I have to
guess that:
package NotShow
20 matches
Mail list logo