[13872] in Perl-Users-Digest
Perl-Users Digest, Issue: 1282 Volume: 9
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Thu Nov 4 18:05:32 1999
Date: Thu, 4 Nov 1999 15:05:13 -0800 (PST)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Message-Id: <941756713-v9-i1282@ruby.oce.orst.edu>
Content-Type: text
Perl-Users Digest Thu, 4 Nov 1999 Volume: 9 Number: 1282
Today's topics:
"Use Net::Sendmail" errors out on NT sspang8369@my-deja.com
Re: "Use Net::Sendmail" errors out on NT <emschwar@rmi.net>
Re: "Use Net::Sendmail" errors out on NT <camerond@mail.uca.edu>
Re: duplicates in an array <sumengen@hotelspectra.com>
evaluating a string <sdries3@home.com>
Re: evaluating a string <vincent.murphy@cybertrust.gte.com>
Re: File handle tests with pattern matching to promote raju_k@iname.com
Re: File handle tests with pattern matching to promote lee.lindley@bigfoot.com
Re: Help! Simple Perl problem - newbie!! <moseley@best.com>
Re: Help? What are Black Squares? (Abigail)
Re: Help? What are Black Squares? <emschwar@rmi.net>
howto download a GIF from a URI? <310064202272#0001@online.de>
Re: howto download a GIF from a URI? <310064202272#0001@online.de>
Re: length (number of items) of an array (Dean Karres)
Re: length (number of items) of an array (Dean Karres)
Re: localtime object y2k compliant? <finsol@ts.co.nz>
Re: localtime object y2k compliant? <aqumsieh@matrox.com>
Re: Lost in Splitting....... (Craig Berry)
mod_php and mod_perl problems.... <mantat@cc.nthu.edu.tw>
Re: mod_php and mod_perl problems.... (brian d foy)
Digest Administrivia (Last modified: 16 Sep 99) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Thu, 04 Nov 1999 20:58:02 GMT
From: sspang8369@my-deja.com
Subject: "Use Net::Sendmail" errors out on NT
Message-Id: <7vss0n$bvs$1@nnrp1.deja.com>
Please help!!
I am a beginner struggling with Perl that comes with the NT resource
kit. I am trying to sendmail via my perl script. But the line "Use
Net::Sendmail" errors out with the message
"Can't locate Mail/Sendmail.pm" in $INC" ...
BEGIN fails -- compilation aborted at mail.pl line 1."
What's wrong??? Any tips would be appreciated.
Susan Pang sspang8369@my-deja.com
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
Date: 04 Nov 1999 15:29:10 -0700
From: Eric The Read <emschwar@rmi.net>
Subject: Re: "Use Net::Sendmail" errors out on NT
Message-Id: <xkfn1stj3gp.fsf@valdemar.col.hp.com>
sspang8369@my-deja.com writes:
> I am a beginner struggling with Perl that comes with the NT resource
> kit. I am trying to sendmail via my perl script. But the line "Use
> Net::Sendmail" errors out with the message
> "Can't locate Mail/Sendmail.pm" in $INC" ...
This indicates your line is actually:
use Mail::Sendmail;
Either that, or you're reporting the wrong error message. Which is it?
Can you post a tiny program-- shouldn't need more than two or three
lines-- that displays this behaviour?
> BEGIN fails -- compilation aborted at mail.pl line 1."
>
> What's wrong??? Any tips would be appreciated.
Either you don't have the right module installed, or you're not using the
right syntax to access it. Which it is, I can't guess from the
information above.
-=Eric
--
"Cutting the space budget really restores my faith in humanity. It
eliminates dreams, goals, and ideals and lets us get straight to the
business of hate, debauchery, and self-annihilation."
-- Johnny Hart
------------------------------
Date: Thu, 04 Nov 1999 16:57:14 -0600
From: Cameron Dorey <camerond@mail.uca.edu>
To: sspang8369@my-deja.com
Subject: Re: "Use Net::Sendmail" errors out on NT
Message-Id: <38220F4A.BE9097FA@mail.uca.edu>
[cc'd to sp]
sspang8369@my-deja.com wrote:
>
> Please help!!
> I am a beginner struggling with Perl that comes with the NT resource
> kit. I am trying to sendmail via my perl script. But the line "Use
> Net::Sendmail" errors out with the message
> "Can't locate Mail/Sendmail.pm" in $INC" ...
> BEGIN fails -- compilation aborted at mail.pl line 1."
>
> What's wrong??? Any tips would be appreciated.
Well, you don't have that module, it looks like.
Scrap that version of Perl, get the latest one at www.activestate.com. I
don't know what docs you have, but they are extensive with the one you
downoad. On NT, Mail::Sendmail and Mail::Sender are probably the two
best choices you have for email, but it looks like you will have to
download them over the Net after you install Perl. While you're there,
look into the mailing lists under "Support" for archived
questions/answers and consider signing up for those which interest you.
Cameron
--
Cameron Dorey
Associate Professor of Chemistry
University of Central Arkansas
Phone: 501-450-5938
camerond@mail.uca.edu
------------------------------
Date: Thu, 4 Nov 1999 15:00:25 -0800
From: "Baris Sumengen" <sumengen@hotelspectra.com>
Subject: Re: duplicates in an array
Message-Id: <7vt38l$32g$1@bgtnsc03.worldnet.att.net>
Thanks,
I only used to use books to learn perl until now. But The perl FAQ's are
nice. I will be spending couple of days on them.
baris.
Ala Qumsieh <aqumsieh@matrox.com> wrote in message
news:x3yln8erxug.fsf@tigre.matrox.com...
>
> "Baris Sumengen" <sumengen@iplab.ece.ucsb.edu> writes:
>
> > Do you know an easy way to remove duplicates from an array.(If multiple
> > entries are identicle just keep one copy of it).
>
> Of course. We all know. It's in the FAQs.
>
> From perlfaq4:
>
> How can I extract just the unique elements of an array?
>
> HTH,
> --Ala
>
------------------------------
Date: Thu, 04 Nov 1999 22:20:31 GMT
From: "Steve Dries" <sdries3@home.com>
Subject: evaluating a string
Message-Id: <PEnU3.8904$OS2.699665@news.rdc1.il.home.com>
Hi Everyone,
I'm slowly starting to learn Perl. I've written a bunch of simple programs
and have found it to be a great programming language that was easy to learn
and quite powerful...but you all know that. Anyway, here's my question. I've
been trying different things and for some reason can't get it right. I think
I've been close but might have had a simple mistake and went on to try
another way. I always get goofed up by the sometimes rather complicated
comparison expressions. I have a great book (Nigel Chapman's Perl - The
Programmer's Companion) and have checked the FAQs but can't seem to get
anything to work.
Here's what I'm trying to do, it sounds really simple, and I'm thinking the
answer will be just as simple..it just eludes me.
I have a string that is a known format but will have a different number in
it..here's an example:
The number you're trying to get is 347373 so good luck.
All I'm trying to do is get that number out of the string into it's own
variable. Again, please forgive this seemingly easy question and I apologize
if it's in a FAQ somewhere that I haven't found. Thanks.
sd
------------------------------
Date: Thu, 04 Nov 1999 22:46:15 GMT
From: Vincent Murphy <vincent.murphy@cybertrust.gte.com>
Subject: Re: evaluating a string
Message-Id: <xjgyacdan9k.fsf@gamora.ndhm.gtegsc.com>
>>>>> "Steve" == Steve Dries <sdries3@home.com> writes:
<-snip->
Steve> I have a string that is a known format but will have a different number in
Steve> it..here's an example:
Steve> The number you're trying to get is 347373 so good luck.
Steve> All I'm trying to do is get that number out of the string into it's own
Steve> variable. Again, please forgive this seemingly easy question and I apologize
Steve> if it's in a FAQ somewhere that I haven't found. Thanks.
perl -e '$str="The number youre trying to get is 347373 so good luck.";
$num = $1 if ($str =~ /The number youre trying to get is (\d+) so good luck./);
print qq(NUM: $num\n); print qq(STRING: $str\n)'
"perldoc perlre" for more information
--vjm
------------------------------
Date: Thu, 04 Nov 1999 22:27:23 GMT
From: raju_k@iname.com
Subject: Re: File handle tests with pattern matching to promote early termination of a file read
Message-Id: <7vt187$g29$1@nnrp1.deja.com>
me thinks this will work:
while(<FILEH>) {
print;
last if(/^X/);
}
--raju
In article <7vsljr$fhr$1@usenet.bham.ac.uk>,
"michael moorhouse" <mic_news@bip.bham.ac.uk> wrote:
> Hello.
> I am having problems terminating a file scan I am writting.
> I have a filehandle opened and pointed at a file which contains:
> "
> first
> second
> third
> X
> last
> "
> I'm aiming at a proof of concept that the 'X' line is reached, the
loop
> terminates.
> The construct :
>
> while (<FILEH> && /^[^X]/) {print $_}
>
> doesn't work.
> yet the construct:
>
> while (defined ($_=<FILEH>) && (/^[^X]/)) {print $_}
>
> does print out all lines of the file until the 'X' section I am
looking for
> and then terminates, like I would expect it to.
> Apparently, the 'while (<FILEH>) {}' construct is a special case and
does
> fancy things like load in the next line from the file into $_ and
performs a
> undef. test which will terminate the loop at the (natural) end of a
file.
> Is there a simpler way to do this or have I been pampered too much by
the
> very convenient 'while (<FILEH>) {}' construct and therefore shouldn't
> expect it to be as simple? *gives dummy an experimental suck* Yup -
it's
> still there.
> Michael M.
> = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
= =
> Michael Moorhouse,
> Office 8.21
> Bioinformatics Project
> Dept Biochemistry
> University of Birmingham
> BIRMINGHAM
> B15 2TT
> TEL : 0121 414 7879
>
-------------------------------------------------------------------------
> "How to explain? How to describe? Even the omniscient viewpoint
quails"
> from Vernor Vinge : 'A Fire Upon the Deep'
> = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
= =
>
>
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
Date: 4 Nov 1999 22:24:48 GMT
From: lee.lindley@bigfoot.com
Subject: Re: File handle tests with pattern matching to promote early termination of a file read
Message-Id: <7vt13g$qdq$1@rguxd.viasystems.com>
michael moorhouse <mic_news@bip.bham.ac.uk> wrote:
:>Hello.
:>I am having problems terminating a file scan I am writting.
:>I have a filehandle opened and pointed at a file which contains:
:>"
:>first
:>second
:>third
:>X
:>last
:>"
:>I'm aiming at a proof of concept that the 'X' line is reached, the loop
:>terminates.
:>The construct :
:>while (<FILEH> && /^[^X]/) {print $_}
-------------------------------------^
Since you are defaulting to $_ on everything, might as well do it there
too.
:>doesn't work.
:>yet the construct:
:>while (defined ($_=<FILEH>) && (/^[^X]/)) {print $_}
:>does print out all lines of the file until the 'X' section I am looking for
:>and then terminates, like I would expect it to.
:>Apparently, the 'while (<FILEH>) {}' construct is a special case and does
:>fancy things like load in the next line from the file into $_ and performs a
:>undef. test which will terminate the loop at the (natural) end of a file.
while() does not test for undef, it just checks for truth. But
since the lines have a "\n" on the end, it is usually the same thing.
There *is* a special case at work here though. It is the automatic
assignment to $_.
`perldoc perlop` and scroll all of the way down to the fine print
that says:
Ordinarily you must assign the returned value to a variable,
but there is one situation where an automatic assignment
happens. If and ONLY if the input symbol is the only thing
inside the conditional of a while or for(;;) loop, the value
is automatically assigned to the variable $_
:>Is there a simpler way to do this or have I been pampered too much by the
:>very convenient 'while (<FILEH>) {}' construct and therefore shouldn't
:>expect it to be as simple? *gives dummy an experimental suck* Yup - it's
:>still there.
But actually, your second method is more rigidly correct than the
default Perl test for truth. After all, the last line of that file
could contain "0" without a newline.
Bwuaaahaaaahaaa.
This is a traditional method of doing what you want:
while (<FILEH>) {last unless /^[^X]/; print; }
--
// Lee.Lindley /// I used to think that being right was everything.
// @bigfoot.com /// Then I matured into the realization that getting
//////////////////// along was more important. Except on usenet.
------------------------------
Date: Thu, 4 Nov 1999 13:45:40 -0800
From: Bill Moseley <moseley@best.com>
Subject: Re: Help! Simple Perl problem - newbie!!
Message-Id: <MPG.128b9e625ed90b5d989845@nntp1.ba.best.com>
Daza (darren-edwards@esc-ltd.freeserve.co.uk) seems to say...
> Oh dear, I've lost the plot!
No, you just are on the wrong channel.
> <form action="H:\html.cgi" method="POST">
> When I call up the form it looks fine. When I click the OK button I don't
> see the ?Name=xxxx at the end of the URL, and a new HTML page appears with
> the actual text (verbatim) from the cgi file. I expected to see just "HI"
Method is POST not GET.
GET passes parameters in the command line.
<form action="H:\html.cgi" method="POST">
^^ - does that look like a URL?
Note that POST or GET are not part of the Perl syntax.
--
Bill Moseley mailto:moseley@best.com
pls note the one line sig, not counting this one.
------------------------------
Date: 4 Nov 1999 16:25:56 -0600
From: abigail@delanet.com (Abigail)
Subject: Re: Help? What are Black Squares?
Message-Id: <slrn82426l.dk.abigail@alexandra.delanet.com>
Reba Davis (queen7@gte.net) wrote on MMCCLVI September MCMXCIII in
<URL:news:ttiU3.263$_Y3.7442@dfiatx1-snr1.gtei.net>:
``
`` Can someone tell me which key on the keyboard is used to display the
`` "black" squares when one is looking at a CGI script when using Notepad.
Well, the black square key of course. Unfortunally, that key is not
on *your* keyboard.
`` There have been times when I wanted to edit a script, but I don't know where
`` the black squares are coming from. They seem to appear between each piece
`` of variable information for example.
Your computer is possessed by an angry daemon from the sixth dimension,
who has plugged his keyboard in to your computer. Black squares are a
severe warning; it's the last step before the yellow circles. And yellow
circles mean a painful death for you and your family.
About the only thing you can do is to ritual sacrifice your computer
and start a devout life. Hire a steam roller, and take your computer
to the townsquare. Now, squash the computer by driver the steam roller
over it. On the remains, sacrifice a virgin, using a silver dagger.
Give away everything you own, except for a lion cloth and sandals, and
make a pelgrimage to the hidden temple. On foot. All that's known about
the temple is that it's somewhere in dark Africa, so it may take a while.
Alternatively, once can install FreeBSD, and hope its daemon beats
the any daemon from the sixth dimension.
Abigail
--
$_ = "\x3C\x3C\x45\x4F\x54";
print if s/<<EOT/<<EOT/e;
Just another Perl Hacker
EOT
-----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
http://www.newsfeeds.com The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including Dedicated Binaries Servers ==-----
------------------------------
Date: 04 Nov 1999 15:51:46 -0700
From: Eric The Read <emschwar@rmi.net>
Subject: Re: Help? What are Black Squares?
Message-Id: <xkfk8nxj2f1.fsf@valdemar.col.hp.com>
abigail@delanet.com (Abigail) writes:
> Alternatively, once can install FreeBSD, and hope its daemon beats
> the any daemon from the sixth dimension.
Or just call on Buckaroo Banzai. Heck, if he can kick ass all over the
8th dimension, surely he can handle two fewer?
-=Eric
--
"Cutting the space budget really restores my faith in humanity. It
eliminates dreams, goals, and ideals and lets us get straight to the
business of hate, debauchery, and self-annihilation."
-- Johnny Hart
------------------------------
Date: Thu, 04 Nov 1999 22:51:09 +0100
From: bmlam <310064202272#0001@online.de>
Subject: howto download a GIF from a URI?
Message-Id: <3821FFCD.BDA1C4BB@online.de>
Can someone please point out how I can download image files found in a
URI and save thme as binary files?
Assuming I have the full path name of the image files, e.g,
www.abc.org/img/beelaabong.gif
Thanks!
------------------------------
Date: Thu, 04 Nov 1999 23:04:02 +0100
From: bmlam <310064202272#0001@online.de>
Subject: Re: howto download a GIF from a URI?
Message-Id: <382202D2.5FECFF24@online.de>
> Can someone please point out how I can download image files found in a
> URI and save thme as binary files?
> Assuming I have the full path name of the image files, e.g,
>
> www.abc.org/img/beelaabong.gif
>
This is just a URL out of my fancy. Below is a realistic one
http://www.oreilly.com/graphics_new/navbar/off-perl.gif
>
> Thanks!
------------------------------
Date: Thu, 04 Nov 1999 20:15:50 GMT
From: karres@southwind.net (Dean Karres)
Subject: Re: length (number of items) of an array
Message-Id: <WPlU3.28186$23.1489064@typ11.nn.bcandid.com>
What if you have an array of arrays?
use strict;
my($i) = 0;
my(@a) = ( [1,2,3,4],
[2,3,4],
[3,4],
[4],
[] );
print STDOUT "$#a\n";
This produces "4" as I expect it to -- off by one problems aside for
now.
How do I find the length of any sub-array? What if it were a 3 or N
dimensional array?
Dean...K...
--
Dean Karres | http://www2.southwind.net/~karres
karres@southwind.net |
Southwind Internet Access | Programmer / Systems Administrator
Wichita, KS | <Troll 2nd Class /w Clusters>
------------------------------
Date: Thu, 04 Nov 1999 20:38:18 GMT
From: karres@southwind.net (Dean Karres)
Subject: Re: length (number of items) of an array
Message-Id: <_8mU3.28212$23.1493108@typ11.nn.bcandid.com>
In <WPlU3.28186$23.1489064@typ11.nn.bcandid.com> karres@southwind.net (Dean Karres) writes:
>What if you have an array of arrays?
>[...]
>How do I find the length of any sub-array? What if it were a 3 or N
>dimensional array?
Duh! I am answering my own question...
my($i) = 0;
my(@a) = ( [1,2,3,4],
[2,3,4],
[3,4],
[4],
[]);
print STDOUT "$#a\n\n";
for ($i=0; $i<=$#a; $i++)
{
print STDOUT $#{$a[$i]}, "\n";
}
produces:
3
2
1
0
-1
as I wanted.
--
Dean Karres | http://www2.southwind.net/~karres
karres@southwind.net |
Southwind Internet Access | Programmer / Systems Administrator
Wichita, KS | <Troll 2nd Class /w Clusters>
------------------------------
Date: Thu, 04 Nov 1999 20:14:06 GMT
From: Jocelyn Amon <finsol@ts.co.nz>
Subject: Re: localtime object y2k compliant?
Message-Id: <7vspea$9su$1@nnrp1.deja.com>
In article <3821AF26.C3A77C16@mail.uca.edu>,
Cameron Dorey <camerond@mail.uca.edu> wrote:
> Let's see, you sent this somewhere over an hour ago... I'm going to
give
> you an experiment to see if localtime is YMM-compliant (the teaching
> gurus call this "active learning"). You have a nice small script
there.
> Set your computer's clock to, say, Feb 27, 2002. Run the script. Did
it
> work? That experiment took, oh, 45 seconds? Next time, please try
> something like this before you waste an hour of your time, which I
> assume is valuable.
When will you 'experts' and know-it-alls get it. No amount of
patronising put-downs, abuse or be-littling of others is going to change
a thing. Programmers use logic. This programmer has applied logic to
the situation and he, logically, assumes that adding 1900 to the year
value will not give him the correct 4 digit year value after 1999. Seems
very logical to me! So maybe he should have run a test to see. But
that is a failing of many programmers - don't run tests, jump to
conclusions or let users find the bugs.
You can't change programmer thinking but ranting on about 'shoulds'! The
many queries to this newsgroup re localtime is proof of this. Localtime
usage is ill-conceived and will be the cause of a lot of Y2K failures
regardless of all the 'shoulds' you very clever Perl people 'in the
know' like to repeat ad-infinitum. Just give the guy the right answer
or leave it to someone else to respond reasonably.
Sarcasm does not help - you only do it to show how clever you are and
how stupid you consider others to be. If you were in fact clever people
you would be more understanding of this problem and why it keeps
recurring. Get in touch with the real world.
At least this programmer is asking the right questions re Y2K. Many
programmers have not given Y2K a second thought. Unfortunately not
enough questions are asked in our profession because of put-downs by
others. Perhaps it is this attitude more than any other that has been
the cause of the Y2K problem in the first place.
If anyone would like to read further on the Y2K and Perl problem, check
out the booby-trap code article at URL:
http://www.ts.co.nz/~finsol/y2k_articles.htm
The article on programmer denial, also at this URL, may be of interest
to some of you.
Jocelyn Amon
--
http://www.ts.co.nz/~finsol/
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
Date: Thu, 4 Nov 1999 14:17:31 -0500
From: Ala Qumsieh <aqumsieh@matrox.com>
Subject: Re: localtime object y2k compliant?
Message-Id: <x3yiu3irrqs.fsf@tigre.matrox.com>
kenkhouri@my-deja.com writes:
> I am trying to find out if the perl localtime class is y2k compliant. I
Yes. It is. Checkout out perlfaq4:
Does Perl have a year 2000 problem? Is Perl Y2K compliant?
> would like to assume that it is, however, the following code example
> (from O'reilly: Programming Perl) looks questionable.
Why?
> If you know the answer, I would be interested in hearing it and also
> where you might have learned it. Although the O'reilly book
> provides information on the class, it does not specify what
> happens after 2000! It's surprising to me that you should add
> 1900 to the year to get a 4 digit year. Thanks!
Why? What part of the localtime() documentation didn't you understand?
In the Camel (Programming Perl), it clearly states in the description
of the localtime() function (p.185 in the 2nd Edition) the following:
<QUOTE>
.. and the year has had 1,900 subtracted from it.
<\QUOTE>
This is what Perl's localtime returns: the current year minus 1900. So
in the year 2000, localtime will return 100. In the year 2001,
localtime will return 101.
No Y2K bugs, unless of course you are not Y2K compliant, and try to do
something like:
print "19$year";
Please read the docs more carefully.
HTH,
--Ala
------------------------------
Date: Thu, 04 Nov 1999 20:31:14 GMT
From: cberry@cinenet.net (Craig Berry)
Subject: Re: Lost in Splitting.......
Message-Id: <s23r8ieg24210@corp.supernews.com>
Matt King (mattking@techie.com) wrote:
: I have a question that will sound real basic for you pro's. I'm trying to
: read in a files contence and display it in a table. First off the script
: needs to creat the table 'headder' based on the first line of the plain text
: file. The first line looks like this:
: ITEM 1/1 ITEM 2/2 DESCRIPTION
: This is not tab delmitated and the file has some 60000 lines in it so
: changing the format would be just to much work. I'm trying to read in and
: split the above like this:
Note that you aren't in fact 'splitting' -- split is a perl function, so
using this terminology is a bit confusing.
: ($item1,$item2,$item3) = ($line =~ m{
: \s*
: (\S*(\s*)\S*)\s*
: (\S*(\s*)\S*)\s*
: (.*)\s*}x);
All those *-quantified matches are a sure source of problems; remember, a
* can match zero instances. Also note that all the parenthesized
expressions inside the match generate items which will be assigned on the
left, including the (\s*) ones. The order obtained is the order of left
parens encountered.
Here's how I'd write it:
($item1, $item2, $item3) = m{
\s* # Skip initial whitespace
(\S+\s+\S+) # Item 1
\s+
(\S+\s+\S+) # Item 2
\s+
(.*?) # Item 3
\s*$ # Skip trailing whitespace
}x;
--
| Craig Berry - cberry@cinenet.net
--*-- http://www.cinenet.net/users/cberry/home.html
| "They do not preach that their God will rouse them
a little before the nuts work loose." - Kipling
------------------------------
Date: Thu, 4 Nov 1999 14:54:31 +0800
From: "Mantat" <mantat@cc.nthu.edu.tw>
Subject: mod_php and mod_perl problems....
Message-Id: <7vrb4j$e2n$1@thccy25.nthu.edu.tw>
Can i set mod_php and mod_perl together into a single apache server??
should i install them in any order?
I installed php first, and it worked ! check from the apache logs,
there is a line indicated the php have been loaded.
[notice] Apache/1.3.9 (Unix) PHP/3.0.12 configured -- resuming normal
operations
then i installed mod_perl, mod_perl worked, but I can't use php anymore,
check from the logs after restarting apache server,
[notice] Apache/1.3.9 (Unix) mod_perl/1.21 configured --resuming normal
operations
where PHP gone? What I am doing wrong? Can anyone teach me how to set both
of
them ??
------------------------------
Date: Thu, 04 Nov 1999 16:10:49 -0400
From: brian@pm.org (brian d foy)
Subject: Re: mod_php and mod_perl problems....
Message-Id: <brian-0411991610490001@61.0/26.185.84.166.in-addr.arpa>
In article <7vrb4j$e2n$1@thccy25.nthu.edu.tw>, "Mantat"
<mantat@cc.nthu.edu.tw> wrote:
> Can i set mod_php and mod_perl together into a single apache server??
> should i install them in any order?
>
> I installed php first, and it worked ! check from the apache logs,
> there is a line indicated the php have been loaded.
> [notice] Apache/1.3.9 (Unix) PHP/3.0.12 configured -- resuming normal
> operations
>
> then i installed mod_perl, mod_perl worked, but I can't use php anymore,
> check from the logs after restarting apache server,
> [notice] Apache/1.3.9 (Unix) mod_perl/1.21 configured --resuming normal
> operations
>
> where PHP gone? What I am doing wrong? Can anyone teach me how to set both
> of
> them ??
do you mean that your PHP pages no longer work, or just that you don't
see the "PHP" in the message anymore?
------------------------------
Date: 16 Sep 99 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 16 Sep 99)
Message-Id: <null>
Administrivia:
The Perl-Users Digest is a retransmission of the USENET newsgroup
comp.lang.perl.misc. For subscription or unsubscription requests, send
the single line:
subscribe perl-users
or:
unsubscribe perl-users
to almanac@ruby.oce.orst.edu.
| NOTE: The mail to news gateway, and thus the ability to submit articles
| through this service to the newsgroup, has been removed. I do not have
| time to individually vet each article to make sure that someone isn't
| abusing the service, and I no longer have any desire to waste my time
| dealing with the campus admins when some fool complains to them about an
| article that has come through the gateway instead of complaining
| to the source.
To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.
To request back copies (available for a week or so), send your request
to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
where x is the volume number and y is the issue number.
For other requests pertaining to the digest, send mail to
perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
sending perl questions to the -request address, I don't have time to
answer them even if I did know the answer.
------------------------------
End of Perl-Users Digest V9 Issue 1282
**************************************