Re: problems with 'require'

2009-11-30 Thread Matt Whipple
Paweł Prędki wrote: > > I changed all the permissions and what I get now is that everything > works fine but whenever I make changes to the .pm file I need to > restart the server that is running locally for the changes to be seen > in my main script... This is not the case on the live target serve

Re: problems with 'require'

2009-11-30 Thread Matt Whipple
#x27;d suggest reading the perlmod perldoc section a bit more, or cut out packaging all together if you're not taking advantage of it and treat the code as one big scary scope. > &mydbtest::get_platform; # (2) > print $mydbtest::platform; # (3) > > > (1) works without any

Re: problems with 'require'

2009-11-29 Thread Mike Williams
On Sun, Nov 29, 2009 at 1:02 PM, Paweł Prędki < pawel.pre...@detroitredwings.pl> wrote: > > > I changed all the permissions and what I get now is that everything works > fine but whenever I make changes to the .pm file I need to restart the > server that is running locally for the changes to be se

Re: problems with 'require'

2009-11-29 Thread Paweł Prędki
n that, thanks. &mydbtest::get_platform; # (2) print $mydbtest::platform; # (3) (1) works without any problems. I get the proper output in my browser window. Dumb luck... use strict; use warnings; ? Got both in the file now. (2) doesn't work at all. I get an error as follows:

problems with 'require'

2009-11-28 Thread Paweł Prędki
'hey hey'); # (1) &mydbtest::get_platform; # (2) print $mydbtest::platform; # (3) (1) works without any problems. I get the proper output in my browser window. (2) doesn't work at all. I get an error as follows: Undefined subroutine &mydbtest::get_platfo

Re: Intermittent problems accessing MySQL data

2008-01-23 Thread Aruna Goke
Chris W wrote: I have inherited a site written in perl. Recently an intermittent problem has come up and when users log into the site, they end up seeing other users data. I personally can not reproduce the problem but it has happened enough that I am sure it is more than just a fluke. Does an

Re: Intermittent problems accessing MySQL data

2008-01-23 Thread Aruna Goke
Chris W wrote: I have inherited a site written in perl. Recently an intermittent problem has come up and when users log into the site, they end up seeing other users data. I personally can not reproduce the problem but it has happened enough that I am sure it is more than just a fluke. Does an

Re: Intermittent problems accessing MySQL data

2008-01-23 Thread Sean Davis
On Jan 22, 2008 11:11 PM, Chris W <[EMAIL PROTECTED]> wrote: > I have inherited a site written in perl. Recently an intermittent > problem has come up and when users log into the site, they end up seeing > other users data. I personally can not reproduce the problem but it has > happened enough

Intermittent problems accessing MySQL data

2008-01-23 Thread Chris Woodhouse
I have inherited a site written in perl. Recently an intermittent problem has come up and when users log into the site, they end up seeing other users data. I personally can not reproduce the problem but it has happened enough that I am sure it is more than just a fluke. Does anyone know of

Intermittent problems accessing MySQL data

2008-01-22 Thread Chris W
I have inherited a site written in perl. Recently an intermittent problem has come up and when users log into the site, they end up seeing other users data. I personally can not reproduce the problem but it has happened enough that I am sure it is more than just a fluke. Does anyone know of any

Re: List Problems?

2007-06-15 Thread Bill Stephenson
I apologize to all on the list. One of the domain names I use (PerlHelp.com) expired when a colleague forgot to renew it (bless his heart) and it took me well over a week to notice (ouch... that's my fault). Anyway, I'm sure I have missed some email. If you sent anything to me after June 2, I

Re: List Problems?

2007-06-14 Thread Sean Davis
Bill Stephenson wrote: > I've sent one message to this list and one message to > [EMAIL PROTECTED] > > The message to the list was not posted and the message to "Help" was not > responded to. > > Any reason why? The list address that you want to use is [EMAIL PROTECTED] The email [EMAIL PROTECT

List Problems?

2007-06-14 Thread Bill Stephenson
I've sent one message to this list and one message to [EMAIL PROTECTED] The message to the list was not posted and the message to "Help" was not responded to. Any reason why? I've been subscribed for quite awhile now and still receive messages from the list so I don't understand why I'm hav

Re: pattern matching problems

2006-07-08 Thread Mike Williams
Dr. Claus-Peter Becke wrote: > foreach (/(\w+)/i) { > push @words,$&; > } > print$q->popup_menu('to_thesaurus', @words); > > this solution succeeds in finding and returning the last element... There are a few problems here: 1. regex should use the /g

pattern matching problems

2006-07-07 Thread Dr. Claus-Peter Becke
dear members, i'm new in the community. i have some problems processing the query-string exchanged between client and server. i would like to parse the query-string the following way: the query-string contains a sentence, for example: the cat lies on the map. i have deleted the br

Re: Problems with HTML::Template

2006-06-20 Thread Prabu
sfantar wrote: Hi there, I am starting using HTML::Template modules and I wrote a script with the first example within the doc. I am not able to see the results of my CGI from my browser. It displayed error 500 Internal Server Error. I gave the correct rights to my script to make it executab

Re: Problems with HTML::Template

2006-06-20 Thread sfantar
Prabu a écrit : sfantar wrote: Hi there, I am starting using HTML::Template modules and I wrote a script with the first example within the doc. I am not able to see the results of my CGI from my browser. It displayed error 500 Internal Server Error. I gave the correct rights to my script to

Re: Problems with HTML::Template

2006-06-20 Thread sfantar
Prabu a écrit : sfantar wrote: Hi there, I am starting using HTML::Template modules and I wrote a script with the first example within the doc. I am not able to see the results of my CGI from my browser. It displayed error 500 Internal Server Error. I gave the correct rights to my script to

RE: Problems with HTML::Template

2006-06-20 Thread Charles K. Clarkson
sfantar wrote: : In the apache's error log, here is what's written : : : : [error] HTML::Template->new() : Cannot open included file test.tmpl : : file not found. Looks like the template cannot be found. Use the full path to test.tmpl in the script. HTH, Charles K. Clarkson -- Mobile

Re: Problems with HTML::Template

2006-06-20 Thread sfantar
Charles K. Clarkson a écrit : sfantar wrote: : Here is the script which gave me the error mentioned above : [snip] Everything looks okay there. What's in test.tmpl? HTH, Charles K. Clarkson Here is what's inside the file test.tmpl Test Template My Home Directory is

Re: Problems with HTML::Template

2006-06-20 Thread sfantar
Jeff Peng a écrit : Hello, The first,I would suggest you take a look at apache's error_log,you could find something wrong with your scripts or config there. From: sfantar <[EMAIL PROTECTED]> To: beginners-cgi@perl.org, beginners@perl.org Subject: Problems with HTML::Template Da

RE: Problems with HTML::Template

2006-06-20 Thread Charles K. Clarkson
sfantar wrote: : Here is the script which gave me the error mentioned above : [snip] Everything looks okay there. What's in test.tmpl? HTH, Charles K. Clarkson -- Mobile Homes Specialist Free Market Advocate Web Programmer 254 968-8328 Don't tread on my bandwidth. Trim your posts. --

Re: Problems with HTML::Template

2006-06-20 Thread sfantar
Charles K. Clarkson a écrit : sfantar wrote: : I am starting using HTML::Template modules and I wrote a script with : the first example within the doc. : I am not able to see the results of my CGI from my browser. It : displayed error 500 Internal Server Error. Sounds like you are not pri

RE: Problems with HTML::Template

2006-06-20 Thread Charles K. Clarkson
sfantar wrote: : I am starting using HTML::Template modules and I wrote a script with : the first example within the doc. : I am not able to see the results of my CGI from my browser. It : displayed error 500 Internal Server Error. Sounds like you are not printing the correct headers. Show

Problems with HTML::Template

2006-06-20 Thread sfantar
Hi there, I am starting using HTML::Template modules and I wrote a script with the first example within the doc. I am not able to see the results of my CGI from my browser. It displayed error 500 Internal Server Error. I gave the correct rights to my script to make it executable. In the @INC,

Problems with CGI and mod_perl

2006-06-09 Thread J. Alejandro Ceballos Z. -JOAL-
I am running ubuntu on my pc and I installed the package mod_perl ... Did you installed directly (perl Makefile.PL and so on...) or used the cpan command (mihost# sudo cpan ) ? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Problems with CGI and mod_perl

2006-06-06 Thread Jonathan Mangin
- Original Message - From: "sfantar" <[EMAIL PROTECTED]> To: Sent: Tuesday, June 06, 2006 1:21 PM Subject: Problems with CGI and mod_perl > Hello everyone > > I have started since today learning how to write cgi in Perl with this > doc : http://users.ea

Problems with CGI and mod_perl

2006-06-06 Thread sfantar
Hello everyone I have started since today learning how to write cgi in Perl with this doc : http://users.easystreet.com/ovid/cgi_course/lessons/lesson_one.html I am running ubuntu on my pc and I installed the package mod_perl made by ubuntu a few days ago and I was able to run Perl scripts f

Re: Problems opening files from CGI.pm program in Windows

2006-01-24 Thread Jim Riddles
Mary, This appears to be a simple permissions error. When running a cgi script you are running with the web server's credentials, so your log file is not writeable by that user. When run locally, you are using the credentials that you are logged on as, so the script has access. This is no

Re: Problems opening files from CGI.pm program in Windows

2006-01-23 Thread Dr.Ruud
Mary Anderson: > open(LOG,">>.\guestbook.err")|| Simply try '>>./guestbook.err'. BTW, whitepace is cheap nowadays: my $logfile = './guestbook.err'; open( LOG, '>>', $logfile ) or die "Couldn't open log ($logfile) $!"; -- Grtz, Ruud -- To unsubscribe, e-mail: [EMAIL PROTECTED] Fo

Re: Problems opening files from CGI.pm program in Windows

2006-01-22 Thread Bob Showalter
Mary Anderson wrote: Hi All, I am running Perl 5.8.7 (ActivePerl) on a Windows XP platform. I have been unable to open files from a CGI.pm script. Here is the offending code: use CGI qw/:standard :html3 :netscape/; use POSIX 'strftime'; use CGI::Carp('carpout'); open(LOG,">>.\guestbook.er

Re: Problems opening files from CGI.pm program in Windows

2006-01-22 Thread Paul Archer
3:43pm, Mary Anderson wrote: Hi All, I am running Perl 5.8.7 (ActivePerl) on a Windows XP platform. I have been unable to open files from a CGI.pm script. Here is the offending code: use CGI qw/:standard :html3 :netscape/; use POSIX 'strftime'; use CGI::Carp('carpout'); open(LOG,">>.\gue

Problems opening files from CGI.pm program in Windows

2006-01-22 Thread Mary Anderson
Hi All, I am running Perl 5.8.7 (ActivePerl) on a Windows XP platform. I have been unable to open files from a CGI.pm script. Here is the offending code: use CGI qw/:standard :html3 :netscape/; use POSIX 'strftime'; use CGI::Carp('carpout'); open(LOG,">>.\guestbook.err")|| die "cou

Re: problems with CGI.pm upload feature

2005-09-20 Thread Scott R. Godin
Charles K. Clarkson wrote: Scott R. Godin wrote: : Regrettably this isn't getting me any closer to a resolution -- : what about the code? can anyone see anything I might have : overlooked? done wrong? should it, in fact, be working right : now? Did you test to be c

RE: problems with CGI.pm upload feature

2005-09-19 Thread Charles K. Clarkson
Scott R. Godin wrote: : Regrettably this isn't getting me any closer to a resolution -- : what about the code? can anyone see anything I might have : overlooked? done wrong? should it, in fact, be working right : now? Did you test to be certain that @file actually ho

Re: problems with CGI.pm upload feature

2005-09-19 Thread Scott R. Godin
Scott R. Godin wrote: script is at http://phpfi.com/78748 Possibly used the wrong web browser to upload the file. Not all of them support this feature. Firefox does not. It will however provide the CGI script with the file name. Firefox doesn't support file uploads? I use it all the tim

Re: problems with CGI.pm upload feature

2005-09-18 Thread Scott R. Godin
Wiggins d'Anconia wrote: Bill Stephenson wrote: On Sep 16, 2005, at 7:51 PM, Scott R. Godin wrote: Wiggins d'Anconia wrote: Scott R. Godin wrote: script is at http://phpfi.com/78748 I followed the instructions in CGI.pm as best I could, and from what I read the upload() function is supposed

Re: problems with CGI.pm upload feature

2005-09-17 Thread Wiggins d'Anconia
Bill Stephenson wrote: > On Sep 16, 2005, at 7:51 PM, Scott R. Godin wrote: > >> Wiggins d'Anconia wrote: >> >>> Scott R. Godin wrote: >>> script is at http://phpfi.com/78748 I followed the instructions in CGI.pm as best I could, and from what I read the upload() function is su

Re: problems with CGI.pm upload feature

2005-09-17 Thread Bill Stephenson
On Sep 16, 2005, at 7:51 PM, Scott R. Godin wrote: Wiggins d'Anconia wrote: Scott R. Godin wrote: script is at http://phpfi.com/78748 I followed the instructions in CGI.pm as best I could, and from what I read the upload() function is supposed to return a filehandle ? (it doesn't say whethe

Re: problems with CGI.pm upload feature

2005-09-17 Thread Scott R. Godin
Wiggins d'Anconia wrote: Scott R. Godin wrote: script is at http://phpfi.com/78748 I followed the instructions in CGI.pm as best I could, and from what I read the upload() function is supposed to return a filehandle ? (it doesn't say whether this is a direct FH to the tempfile or not) I had d

Re: problems with CGI.pm upload feature

2005-09-16 Thread Wiggins d'Anconia
Scott R. Godin wrote: > script is at http://phpfi.com/78748 > > I followed the instructions in CGI.pm as best I could, and from what I > read the upload() function is supposed to return a filehandle ? (it > doesn't say whether this is a direct FH to the tempfile or not) > > I had dome some prelim

problems with CGI.pm upload feature

2005-09-16 Thread Scott R. Godin
script is at http://phpfi.com/78748 I followed the instructions in CGI.pm as best I could, and from what I read the upload() function is supposed to return a filehandle ? (it doesn't say whether this is a direct FH to the tempfile or not) I had dome some preliminary testing with one-liners an

Lib problems under Apache

2005-03-02 Thread Aaron Craig
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm sure I'm missing something obvious, but after mucking about for some time with this, I'm still stumped. The following script compiles off the command line, but not through CGI. #!/usr/

Problems upgrading from ActiveState 5.6 to Cygwin 5.8

2004-08-18 Thread Siegfried Heintze
I had been previously using ActiveState 5.6/Windows 2003 server/Win32::ODBC/MSAccess2000 to develop a web site for my client. I recently decided to upgrade to Perl 5.8 from cygwin. I checked out my web site (too) briefly and it seemed fine. Later I discovered a problem with my SQL Update statemen

Re: Problems declaring variables in external packages

2004-04-18 Thread Randy W. Sims
Wiggins d'Anconia wrote: Richard Heintze wrote: I'm using these statements in my main program: use DisplayPCE qw($order $fnx ); ... print join("", map { qq[$_] } @{$DisplayPCE::order}); ... When I use the debugger, I find that order is undefined! When I use the browser to view the page, the valu

Re: Problems declaring variables in external packages

2004-04-18 Thread Wiggins d'Anconia
Richard Heintze wrote: I'm using these statements in my main program: use DisplayPCE qw($order $fnx ); ... print join("", map { qq[$_] } @{$DisplayPCE::order}); ... When I use the debugger, I find that order is undefined! When I use the browser to view the page, the value of undef is confirmed.

Problems declaring variables in external packages

2004-04-18 Thread Richard Heintze
I'm using these statements in my main program: use DisplayPCE qw($order $fnx ); ... print join("", map { qq[$_] } @{$DisplayPCE::order}); ... When I use the debugger, I find that order is undefined! When I use the browser to view the page, the value of undef is confirmed. When I abandon package

Re: Stricture and warnings (was Re: problems parsing web form information into a perl script)

2004-03-09 Thread zsdc
Wiggins d Anconia wrote: Wiggins d'Anconia wrote: use strict; # always use warnings;# usually Why not always? I would make it: use strict; # always use warnings; # always I won't argue with you over them. I always do both... some people don't like that "always" on the warnings, so I use t

Re: Stricture and warnings (was Re: problems parsing web form information into a perl script)

2004-03-09 Thread Wiggins d Anconia
> Wiggins d'Anconia wrote: > > > use strict; # always > > use warnings;# usually > > Why not always? I would make it: > >use strict; # always >use warnings; # always > I won't argue with you over them. I always do both... some people don't like that "always" on the warnings, so I us

Stricture and warnings (was Re: problems parsing web form information into a perl script)

2004-03-09 Thread zsdc
Wiggins d'Anconia wrote: use strict; # always use warnings;# usually Why not always? I would make it: use strict; # always use warnings; # always and also use the taint mode: #!/usr/bin/perl -T in CGI scripts (or any other scripts invoked by someone else than the system user they run

Re: problems parsing web form information into a perl script

2004-03-07 Thread Wiggins d'Anconia
Mark Martin wrote: Hi, I've got a web form that allows a user to browse to an excel file on their computer and input it and the year as parameters to run a perl script FORM : SCRIPT: use strict; # always use warnings;# usually use CGI; use Spreadsheet::ParseExcel; $q=new CGI; my $oExcel = new

problems parsing web form information into a perl script

2004-03-03 Thread Mark Martin
Hi, I've got a web form that allows a user to browse to an excel file on their computer and input it and the year as parameters to run a perl script FORM : SCRIPT: use CGI; use Spreadsheet::ParseExcel; $q=new CGI; my $oExcel = new Spreadsheet::ParseExcel; my $user_ssheet=$q->param('file');

problems parsing datafile into mysql table - help

2004-02-21 Thread smrtalec
I have a script which function is to parse through a comma seperated data file, check if the entry is already existing, then if not enter the data into a mysql table. However, it only seems to be finding a match on the third time around. ie if 'john brown' is in the data file it will only recogni

Re: Apache::Cookie problems

2004-02-16 Thread Andrew Gaffney
Wiggins d'Anconia wrote: Andrew Gaffney wrote: I'm creating my own module to handle sessions and other stuff for my site: package Skyline; use Apache::DBI; use Apache::Cookie; use Exporter; @ISA = ('Exporter'); @EXPORT_OK = ('check_login', 'init_db', '$dbh'); @EXPORT = ('check_login', 'init_db'

Re: Apache::Cookie problems

2004-02-16 Thread Wiggins d'Anconia
this is on a test server not connected to the internet. Why would we care, just don't complain when you have a security breach :-)... personally I have more problems with using 'linux' as a password. http://danconia.org -- To unsubscribe, e-mail: [EMAIL PROTECTED] For addition

Re: Apache::Cookie problems

2004-02-16 Thread Wiggins d'Anconia
Andrew Gaffney wrote: I'm creating my own module to handle sessions and other stuff for my site: package Skyline; use Apache::DBI; use Apache::Cookie; use Exporter; @ISA = ('Exporter'); @EXPORT_OK = ('check_login', 'init_db', '$dbh'); @EXPORT = ('check_login', 'init_db', '$dbh'); our $dbh; sub ch

Re: Apache::Cookie problems

2004-02-15 Thread Andrew Gaffney
Andrew Gaffney wrote: sub init_db { $dbh = DBI->connect("DBI:mysql:database=skyline;host=192.168.254.25", "root", "linux", {'RaiseError' => 1}); } And before anyone gets on me about posting DB passwords, keep in mind this is on a test server not connected to the internet. -- Andrew Gaffney Net

Apache::Cookie problems

2004-02-15 Thread Andrew Gaffney
I'm creating my own module to handle sessions and other stuff for my site: package Skyline; use Apache::DBI; use Apache::Cookie; use Exporter; @ISA = ('Exporter'); @EXPORT_OK = ('check_login', 'init_db', '$dbh'); @EXPORT = ('check_login', 'init_db', '$dbh'); our $dbh; sub check_login { my %cook

Re: Can't locate GD.pm in @INC + cpan> install GD problems???

2004-02-11 Thread frbn
ommand-line option summary Where is libgd installed? [/usr/lib] Please choose the features that match how libgd was built: Build JPEG support? [y] y Build FreeType support? [y] y Build XPM support? [y] y If you experience compile problems, please check the @INC, @LIBPATH and @LIBS arrays define

Pbm: Can't locate GD.pm in @INC + cpan> install GD problems??? (precedent msg in the archives not usefull)

2004-02-10 Thread Frederic MARTIN
d was built: Build JPEG support? [y] y Build FreeType support? [y] y Build XPM support? [y] y If you experience compile problems, please check the @INC, @LIBPATH and @LIBS arrays defined in Makefile.PL and manually adjust, if necessary. Checking if your kit is complete... Looks good Writing Makefil

Can't locate GD.pm in @INC + cpan> install GD problems???

2004-02-10 Thread Frederic MARTIN
d was built: Build JPEG support? [y] y Build FreeType support? [y] y Build XPM support? [y] y If you experience compile problems, please check the @INC, @LIBPATH and @LIBS arrays defined in Makefile.PL and manually adjust, if necessary. Checking if your kit is complete... Looks good Writing Makefil

Re: Perl script problems

2003-12-04 Thread Casey West
, legal API for searching newsgroups, so you may also want to try these searches. http://groups.google.com/groups?q=Perl+Perl+script+problems http://groups.google.com/groups?q=Perl+script+problems+group%3Acomp.lang.perl.* If you didn't get any useful results below, there's a chance

Perl script problems

2003-12-04 Thread AG
ere having problems configuring the pkg. So, I figured I'd send a note asking for assistance. I imagine that I have missed something fairly obvious. Hopefully, my questions are intelligible ;) Any help you can provide would be greatly appreciated. I thank you in advance for your time.

Re: Javascript problems with -script

2003-11-23 Thread drieux
On Sunday, Nov 23, 2003, at 20:17 US/Pacific, Mike Schienle wrote: On Nov 23, 2003, at 06:47 PM, Charles K. Clarkson wrote: On Sunday, November 23, 2003 6:42 PM, Mike Schienle <[EMAIL PROTECTED]> wrote: [snip] : Can someone point out what I'm missing in the -script section : that's commented out t

Re: Javascript problems with -script

2003-11-23 Thread Mike Schienle
On Nov 23, 2003, at 06:47 PM, Charles K. Clarkson wrote: On Sunday, November 23, 2003 6:42 PM, Mike Schienle <[EMAIL PROTECTED]> wrote: [snip] : Can someone point out what I'm missing in the -script section : that's commented out that would make it not work correctly? : The source of the file that

RE: Javascript problems with -script

2003-11-23 Thread Charles K. Clarkson
On Sunday, November 23, 2003 6:42 PM, Mike Schienle <[EMAIL PROTECTED]> wrote: [snip] : Can someone point out what I'm missing in the -script section : that's commented out that would make it not work correctly? : The source of the file that's referenced is identical to what's : in the JSCRIPT var

Javascript problems with -script

2003-11-23 Thread Mike Schienle
Hi all - I have a little CGI app I'm working on and getting stumped with a couple JavaScript problems. The first one is why I can't reference an external file using -script, but using the same code within the CGI works fine. Here's what I have now that opens a new browser w

Re: Apache problems

2003-07-26 Thread drieux
On Saturday, Jul 26, 2003, at 04:06 US/Pacific, Kates Gasis wrote: Hello perl gurus I have a problem with my apache webserver. If I install mod_perl or mod_ssl or php4 my cgi scripts stops working. Funny thing is when I restore the original httpd.conf, the problem persist. I tried rebooting my m

Apache problems

2003-07-25 Thread Kates Gasis
Hello perl gurus I have a problem with my apache webserver. If I install mod_perl or mod_ssl or php4 my cgi scripts stops working. Funny thing is when I restore the original httpd.conf, the problem persist. I tried rebooting my machine but with no effect. The only solution is to uninstall apache a

Re: Problems with URL parameters.

2003-05-30 Thread R. Joseph Newton
the if statement doesnt > trigger. However, when I run this on my RH box as a script, it will parse > the variable just fine and output the correct HTML to my console. > > Any ideas on what the heck I am doing wrong? How could we? You show some very generalized psuedocode, yet prese

Re: Problems with URL parameters.

2003-05-28 Thread zentara
On Wed, 28 May 2003 01:00:51 -0500, [EMAIL PROTECTED] (Nicholas Davey) wrote: >The problem I am having is this: When I pass a parameter via a URL, my >script isnt picking it up, and my if statement is working. > >Here is the basic idea behind my script (all PERL standards are followed on >my host.

Re: Problems with URL parameters.

2003-05-28 Thread fliptop
On Wed, 28 May 2003 at 01:00, Nicholas Davey opined: [snip] ND:http://www.blah.com/cgi-bin/index.cgi?login=yes (DONT go here, example only) ND: ND:#!/usr/bin/perl ND: ND:[ output HTML headers and top of page here ] ND: ND:if (login eq 'yes') { ND:[ output login form here ] ND:} ND: ND:[ output

Problems with URL parameters.

2003-05-28 Thread Nicholas Davey
Hi. Im not totaly new to programming in general. I am fairly new to PERL though. I have used PERL to do many useful things on my RH system, but I have never done anything on the web. I have my own website *under construction* which I am writing in PERL. I was using ColdFusion, but my host doesnt s

RE: Problems getting a simple form to work.

2003-04-06 Thread Mike Butler
These are the permissions on the files: simpleform.htm rw-r--r-- cgi-bin rwxr-xr-x simpleform.cgi rwxr-xr-x Does anyone have any ideas? Thanks, - Mike -Original Message- From: Rob Benton [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 4:38 PM To: Mike Butler Cc: Hughes, Andrew; [

RE: Problems getting a simple form to work.

2003-04-04 Thread fliptop
On Fri, 4 Apr 2003 at 16:29, Mike Butler opined: MB:Thanks, Andrew. I added CGI::Carp qw(fatalsToBrowser); to the script. That's MB:a big help. The error message that I get now is: MB:Software error: MB:Undefined subroutine &main::param called at simpleform.cgi line 6. MB: MB:Line 6 is my $usernam

RE: Problems getting a simple form to work.

2003-04-04 Thread Rob Benton
To: Rob Benton > Cc: Hughes, Andrew; [EMAIL PROTECTED] > Subject: RE: Problems getting a simple form to work. > > > Thanks, Andrew. That did it. It's working now. :) :) :) > > Thanks everyone for all your help. > > - Mike > > -Original Message- &

RE: Problems getting a simple form to work.

2003-04-04 Thread Hughes, Andrew
I think you meant, "Thanks, Rob." Andrew -Original Message- From: Mike Butler [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 4:45 PM To: Rob Benton Cc: Hughes, Andrew; [EMAIL PROTECTED] Subject: RE: Problems getting a simple form to work. Thanks, Andrew. That di

RE: Problems getting a simple form to work.

2003-04-04 Thread Mike Butler
Thanks, Andrew. That did it. It's working now. :) :) :) Thanks everyone for all your help. - Mike -Original Message- From: Rob Benton [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 4:38 PM To: Mike Butler Cc: Hughes, Andrew; [EMAIL PROTECTED] Subject: RE: Problems gett

RE: Problems getting a simple form to work.

2003-04-04 Thread Rob Benton
t; -Original Message- > From: Hughes, Andrew [mailto:[EMAIL PROTECTED] > Sent: Friday, April 04, 2003 3:09 PM > To: [EMAIL PROTECTED] > Subject: RE: Problems getting a simple form to work. > > > I would also add > > use CGI::Carp qw(fatalsToBrowser); > >

RE: Problems getting a simple form to work.

2003-04-04 Thread Mark Young
:[EMAIL PROTECTED] >> Sent: Friday, April 04, 2003 12:58 PM >> To: Li Ngok Lam; [EMAIL PROTECTED] >> Subject: RE: Problems getting a simple form to work. >> >> Hi Li, Rob and Mark. >> >> Thanks for your help. My site is being hosted by Hypermart, so I d

RE: Problems getting a simple form to work.

2003-04-04 Thread Mike Butler
undefined? Thanks, - Mike -Original Message- From: Hughes, Andrew [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 3:09 PM To: [EMAIL PROTECTED] Subject: RE: Problems getting a simple form to work. I would also add use CGI::Carp qw(fatalsToBrowser); along with use CGI; use str

RE: Problems getting a simple form to work.

2003-04-04 Thread Hughes, Andrew
) Andrew -Original Message- From: Li Ngok Lam [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 2:37 PM To: Mike Butler; [EMAIL PROTECTED] Subject: Re: Problems getting a simple form to work. [..] > #!/usr/local/bin/perl -wT > use CGI; > use strict; > > $username =

Re: Problems getting a simple form to work.

2003-04-04 Thread Li Ngok Lam
[..] > #!/usr/local/bin/perl -wT > use CGI; > use strict; > > $username = param('username'); should be : my $username = param('username'); because you've using strict; > > print "Content-type: text/plain\n\n"; For what I know, I would write as "Content-type: text/html\n\n"; > print "You entered

RE: Problems getting a simple form to work.

2003-04-04 Thread Etienne Rivard
ting the 500 error. Thanks, - Mike -Original Message- From: Li Ngok Lam [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 1:16 PM To: Mike Butler; [EMAIL PROTECTED] Subject: Re: Problems getting a simple form to work. [..] > > Can anyone tell me what I'm doing wro

Re: Problems getting a simple form to work.

2003-04-04 Thread javamaster
Mike Butler wrote: Hi Li, Rob and Mark. Thanks for your help. My site is being hosted by Hypermart, so I don't have access to /var/log/httpd. My new simpleform.cgi now looks like this: #!/usr/local/bin/perl -wT use CGI; use strict; $username = param('username'); should be my $username = param('

RE: Problems getting a simple form to work.

2003-04-04 Thread Mike Butler
l getting the 500 error. Thanks, - Mike -Original Message- From: Li Ngok Lam [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 1:16 PM To: Mike Butler; [EMAIL PROTECTED] Subject: Re: Problems getting a simple form to work. [..] > > Can anyone tell me what I'm doing wrong?

Re: Problems getting a simple form to work.

2003-04-04 Thread Li Ngok Lam
[..] > > Can anyone tell me what I'm doing wrong? Also, is there a way to turn on > error.log? Actually, error.log is always turned on... If you are not running the server on yours own, ask the server admin where is the error.log located. [..] > Permissions for cgi-bin: rwxr-xr-x > Permissions f

Problems getting a simple form to work.

2003-04-04 Thread Mike Butler
I am trying to get a simple form to work on my web site. The simpleform.htm is located in testarea/simpleform.htm and simpleform.pl is located in cgi-bin/simpleform.pl. When I run the script from simpleform.htm I get the following error message: 500 Server Error Sorry, your request could not be

Re: Problems with html output

2003-03-27 Thread Rob Anderson
Your logic looks find, and works on my machine (although I made it command line) Try switching on warnings (#!/usr/local/bin/perl -w) and use strict (use strict;) Probably most likely is that you script can't read the file. You should really always check if a file has been opened successfully yo

Problems with html output

2003-03-26 Thread jonathan . musto
I have a simple perl script as follows which gets a users id number by looking in a file. It already knows the username and uses this to reference to the id. The file is in the format: jbloggs,101 jdoe,103 msmith,111 etc... The code i'm using is: #!/usr/local/bin/perl my $hashfile = "/opt/netc

Problems installing DBD::Mysql

2003-02-22 Thread Alex Agerholm
Hi Can anybody help me I have a problem installing DBD::Mysql on a windows XP machine. Running ppm install DBD::mysql returns the message "Read a PPD for 'DBD-mysql' but it is not intended for this build of Perl (MSWin32-x86-multi-thread) Thanks Alex -- To unsubscribe, e-mail: [EMAIL PROTECTED

MIME::Lite /SMTP-Proxy Problems

2002-12-09 Thread Sven Bentlage
Hi everyone, I am using MIME::LIte to send out several mails a month. Due to problems with several providers (i.e. not displaying HTML correct) I switched to text only. Now I received this error message (see below) from one of the people on the mailing list. Does anyone of you maybe know

Problems

2002-11-16 Thread Ambrose007
I have an account on a apache server running mod perl, but i am unable to get even the simplest of scripts to run i am will to have some one log on to the account to see if they can help me with this the error i keep getting is that the header has ended prematurelyno clue what is going on al

Re: problems with sendmail within a cgi

2002-08-16 Thread Janek Schleicher
T wrote at Fri, 16 Aug 2002 15:27:54 +0200: You change often your name ("No Longer Exists" -> "T") and I'm a little bit afraid to talk too much with schizophrenic person :-( > Janek, > > YAY, that was the problem. So, now it sends it correctly. I am seeing one other >problem now that i > can g

Re: problems with sendmail within a cgi

2002-08-16 Thread t
Janek, YAY, that was the problem. So, now it sends it correctly. I am seeing one other problem now that i can get that to work, i have changed it to my $recipient = $q->param( "recipient" ) =~ /^[\w@\,\-]+$/; print MAIL < wrote: > No Longer Exists wrote at Wed, 14 Aug 2002 21:40:41 +0200: >

Re: problems with sendmail within a cgi

2002-08-16 Thread Janek Schleicher
No Longer Exists wrote at Wed, 14 Aug 2002 21:40:41 +0200: > I have this code that redirects just fine, gives me no > errors, yet will NOT send out the e-mail that is > written within the script. IT is running on a AIX > machine. Anyone have any ideas on how to get the > e-mail to run? i have to r

Re: problems with sendmail within a cgi

2002-08-14 Thread Wiggins d'Anconia
A cursory look at the code appears ok, you are positive that there are no errors given, have you tried running it command line?? What does sendmail's log file look like??? The program may be sending to sendmail, it may not be complaining back immediately, but it might be complaining later and

problems with sendmail within a cgi

2002-08-14 Thread no longer exists
Hello, i have used cgi-lib for awhile, but have just been given the job of securing my companies perl files and have started using cgi.pm plus all the security restrictions and have come across a problem. I have this code that redirects just fine, gives me no errors, yet will NOT send out the e

Re: problems with CGI module

2002-08-14 Thread Kevin Meltzer
Well, what exactly is the value of $av_equip and $date_slide at this time? Add a few print statments in for debugging, use CGI::dump() to see what is really being passed in. You may not be storing the values you expect in these variables. Cheers, Kevin On Wed, Aug 14, 2002 at 09:28:22AM -0700, P

Re: problems with CGI module

2002-08-14 Thread Pam Derks
Hi Kevin, I've changed per your suggestion to: elsif ($av_equip eq "slide") { if ($date_slide eq "") { print $q -> h3(), "Please enter date needed for 35mm Slide Projector."; } } but the error checking isn't working, i.e. if I've got 35mm checked, the error message isn't being displaye

  1   2   3   >