If you supply the code for the programs we may be able to take a look and
help...
as it is the snipit you supplied works ...
-Original Message-
From: roops roopa [mailto:[EMAIL PROTECTED]]
Sent: July 11, 2001 00:28
To: [EMAIL PROTECTED]
Subject: cgi scripting
hi all,
I am new to progra
Any and all help is appreciated. Thank you in advance.
OK, I am a relative novice to Programming, Perl, CGI, CGI.pm and
MIME::Lite. As suggested by others on this list I'm using MIME::Lite.
I've written the below code with part of a MIME::Lite example copied.
I've put the whole code here beca
hi all,
I am new to programming. I am learning CGI scripts in
PERL.
i have a iplanet server configered for cgi
I have a simple html form with a sign-in button. On
clicking this i would like to invoke a small .cgi
program having these lines
#!c:\perl\bin\perl.exe
print "Content-type: text/
>I was hoping someone could point me in the right direction. I have a script
>that will run for long periods of time (checking a url every once in a while
>to make sure it is up) on a Windows98 machine. The script works fine, but it
>runs in a dos window. Is there a way in which I could invoke the
Hi all,
I was hoping someone could point me in the right direction. I have a script
that will run for long periods of time (checking a url every once in a while
to make sure it is up) on a Windows98 machine. The script works fine, but it
runs in a dos window. Is there a way in which I could invok
Well, I'm still working on an email attachment prog through the
browser. The programs work, uploading and sending the email but the
graphic files cannot be viewed when received. The error msg reads
that the file type is unknown. During the upload process the graphic
file gif/jpeg can be vie
On 10/07/2001 at 9:01 PM Brett W. McCoy wrote:
>For which you can still use CGI.pm, but use a templating technique for
>your display. I've written web apps where I use CGI.pm to only do form
...again, my point. You've just brought this back full circle to the beginning.
The path of this thre
On Tue, 10 Jul 2001, Jason Waugh wrote:
> >CGI.pm isn't the only solution to creating dynamic web pages with Perl.
> >Text::Template is another alternative, as are embedded Perl
> >implementations like Apache::ASP, Mason, or even PerlScript (for IIS).
>
> my point. I still need to be able t
>CGI.pm isn't the only solution to creating dynamic web pages with Perl.
>Text::Template is another alternative, as are embedded Perl
>implementations like Apache::ASP, Mason, or even PerlScript (for IIS).
my point. I still need to be able to access form data passed through and have an
ea
>CGI.pm isn't the only solution to creating dynamic web pages with Perl.
>Text::Template is another alternative, as are embedded Perl
>implementations like Apache::ASP, Mason, or even PerlScript (for IIS).
None of which is crossplatform (Windows / Mac / Linux)
or installable by a user with normal
On Tue, 10 Jul 2001, Jason Waugh wrote:
> I feel exactly as you do about separating design from code, however.
> I know a lot of fantastic HTML designers haven't even a clue what a
> print statement is, and can't expect them to spruce up a form or even
> overhaul the look of an entire application
>My problem with CGI.pm is that, get this, it's too complicated. I've tried
>to use it, but, quite simply, all I would ever want out of a CGI routine
>is
>to give me back the data in either a hash or object reference. The
...
>But hey, that's just me.
Not just you... I have no need of any other
> >Please note that CGI.pm is a special case.
My problem with CGI.pm is that, get this, it's too complicated. I've tried
to use it, but, quite simply, all I would ever want out of a CGI routine is
to give me back the data in either a hash or object reference. The
difference between:
$val
At 03:58 PM 07/10/2001 -0700, Randal L. Schwartz wrote:
>Please note that CGI.pm is a special case.
>
>Too many books show bad handrolled code.
>
>Too many downloads have bad handrolled code.
This I couldn't agree with more. It is definitely apropos (and an
obligation) to compel someone to use C
At 09:22 AM 07/10/2001 -0600, Ken Scott wrote:
>
>But a wheel is just a wheel. Why not use the one that exists, and leave
>your mental energy and talent available to solve your real problem at
>hand?
I often ponder this subject, especially after reading c.l.p.m.
Without question, perl (or genera
On Tue, Jul 10, 2001 at 12:44:09PM -0700, Thomas Jakub wrote:
: okay... so how do I drop of all but two decimal
: points in perl?
Give sprintf() a try:
my $float = 4.3456;
[... some code ...]
$float = sprintf "%.2f", $float;
s?printf() will do it's best to round for you too, allthough th
At 05:51 AM 07/10/2001 +0200, Evgeny Goldin (aka Genie) wrote:
>
> Hello,
>
> My goal is following : after user accesses http://host/script.pl ( either
> by direct link or by submitting the filled form ) I'd like to open a
> "Save as" dialog - to let him download a binary ( compressed ) file.
>
>
On Tue, 10 Jul 2001, Aaron Craig wrote:
> At 12:21 09.07.2001 -0400, fliptop wrote:
>
> >why reinvent the wheel?
>
> I like my wheel better? :)
But a wheel is just a wheel. Why not use the one that exists, and leave
your mental energy and talent available to solve your real problem at
hand?
J
Jason Purdy wrote:
>
> I KNOW if I had access to the error_log, this issue woulda been resolved a
> lot sooner (well, along with other variables, too ... if I were a keener
> debugger, better code-inheriter (*grin*), etc). But I now know if I get an
> ISE and I have the Carp & $|++ in there, I'm
At 04:11 PM 07/10/2001 -0400, Moon, John wrote:
>One way to do it ...
>
> perl -e '$x=1234.5678; ($y)=$x=~/(\d*\.{0,1}\d{0,2})/;print $y ."\n";'
heh...that was pretty close to perl bowling ;-)
Don't do wierd contrortions with regexps when theres a simple built-in
function to pull off the same r
One way to do it ...
perl -e '$x=1234.5678; ($y)=$x=~/(\d*\.{0,1}\d{0,2})/;print $y ."\n";'
-Original Message-
From: Thomas Jakub [mailto:[EMAIL PROTECTED]]
Sent: July 10, 2001 15:44
To: [EMAIL PROTECTED]
Subject: dropping off a few decimal points
okay... so how do I drop of all but
okay... so how do I drop of all but two decimal
points in perl?
__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/
Mine too. See if you have an unclosed table tag or even a missing or
tag
-Original Message-
From: Bradley M. Handy [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 10, 2001 12:53 PM
To: Mark Bergeron; Samuel Brown; [EMAIL PROTECTED]
Subject: RE: Script written HTML won
It can happen. G
The first eMail I got with the correct answer was
Jason Purdy's. I had the slashes in the closing HTML
tags backwards. Thanks guys. It's always the little
bugs that are hard to spot.
And for all the people with the ingenious, obscure
problems that I could have had, thanks to you too...
but
Oh, no doubt. Sometimes it's something as minor as one unclosed tag. Netscape has been
notorious for that.
-Original Message-
From: "Bradley M. Handy"<[EMAIL PROTECTED]>
To: "Mark Bergeron"<[EMAIL PROTECTED]>, "Samuel Brown"<[EMAIL PROTECTED]>,
[EMAIL PROTECTED]
Date: Tue Jul 10 10:53:2
Thanks to everyone for their help ... I tracked down the error with your
help ... it was a call to connect to a database, which I did re-work, but
didn't include ValueWeb's mySQL server. Guess it wasn't localhost ... D'oh!
I KNOW if I had access to the error_log, this issue woulda been resolved
I generally put my cgi-bin directory in the same level as my root www
directory.
For example:
root www -> /usr/local/www/htdocs
cgi-bin -> /usr/local/www/cgi-bin
Then you need to add a ScriptAlias Directive (if you're using Apache) into
your httpd.conf file
ScriptAlias
Yes of course. My question is where in the linux box;
\usr\cgi-bin
\root\cgi-bin
\cgi-bin
that's what I meant to say...
Thanks
Frank
-Original Message-
From: Aaron Craig [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 10, 2001 12:10 PM
To: [EMAIL PROTECTED]
Subject: Re: cgi-bin directo
> #1 - tried that and still getting the ISE, so it must be a compiler error
> ... I didn't know all of those tips - that will help me with this problem
> (and w/ future ones, too) - now if I could just find out what the
> compiler
> problem is ... the syntax checks out ... I can't telnet & execut
Well, the slashes (\\) are the wrong way ... try this:
print "\n\nTest
Script\n\n\nTest.\n\n";
Netscape is more strict than IE w/ HTML, so if you were using Netscape, this
could be your problem.
Jason
- Original Message -
From: "Samuel Brown" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Here's the script who's output I've described as not
being displayed in the browser window, even tho 'View
Source' shows it as correctly transmitted.
print "Content-Type: text/html\n\n";# HTML header,
normally supplied automatically
# by the server f
It can happen. Generally the reason is an unclosed literal string somewhere
in the HTML source. At least that's been my experience with that problem.
Brad Handy
--www.jack-of-all-trades.net
[EMAIL PROTECTED]
> -Original Message-
> From: Mark Bergeron [mailto:[EMAIL PROTECTED]]
> Sent
Well that answers my question. I was going to ask if the ^M chars were
still in the file or not. I use a simple text editor called 'Super Notetab'
I has the option to save in either 'Windows' or 'Unix' formats. That's why
I like it. No external tools to strip those annoying Microsoft
incantati
I'm using ActiveState Komodo & sometime's Lemmy (VI) ... if I know where
you're going, I also used a tool that ValueWeb provides to strip out ^M
characters.
Jason
- Original Message -
From: "Bradley M. Handy" <[EMAIL PROTECTED]>
To: "Jason Purdy" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>;
Let me get this straight. You can see the source but not the HTML output in the
browser?
Mark Bergeron
-Original Message-
From: "Samuel Brown"<[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Date: Tue Jul 10 10:20:57 PDT 2001
Subject: Script written HTML won't display
>
> Here's a wierd prob
This may sound silly, but what text editor are you using on your Windows
machine to edit the script file?
Brad Handy
--www.jack-of-all-trades.net
[EMAIL PROTECTED]
> -Original Message-
> From: Jason Purdy [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 10, 2001 1:33 PM
> To: [EMAIL PR
Got 2 & 3 covered - rwxr-xr-x and /usr/local/bin/perl'd the scripts (that's
one annoying thing I have to update whenever I upload code from my Win32
machine to their Linux box).
#1 - tried that and still getting the ISE, so it must be a compiler error
... I didn't know all of those tips - that wi
Can you send a copy of the HTML source to the list?
Brad Handy
> -Original Message-
> From: Samuel Brown [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 10, 2001 1:21 PM
> To: [EMAIL PROTECTED]
> Subject: Script written HTML won't display
>
>
>
> Here's a wierd problem for the gur
Here's a wierd problem for the gurus:
I've just set up a fresh install of Active State
Perl on this Win2k box, and have written a quick test
script for the web server. The script runs correctly
from the command prompt, without reporting errors.
The script runs for a web browser without rep
--- Jason Purdy <[EMAIL PROTECTED]> wrote:
> I'm working on a web site that's hosted by ValueWeb (not important, but they give
>you CGI access
> but they don't give you access to the error log). So I feel like I'm flying
>(coding) blind
> sometimes. Especially when I get the Internal Server Er
I'm working on a web site that's hosted by ValueWeb (not important, but they give you
CGI access but they don't give you access to the error log). So I feel like I'm
flying (coding) blind sometimes. Especially when I get the Internal Server Error.
The scripts in question are inherited code a
http://learn.perl.org/
Right hand side. Enter your e-mail address ([EMAIL PROTECTED]) and check off
unsubscribe.. and f o l l o w the directions.
> i've tried 12 times or more to get out of this list
> So... what should i do now
>
> -Ursprüngliche Nachricht-
> Von: [EM
At 11:10 10.07.2001 -0400, Frank J. Schmuck wrote:
>I have a home network set-up to test cgi scripts. I have a Win2k box hooked
>up to a linux box. The intent is to write on the Win2k box and test on the
>Linuxbox. My question is where should the cgi-bin directory reside?
>
>My intent is to ope
I have a home network set-up to test cgi scripts. I have a Win2k box hooked
up to a linux box. The intent is to write on the Win2k box and test on the
Linuxbox. My question is where should the cgi-bin directory reside?
My intent is to open a browser from the Win2k box and look at
http://192.16
Hi - and thanks - for everyone,
It works at last, but without using upload():
#!/usr/bin/perl
use CGI;
$q = new CGI;
print $q->header,
$q->start_html('title here'),
$q->h1('Please fill this form'),
$q->start_multipart_form,
$q->filefield(-name=>'uploaded_file',
> Can
> you do that for
> : the other functions as well?
>
> Yep, sure can.
now THATS information I can use!
Al Hospers
CamberSoft, Inc.
alcambersoftcom
http://www.cambersoft.com
A famous linguist once said:
"There is no language wherein a double
positive can form a negative."
YEAH, RIGHT
I dont think you understand. You subscribed to it. Either that, or somebody
had access to your account with rights to reply to the confirmation message.
Thats your own fault.
People like this remind me of people who drive without using signal lights.
They have this "higher than you, you se
I've never seen a MOVE command, but I wouldn't put it past someone like
Micro$oft or Oracle to put in a proprietary SQL command that would allow you
to do that. Just a word of warning: if you do find a MOVE command (or any
such proprietary command), you're binding yourself to that particular SQL
Oh Yea! This guy is going places.
-Original Message-
From: "Fco. Javier Valladolid Hdez."<[EMAIL PROTECTED]>
To: "Perl CGI"<[EMAIL PROTECTED]>
Date: Mon Jul 09 19:19:06 PDT 2001
Subject: Re: FUCK THE FUCKUNG MAILBOT! I WANT OUT OF THIS FUCKING LIST
>unsubscribe,
unsubscribe, no more insults please, this is a great mail list
=
Francisco Valladolid
V Microsistemas
Taking the Initiative!
[EMAIL PROTECTED]
- Original Message -
From: Hendrik Bämpfer <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 10,
On Tue, Jul 10, 2001 at 03:44:32PM +0200, Aaron Craig wrote:
: At 08:42 10.07.2001 -0400, Casey West wrote:
:
: >I would suggest that the most efficient approach might be to import
: >just one symbol from CGI.pm, explicitly. Now, Aaron, I'm not saying
: >you are wrong, however, I do suggest that
My guess would be permissions and how you have your mysql server setup.
When you're running the script on the terminal, it's using your ID to
connect to the database server. When the webserver's running the script,
it's using the server process' ID.
I'm not sure if that's the right answer, thoug
On Tue, Jul 10, 2001 at 10:08:03AM -0400, Kipp, James wrote:
: unsuscribe IDIOT
I consider you both grossly out of line on this list!
: > -Original Message-
: > From: Hendrik Bämpfer [mailto:[EMAIL PROTECTED]]
: > Sent: Tuesday, July 10, 2001 10:09 AM
: > To: '[EMAIL PROTECTED]'
: >
unsuscribe IDIOT
> -Original Message-
> From: Hendrik Bämpfer [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 10, 2001 10:09 AM
> To: '[EMAIL PROTECTED]'
> Subject: FUCK THE FUCKUNG MAILBOT! I WANT OUT OF THIS FUCKING
> LIST
>
>
>
>
> ***
**
SOLDES GmbH
Hendrik Bämpfer
Bernd-Rosemeyer-Strasse 7
30880 Laatzen
Fon: (05102) 9311-30
Fax: (05102) 9311-39
mailto:[EMAIL PROTECTED]
**
Randal,
I am new to Perl. I had no idea that Perl had documentation *right* *there*.
Thanks to the kind folks that have emailed me back, I now know this. In reading
your reply, it appears that I have ticked you off. I am sorry.
"Randal L. Schwartz" wrote:
> > "Brian" == Brian Jackson <[
At 08:42 10.07.2001 -0400, Casey West wrote:
>I would suggest that the most efficient approach might be to import
>just one symbol from CGI.pm, explicitly. Now, Aaron, I'm not saying
>you are wrong, however, I do suggest that we encorage standards for
>beginners.
>
>In light of the above, ensuri
On Tue, Jul 10, 2001 at 12:34:12PM +0200, Aaron Craig wrote:
: You are correct that loading CGI.pm is going to make very little difference
: in the overall time it takes to run your project. But, I find it good
: programming practice to be as efficient as possible -- even if the
: difference i
Well, it depends on your criteria.
If your criteria is execution time, yes, your procedure will execute faster
than loading CGI.pm (perhaps some microseconds or nanoseconds).
If your criteria is development time, no, it's faster to reuse CGI.pm:
+ it's working: you'll take time to test your
Hytham Shehab wrote:
>
> hi gurus,
> first of all, am really gracefull about all who sends me tips of how to
> make this thing work, but, unfortunately, it doesn't yet.
did you make sure your tag had the enctype in it? ie.-
because if it's missing that, the perl side won't work no matt
http://learn.perl.org/
Go there and unsubscribe dude,
your on the beginners-cgi mailing list...
- Original Message -
From: "Tami Flowers" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 10, 2001 1:59 PM
Subject: hello
stop forwarding all the mail from other people I d
stop forwarding all the mail from other people I don't want the s***. so stop sending
it and no i am not going to send anther message with nothing on it i have done that
about 5 times so just take my name off.
At 09:41 09.07.2001 -0700, Curtis Poe wrote:
>Gah!!! I wish I had seen this thread sooner (I've been out with the flu).
>
>Whoever wrote their own alternative to CGI.pm, post your code and I'll
>point out plenty of flaws
>in it. I'm sure I'll find at least 5 (one of these days I'll find fewer
RL Autry <[EMAIL PROTECTED]> said something to this effect on 07/10/2001:
> Can anyone tell us where to find a list of all of the extensions used in
> cgi programming.
> Such as in this address:cgi-bin/rightnow.cfg/php/
> what would type of Perl file would*.cfg be?
Unfortunately, what
Apache::ASP
- Original Message -
From: "Gary Stainburn" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 10, 2001 10:40 AM
Subject: Session Handling like PHP
> Hi all,
>
> I've just seen a presentation at my local LUG showing how a non-programmer
> can develop a shopping
here is a quick example, i would recomend CGI.pm as it solves a lot of
prebles for you, or if you wanna lower memory usage, then open up cgi.pm and
take out the cod eyou need to do what you want and make your own OOP.
use CGI qw(:cgi); # Import the CGI package
my $basedir = "/tmp";
my $on
At 12:21 09.07.2001 -0400, fliptop wrote:
>why reinvent the wheel?
I like my wheel better? :)
Aaron Craig
Programming
iSoftitler.com
At 00:59 10.07.2001 -0400, Jason Purdy wrote:
>Check out the CGI documentation - it's very thorough and has a lot of
>excellent examples.
I can't recommend CGI.pm highly enough for file upload. I tried to grow my
own as a learning experience, and gave up in frustration -- too many
differences
Thanks a lot.
Great help. I'll try it out.
marcus
69 matches
Mail list logo