Re: email attachment

2001-06-18 Thread Curtis Poe
--- Teresa Raymond <[EMAIL PROTECTED]> wrote: > I am receiving the error: # Global symbol "in" requires explicit package name. > File 'Hard Disk:Desktop Folder:DOCS:CWN:ADS UPLOAD:ademail.cgi'; Line 14 ... > I don't understand how I am supposed to correct this error, I tried > declaring with main

Re: Example of OOP cgi ?

2001-06-18 Thread Timothy Kimball
Brett W. McCoy wrote: : On Sat, 16 Jun 2001, Steve Howard wrote: : : > Can someone point me to an example of a completely Object Oriented CGI : > script. The Perldoc examples are procedural, but there must be a good OOP : > example somewhere for me to tear apart and learn that technique from. :

Re: email attachment

2001-06-18 Thread fliptop
Teresa Raymond wrote: > > The only problem with using that bit of code is that the files that > are being sent as attachments could be as large as 3MB since they're > graphics - photoshop,quark, etc... I'm not sure it can handle the > code, anyone else know? > > Plus, I'm just learning to use s

Re: Example of OOP cgi ?

2001-06-18 Thread Brett W. McCoy
On Mon, 18 Jun 2001, Timothy Kimball wrote: > An interesting twist on the display is to use templates, e.g. the > Template Toolkit or HTML::Template. Then not only is the display > separated from the logic, but the views can then be maintained by a > non-programmer. Yeah, that's a neat way to do

DBI

2001-06-18 Thread Kris Cook
I'd like to try using the DBI interface for database access, but when I downloaded it from ActiveState, I fount that I had to have a make utility to get it installed. Does anyone know of a free make distribution for Win32 environments? It HAS to come in a compiled version, because right now I d

Re: DBI

2001-06-18 Thread Brett W. McCoy
On Mon, 18 Jun 2001, Kris Cook wrote: > I'd like to try using the DBI interface for database access, but when I > downloaded it from ActiveState, I fount that I had to have a make utility to > get it installed. Does anyone know of a free make distribution for Win32 > environments? It HAS to com

Re: Example of OOP cgi ?

2001-06-18 Thread Vinicius Jose Latorre
Timothy Kimball <[EMAIL PROTECTED]> wrote: > Brett W. McCoy wrote: > : On Sat, 16 Jun 2001, Steve Howard wrote: > : > : > Can someone point me to an example of a completely Object Oriented CGI > : > script. The Perldoc examples are procedural, but there must be a good OOP > : > example somewher

Re: DBI

2001-06-18 Thread Tim Keefer
open a command prompt and type "ppm install DBD-ODBC" and "ppm install DBI" At 09:43 AM 6/18/2001 -0500, Kris Cook wrote: >I'd like to try using the DBI interface for database access, but when I >downloaded it from ActiveState, I fount that I had to have a make utility to >get it installed. Do

RE: DBI

2001-06-18 Thread Kris Cook
Actually, I've used make for all sorts of stuff without a C compiler. It's amazing what you can automate. Actually, I've even used it as the backbone for a QnD (Quick'n'Dirty) system security monitoring package before. I've also used it for automated publication of web pages based on changes to

Re: Example of OOP cgi ?

2001-06-18 Thread Brett W. McCoy
On Mon, 18 Jun 2001, Vinicius Jose Latorre wrote: > > An interesting twist on the display is to use templates, e.g. the > > Template Toolkit or HTML::Template. Then not only is the display > > separated from the logic, but the views can then be maintained by a > > non-programmer. > > > Another ex

RE: DBI

2001-06-18 Thread Kris Cook
I've tried to follow your suggestion, and I get the following error message: C:\perl\lib>ppm install DBD Installing package 'DBD'... Error installing package 'DBD': Could not locate a PPD file for package DBD > -Original Message- > From: Tim Keefer [mailto:[EMAIL PROTECTED]] > Sent: Mond

Re: DBI

2001-06-18 Thread Lara J. Fabans
You need to specify which package you want. Such as DBD:Pg for PostgreSQL DBD:MySQL for MySQL I think there's a way to use the i/DBD/ command in cpan in order to see all available drivers. I'm sorry I can't be more specific as it's been a while. - Original Message - From: "Kris Cook" <

RE: DBI

2001-06-18 Thread Brett W. McCoy
On Mon, 18 Jun 2001, Kris Cook wrote: > Actually, I've used make for all sorts of stuff without a C compiler. It's > amazing what you can automate. Actually, I've even used it as the backbone > for a QnD (Quick'n'Dirty) system security monitoring package before. I've > also used it for automat

database

2001-06-18 Thread Kris Cook
I'm curious. Why, when the ODBC functionality is distributed with ActiveState's Perl, do all examples I see in this group use DBI? The application I'm working on uses an Access database, and I can't find Access drivers for DBD, so DBI is useless to me, along with every example using it. I'd LOVE

Re: database

2001-06-18 Thread Brett W. McCoy
On Mon, 18 Jun 2001, Kris Cook wrote: > I'm curious. Why, when the ODBC functionality is distributed with > ActiveState's Perl, do all examples I see in this group use DBI? The > application I'm working on uses an Access database, and I can't find Access > drivers for DBD, so DBI is useless to

MS Access DB

2001-06-18 Thread Kris G Findlay
i was wondering is it possible to use a MS Access Db on a linux server eg my host webfusion !? and if yes what modules would i need ?? cheers in advance !! [---] Kris G Findlay [EMAIL PROTECTED] [---]

Re: MS Access DB

2001-06-18 Thread Michael D . Risser
On Monday 18 June 2001 09:22 am, you wrote: > i was wondering is it possible to use a MS Access Db on a linux server eg > my host webfusion !? > and if yes what modules would i need ?? > > cheers in advance !! > [---] > Kris G Findlay > [EMAIL PROTECTED] > [-

testing for max size of file

2001-06-18 Thread Teresa Raymond
This does not work, there is no error msg, it just doesn't get paid attention to. if ($cgi->param('$filesize')>=$CGI::POST_MAX) { print "Your file is too large to send"; } *** Teresa Raymond *** http://www.mariposanet.com *** [EMAIL PROTECTED]

formatting and writing to file

2001-06-18 Thread Teresa Raymond
I would like to format this so that the parameters and values are listed on their own lines. foreach my $name ( $cgi->param ) {print "$name\t" . $cgi->param( $name ) . "\n"; } This part of the script is not executing. my $file = $cgi->upload( "ad" ) or error( $cgi->p( "No file uploaded." )

Re: testing for max size of file

2001-06-18 Thread Timothy Kimball
Teresa Raymond wrote: : This does not work, there is no error msg, it just doesn't get paid : attention to. : : if ($cgi->param('$filesize')>=$CGI::POST_MAX) : { print "Your file is too large to send"; : } Get rid of the $ in front of filesize. Should just be if ( $cgi->param('filesize')>=$

Re: testing for max size of file

2001-06-18 Thread Teresa Raymond
How do I access the file size without making filesize a parameter input by the user? >Teresa Raymond wrote: >: This does not work, there is no error msg, it just doesn't get paid >: attention to. >: >: if ($cgi->param('$filesize')>=$CGI::POST_MAX) >: { print "Your file is too large to send"; >

Crypt-SSLeay-0.22

2001-06-18 Thread Jim J Wigginton
I'm trying to compile Crypt-SSLeay-0.22, and I get the following error, midway through the process: crypt_ssleay_version.h:1:17: ssl.h: No such file or directory. crypt_ssleay_version.h:2:20: crypto.h: No such file or directory. How can I fix this? Well, thanks in advance!

parsing character by character and printing

2001-06-18 Thread Brian Jackson
I am completely new to Perl. I am trying to figure out how I can parse a row, character by character, that I have retrieved from a database. I would like to format output based on characters from the row. For example I may have retrieved 250 character string from a database and I want to print

Re: testing for max size of file

2001-06-18 Thread Timothy Kimball
Teresa Raymond wrote: : How do I access the file size without making filesize a parameter : input by the user? This should be in the $ENV{CONTENT_LENGTH} variable. -- tdk

Re: Crypt-SSLeay-0.22

2001-06-18 Thread Timothy Kimball
Jim J Wigginton wrote: : I'm trying to compile Crypt-SSLeay-0.22, and I get the following error, : midway through the process: : crypt_ssleay_version.h:1:17: ssl.h: No such file or directory. : crypt_ssleay_version.h:2:20: crypto.h: No such file or directory. Looks like either you don't have one

RE: MS Access DB

2001-06-18 Thread Kris G Findlay
ok thats what i though !! would it be possible to convert the ms access db to somthing else ? thing is i have a friend .. who is using access db. he wants the info stored in it to be acess on-line to form part of customer services eg product details and rpair ststus .. etc ... as i said all the

MIME::Lite

2001-06-18 Thread Teresa Raymond
OK, I'm not going to write my own script for attaching an email. I'm going to try to modify the script from Randal's Web Techniques. I need to point to the location of MIME::Lite. I'm having difficulty with syntax with CGI.pm and strict. all of the below gives a server 500 error. #ORIGINA

Re: Crypt-SSLeay-0.22

2001-06-18 Thread Brett W. McCoy
On Mon, 18 Jun 2001, Jim J Wigginton wrote: > I'm trying to compile Crypt-SSLeay-0.22, and I get the following error, > midway through the process: > crypt_ssleay_version.h:1:17: ssl.h: No such file or directory. > crypt_ssleay_version.h:2:20: crypto.h: No such file or directory. > How can I fix

RE: MS Access DB

2001-06-18 Thread Brett W. McCoy
On Mon, 18 Jun 2001, Kris G Findlay wrote: > ok thats what i though !! > > would it be possible to convert the ms access db to somthing else ? > > thing is i have a friend .. who is using access db. he wants the info stored > in it to be acess on-line > to form part of customer services eg produc

Re: MIME::Lite

2001-06-18 Thread Timothy Kimball
Teresa Raymond write: : OK, I'm not going to write my own script for attaching an email. I'm : going to try to modify the script from Randal's Web Techniques. I : need to point to the location of MIME::Lite. I'm having difficulty : with syntax with CGI.pm and strict. all of the below gives

Re: testing for max size of file

2001-06-18 Thread Curtis Poe
--- Timothy Kimball <[EMAIL PROTECTED]> wrote: > > Teresa Raymond wrote: > : How do I access the file size without making filesize a parameter > : input by the user? > > This should be in the $ENV{CONTENT_LENGTH} variable. > > -- tdk That will only give the approximate filesize. $ENV{CONTENT

Re: testing for max size of file

2001-06-18 Thread Timothy Kimball
Curtis Poe wrote: : That will only give the approximate filesize. $ENV{CONTENT_LENGTH} is the total :size of the : entity body. With 'multipart/form-data' (the enctype used with file uploading), the :entity bodies : size is even larger than normal. The more data sent (besides the file), the

Your Guidence Please

2001-06-18 Thread Ginntonnik
I am Interested In creating a Mirc Bot that Pulls Information From a Database Via Triggers, If someone has seen this Done, Or Knows of some Open examples, Could you please forward some examples to me. Thank you

Re: database

2001-06-18 Thread Mark Bergeron
Have you not tried DBD-ODBC? -Original Message- From: "Kris Cook"<[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Date: Mon Jun 18 08:30:16 PDT 2001 Subject: database >I'm curious. Why, when the ODBC functionality is distributed with >ActiveState's Perl, do all examples I see in this group use

Re: database

2001-06-18 Thread Mel Matsuoka
At 10:30 AM 06/18/2001 -0500, Kris Cook wrote: >I'm curious. Why, when the ODBC functionality is distributed with >ActiveState's Perl, do all examples I see in this group use DBI? The >application I'm working on uses an Access database, and I can't find Access >drivers for DBD, so DBI is useless

RE: database

2001-06-18 Thread Kris Cook
Well, interestingly, DBD-ODBC works fine here at the office, and on my Win2K platform at home. However, it doesn't like (or isn't liked by) my Windows ME machine at home, resulting in an illegal instruction in PWS (Pretty Weak Software) every time. Of course, I hate Windows ME anyway, so to h***

RE: Your Guidence Please

2001-06-18 Thread Kris G Findlay
hey Ginn !! fancy seeing you here !! check out this perl ircbot at http://www.infobot.org/ [---] Kris G Findlay [EMAIL PROTECTED] [---] ( Ghost-Hunter ) -Original Message- From: Ginntonnik [mailto:[EMAIL PROTECTED]] Sent: 18 Ju

RE: DBI

2001-06-18 Thread Steve Howard
you should not need a c compiler for make. On windows, however, it is either nmake or dmake (I've heard of dmake, but never used it. it has always been nmake for me) You should use PPM, but if you need a module that needs a make on windows you can just substitute nmake for the word make in the ins

RE: How to generate a table ?

2001-06-18 Thread Moon, John
Glenn & Curtis; Thanks for the suggestions ... but more thanks to both you and Curtis for helping me to start "thinking out of my box"... and this is why I'm replying ... I have used both of your suggestions - the hash below and cgi html shortcuts ... I just needed to stop and invest a little ti

beginner's addressbook tutorial - step 6 - writing utility and SQL classes, and using Class::MethodMaker

2001-06-18 Thread fliptop
step 6 is complete, and is available at: http://www.peacecomputers.com/addressbook_toot-step6.html coming next - step 7 - A summary of what we've done so far note: there was an error in the html::template file provided in step 5, i've corrected it (i left out elements for the prefix and city)

Lesson Four of online CGI course

2001-06-18 Thread Curtis Poe
For the curious: I have recently finished Lesson 4, part 1 (http://www.easystreet.com/~ovid/cgi_course/lesson_four/lesson_four_1.html) of my online CGI course (http://www.easystreet.com/~ovid/cgi_course/index.html). There have been a few corrections to the rest of the course and improved site

queryString and CGI.

2001-06-18 Thread Vontel Girish
I have just started to create a sample online store with Unix OS, Apache web server, CGI with perl and MySQL database. The perl program given below splits the querystring into Name value pairs. --- #!/usr/local/bin/perl if($ENV{'REQUEST_METHOD'}eq 'GE

RE: MS Access DB

2001-06-18 Thread Grierson, Garry (UK07)
You can export your (friend's) Access tables to comma delimited/separated files and use the DBD::CSV module to use it. > -- > From: Kris G Findlay[SMTP:[EMAIL PROTECTED]] > Sent: Monday, June 18, 2001 6:55 PM > To: Beginners-Cgi > Subject: RE: MS Access DB > > ok t

converting MS access DB to mysql

2001-06-18 Thread Kris G Findlay
i have an Ms Access DB and need to use it on a linux web server !! does anyone know how i can go about converting it to Mysql or suchlike ?? as it is quite large. !! thanx [--] Kris G Findlay [EMAIL PROTECTED] [--]

Re: Hi, my first question is about binary data

2001-06-18 Thread Tirthankar C.P
> Hey folks, > > Please don't scold me if I am asking a very stupid > question. =) > > I am now handling some sort of text files, > however, they are eating me a lot of harddisk. > > I tried to using PACK, however, I found that I cannot > unpack it if I pack the file with "B" or "H"... > >