Re: my first attempt at a perl script (syntax error)

2000-07-22 Thread Sam Carleton
Sam Carleton wrote: > > Alex Farber wrote: > > > > A good place to ask is news:comp.lang.perl.misc (after you've > > read http://www.perl.com/pub/doc/manual/html/pod/perlfaq.html ) > > Maybe I have read things like "Programming Perl" from O'R

Re: my first attempt at a perl script (syntax error)

2000-07-22 Thread Sam Carleton
Alex Farber wrote: > > Hi Sam, > > Sam Carleton wrote: > > I have a few syntax error which I > > don't know how to resolve. One issue is how to declare a local > > variable, and the other is a problem with my open statement. > > maybe you should rea

my first attempt at a perl script (syntax error)

2000-07-22 Thread Sam Carleton
I have begun writting my first mod_perl module. I figured that I would get the logic working perl first, considering I am new at the language in general. Well, low and behold, I have a few syntax error which I don't know how to resolve. One issue is how to declare a local variable, and the othe

Re: howto config apache to allow perl to filter php pages

2000-07-22 Thread Sam Carleton
Rob Tanner wrote: > > --On 07/16/00 16:11:07 -0400 Sam Carleton <[EMAIL PROTECTED]> wrote: > > > I would like perl to process a php page before or after the php > > interpreter get's it hands on the file. I am trying to add a navbar to > > the PHP

howto config apache to allow perl to filter php pages

2000-07-16 Thread Sam Carleton
I would like perl to process a php page before or after the php interpreter get's it hands on the file. I am trying to add a navbar to the PHP code. How would I go about doing that? Sam

Re: problems with code in "Writing Apache Modules with Perl and C"

2000-07-16 Thread Sam Carleton
m m wrote: > > folks allow me, Im the other newbie who was grappling > with Apache::NavBar the other day :-) > Ged will be proud, I persevered as he advised ;-) > > Sam new to perl, welcome. > This maynot be the canonically right answer but for a > simple task like youre asking, you can just "wa

problems with code in "Writing Apache Modules with Perl and C"

2000-07-15 Thread Sam Carleton
I am new to perl and am trying to figure out how to get the navbar code to work in the book "Writing Apache Modules with Perl and C". I have trace it all the way down to the object that reads in the navbar config file: sub new { my ($class,$conf_file, $r) = @_; my (@c,%c); my $fh = A

redirecting a domain

2000-07-14 Thread Sam Carleton
I have an apache question and I have NO idea where to post it. Is there a newsgroup or mailing list simply for apache? I have multipal domain names: domain.net & domain.org. I would like to configure apache such that when someone goes to www.domain.org, they are "redirect" to www.domain.net. T

getting mod_perl configured on FreeBSD

2000-07-14 Thread Sam Carleton
I have successfully gotten Apache/mod_perl to compile under Linux many a times. This is my first attempt at compiling it on FreeBSD and I am having problems. The problem is that when to do the "make test", apache never starts up. I had once run into this on Linux and that was because the .make

Getting DB2U support

2000-07-04 Thread Sam Carleton
Folks, I have installed mod_perl and I would like to access a DB2 server. What perl modules do I need to install? Are there any tutorials out there to give me the basics of access DB2 from perl? Sam

Re: Most nonesense I've ever read about mod_perl

2000-05-06 Thread Sam Carleton
"Jason C. Leach" wrote: > > hi, > > There be truth to the reply. You can write all the C or ASM you like, but > your algorithm is where it will count. Anyone who knows how to do BIG-O > will know this. > > A good perl programmer will code a bad C programmer under the table with > speed and ef

Re: where to find info on the Apache request object

2000-04-30 Thread Sam Carleton
Jeff Beard wrote: > > Or read chapter 9 in the Eagle book. > > --Jeff > > At 10:43 AM 4/30/00, Tobias Hoellrich wrote: > >At 01:34 PM 4/30/00 -0400, Sam Carleton wrote: > > >I am learning perl/mod_perl right now and have some questions. I would > > &g

Apache::Request->new($r) does NOT work, why?

2000-04-30 Thread Sam Carleton
Tobias Hoellrich wrote: > Almost :-) Apache cannot be used for multipart/form-data, gotta use > Apache::Request instead. Change the start of the handler to : > > sub handler { > my $r = shift; > my $apr = Apache::Request->new($r) Tobias, The new is blowing up on me

Re: perl code to handle a multipart/form-data POST

2000-04-30 Thread Sam Carleton
Tobias Hoellrich wrote: > > Almost :-) Apache cannot be used for multipart/form-data, gotta use > Apache::Request instead. Change the start of the handler to : > > sub handler { > my $r = shift; > my $apr = Apache::Request->new($r) > > and then get the params with @p

where to find info on the Apache request object

2000-04-30 Thread Sam Carleton
I am learning perl/mod_perl right now and have some questions. I would like to see all the functions that I can call on the Apache request object. Can anyone point me to some documentation? I didn't see a listing in "Writing Apache Modules in Perl and C". Sam

Re: perl code to handle a multipart/form-data POST

2000-04-30 Thread Sam Carleton
"Jeffrey W. Baker" wrote: > > On Sat, 29 Apr 2000, Sam Carleton wrote: > > > #! /usr/bin/perl > > > > #cgi-lib.pl was optained from http://cgi-lib.berkeley.edu/ > > require "cgi-lib.pl"; > > If we can erradicate polio and small pox,

Re: perl code to handle a multipart/form-data POST

2000-04-29 Thread Sam Carleton
Sam Carleton wrote: > > I am in a very tight spot right now. I need to have some C++ code > posting data to a web browser vi 'multipart/form-data' by Monday. I > would REALLY like to have either a normal perl CGI script or mod_perl > script that will simply display a

perl code to handle a multipart/form-data POST

2000-04-29 Thread Sam Carleton
Is anyone up to the task, or able to give me some pointers on how I can do this myself? Sam Carleton

PLEASE HELP!!!!! I cannot get mod_perl/apache compiled

2000-04-12 Thread Sam Carleton
I simply cannot get mod_perl/apache to compile. My understanding is that I configure .makepl_args.mod_perl to compile both mod_perl. Then I do the following: perl Makefile.PL make make test make install Assuming there where no problems, all should be installed and ready to go. But all is not

make test is bomming out

2000-04-12 Thread Sam Carleton
Doug MacEachern wrote: > On Tue, 11 Apr 2000, Sam Carleton wrote: > > > This is the error message I got when I compiled mod_perl: > > > > Perl lib version (5.00503) doesn't match executable version (5.006) at > > /usr/lib/perl5/5.00503/i586-linux/Config.pm lin

Re: Error compiling mod_perl

2000-04-12 Thread Sam Carleton
Geoffrey Young wrote: > > ---make test error--- > > Syntax error on line 30 of > > /usr/src/mod_perl-1.21_03/t/conf/httpd.conf: > > Invalid command '=pod', perhaps mis-spelled or defined by a module not > > included in the server configuration > > done > >

Re: Error compiling mod_perl

2000-04-12 Thread Sam Carleton
Doug MacEachern wrote: > On Tue, 11 Apr 2000, Sam Carleton wrote: > > > This is the error message I got when I compiled mod_perl: > > > > Perl lib version (5.00503) doesn't match executable version (5.006) at > > /usr/lib/perl5/5.00503/i586-linux/Config.pm lin

Error compiling mod_perl

2000-04-11 Thread Sam Carleton
This is the error message I got when I compiled mod_perl: Perl lib version (5.00503) doesn't match executable version (5.006) at /usr/lib/perl5/5.00503/i586-linux/Config.pm line 7. Compilation failed in require at /usr/lib/perl5/5.00503/ExtUtils/MakeMaker.pm line 13. BEGIN failed--compilation abo

Re: best way to call traceroute

2000-04-07 Thread Sam Carleton
Steven Champeon wrote: > On Fri, 7 Apr 2000, Sam Carleton wrote: > > I want to call traceroute to the remote_host from within a mod_perl > > script, being a C/C++ programmer I don't the best way to do that. Is > > there a traceroute object I could use? If so, how?

best way to call traceroute

2000-04-07 Thread Sam Carleton
I want to call traceroute to the remote_host from within a mod_perl script, being a C/C++ programmer I don't the best way to do that. Is there a traceroute object I could use? If so, how? Otherwise how do I run traceroute from within a perl script? Sam

Server-Side Include isn't workin' :(

2000-03-31 Thread Sam Carleton
I have followed the example in "Writing Apache Modules in Perl and C". The module Apache::ESSI is working fine for a virtual site (development site), but it does not work for the main (non-virutal) site. Here a bit of my httpd.conf: -

getting server side includes to work server wide

2000-03-31 Thread Sam Carleton
I have followed the example in "Writing Apache Modules in Perl and C". The module Apache::ESSI is working fine for a virtual site (development site), but it does not work for the main (non-virutal) site. Here a bit of my httpd.conf: -

getting server side includes to work server wide

2000-03-31 Thread Sam Carleton
I have followed the example in "Writing Apache Modules in Perl and C". The module Apache::ESSI is working fine for a virtual site (development site), but it does not work for the main (non-virutal) site. Here a bit of my httpd.conf: - #

Re: adding Server-Side Includes to default files

2000-03-30 Thread Sam Carleton
Sam Carleton wrote: > I would like to have server-side includes to be parsed on DirectoryIndex > files. I have followed the example in "Writing Apache Modules in Perl > and C" and have my Apache::ESSI and this is what is in my perl.conf: > > > SetHandler p

adding Server-Side Includes to default files

2000-03-30 Thread Sam Carleton
I would like to have server-side includes to be parsed on DirectoryIndex files. I have followed the example in "Writing Apache Modules in Perl and C" and have my Apache::ESSI and this is what is in my perl.conf: SetHandler perl-script PerlHandler Appache::ESSI PerlSetVar ESSIDefs co

Re: [admin] NO HTML posts please!

2000-03-30 Thread Sam Carleton
Stas Bekman wrote: > Folks, please refrain from posting in HTML. > > Some of us use email clients that post and read email in the old good text > mode. When I don't have enough time on my hands I delete such emails since > I cannot read them right away. Probably others too. > > Please don't tell

Re: Can't locate object method "OPEN" via package "Apache"

2000-03-30 Thread Sam Carleton
darren chamberlain wrote: > Try using CORE::open to be sure that the default open is being called. tried it, I am getting the same error, any more ideas? Sam

Can't locate object method "OPEN" via package "Apache"

2000-03-30 Thread Sam Carleton
I am trying to get the Apache::Magick module from the O'Reilly book "Writing Apache Modules with Perl and C" to work. The error I am running into is: Can't locate object method "OPEN" via package "Apache" (line 80) The looks real simply: open(STDOUT, ">&=" . fileno($fh)); Any thoughts on what

getting Image::Magick

2000-03-29 Thread Sam Carleton
had returned bad status Running make install Oops, make had returned bad status --- Has anyone seen this error before? Any thoughts on how to fix it? Sam Carleton