You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by "Boyd, David" <db...@nisys.com> on 2001/10/30 15:00:30 UTC
Working with
I am working with a select html element and have selected the multiple
attribute. how does embperl handle this? i did a simple test and did not
see the selected data in the fdat hash.
...
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: fdat values disapearing (was:sessions are working now!)
Posted by Gerald Richter <ri...@ecos.de>.
>
> I'll do that replacement in the ppm version tonight ....
>
Thanks
>
> I should have mentioned that - the config is particular to my
> system, and probably will have to be altered for others ...
>
I plan to take a closer look at the session handling in the next time, then
I will try come up with something, that allows to adapt the config by the
enduser
Gerald
-------------------------------------------------------------
Gerald Richter ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting
Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: richter@ecos.de Voice: +49 6133 925131
WWW: http://www.ecos.de Fax: +49 6133 925152
-------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: fdat values disapearing (was:sessions are working now!)
Posted by Randy Kobes <ra...@theoryx5.uwinnipeg.ca>.
On Tue, 13 Nov 2001, Gerald Richter wrote:
> Hi,
> >
> > Well I have installed the embperl ppm Randy made (thanks) and now I get an
> other message:
> >
> > [1376]SES: Embperl Session management enabled (>= 1.50)
> > [Tue Nov 13 14:20:57 2001] [error] Can't locate object method "setidfrom"
> via package "HTML::Embperl::Session" (perhaps you forgot to load
> "HTML::Embperl::Session"?) at C:/Perl/site/lib/HTML/Embperl.pm line 1692.
> >
> > I put this extra line in my httpd.conf:
> >
> > PerlSetEnv EMBPERL_SESSION_HANDLER_CLASS "HTML::Embperl::Session"
> >
> > Any hints?
>
> Oops, I forgot to commit the a newer version of HTML::Embperl::Session to
> the cvs, so Randy included the old one. I append the correct one, search
> under your perl directory the site/lib/HTML/Embperl/Session.pm and replace
> it with the appended file, then it should work.
I'll do that replacement in the ppm version tonight ....
> > I also tried this with the Apache::SessionX ppm. (with and with out that
> extra httpd.conf line)
> >
>
> This normaly should work (without the extra line), but it dpends how Randy
> build the package. Normaly Apache::SessionX creates a config during run of
> Makefile.PL, and Randy can only include his config, which may not work on
> your system. I have to check out this further. (but the first approach
> should work for you)
I should have mentioned that - the config is particular to my
system, and probably will have to be altered for others ...
best regards,
randy
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: fdat values disapearing (was:sessions are working now!)
Posted by Gerald Richter <ri...@ecos.de>.
Hi,
>
> Well I have installed the embperl ppm Randy made (thanks) and now I get an
other message:
>
> [1376]SES: Embperl Session management enabled (>= 1.50)
> [Tue Nov 13 14:20:57 2001] [error] Can't locate object method "setidfrom"
via package "HTML::Embperl::Session" (perhaps you forgot to load
"HTML::Embperl::Session"?) at C:/Perl/site/lib/HTML/Embperl.pm line 1692.
>
> I put this extra line in my httpd.conf:
>
> PerlSetEnv EMBPERL_SESSION_HANDLER_CLASS "HTML::Embperl::Session"
>
> Any hints?
Oops, I forgot to commit the a newer version of HTML::Embperl::Session to
the cvs, so Randy included the old one. I append the correct one, search
under your perl directory the site/lib/HTML/Embperl/Session.pm and replace
it with the appended file, then it should work.
> I also tried this with the Apache::SessionX ppm. (with and with out that
extra httpd.conf line)
>
This normaly should work (without the extra line), but it dpends how Randy
build the package. Normaly Apache::SessionX creates a config during run of
Makefile.PL, and Randy can only include his config, which may not work on
your system. I have to check out this further. (but the first approach
should work for you)
Gerald
-------------------------------------------------------------
Gerald Richter ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting
Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: richter@ecos.de Voice: +49 6133 925131
WWW: http://www.ecos.de Fax: +49 6133 925152
-------------------------------------------------------------
Re: fdat values disapearing (was:sessions are working now!)
Posted by Hans de Groot <ha...@interspective.nl>.
Hi,
Well I have installed the embperl ppm Randy made (thanks) and now I get an other message:
[1376]SES: Embperl Session management enabled (>= 1.50)
[Tue Nov 13 14:20:57 2001] [error] Can't locate object method "setidfrom" via package "HTML::Embperl::Session" (perhaps you forgot to load "HTML::Embperl::Session"?) at C:/Perl/site/lib/HTML/Embperl.pm line 1692.
I put this extra line in my httpd.conf:
PerlSetEnv EMBPERL_SESSION_HANDLER_CLASS "HTML::Embperl::Session"
Any hints?
I also tried this with the Apache::SessionX ppm. (with and with out that extra httpd.conf line)
Oh the packege I installed was called: HTML-Embperl [1.3.4_dev-4] is this the correct one?
it came from: http://theoryx5.uwinnipeg.ca/cgi-bin/ppmserver?urn:/PPMServer:
Regards
Hans de Groot
------
Hans de Groot
Interspective Internet Services B.V.
Tel: +31 (0) 30 6001180
Fax +31 (0) 30 6044204
www: http://www.interspective.nl
email: hansg@interspective.nl
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: fdat values disapearing (was:sessions are working now!)
Posted by Gerald Richter <ri...@ecos.de>.
>
> It'd be no problem to make up a ppm package of Embperl based
> on the cvs version - I'll do that over the weekend ... To avoid
> confusion as to versions, would you recommend, Gerald, replacing
> the current Embperl ppm package I now have with one based on the
> cvs sources (I do that for mod_perl), or should a separate one
> be made up?
>
I think it's better to replace it, because 1.3.3's POST handling is broken
on ActiveState Perl. I just have added a few comments about Apache::SessionX
usage and commited it to the CVS (I have to write more docus, but don't have
the time yet). Please make also a ppm for Apache::SessionX. YOu can get it
from ftp://ftp.dev.ecos.de/pub/perl/session.
Thanks very much
Gerald
-------------------------------------------------------------
Gerald Richter ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting
Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: richter@ecos.de Voice: +49 6133 925131
WWW: http://www.ecos.de Fax: +49 6133 925152
-------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: fdat values disapearing (was:sessions are working now!)
Posted by Randy Kobes <ra...@theoryx5.uwinnipeg.ca>.
On Thu, 1 Nov 2001, Gerald Richter wrote:
> >
> > It seems $fdat stop working after a few requests.. this varys..
> > I use a system like this: http://index.html?id=p34|l2 (id id=page | 34
> language = 2
> > this works works for several hits and than suddenly fdat{id} is empty.
> >
>
> Do you do any other requests inbetween ? May some request that involves a
> POST ? In that case this is a know error on windows. It's a bug in mod_perl
> that doesn't set the enviroment variables correctly. The current CVS version
> of Embperl contains a fix for this, but I guess this isn't available as ppm.
> (maybe Randy is able to create one?). In any case if you use the CVS version
> of Embperl you have either to installed Apache::SessionX (from
> ftp://ftp.dev.ecos.de/pub/perl/session) or set in your httpd.conf
>
> PerlSetEnv EMBPERL_SESSION_HANDLER_CLASS "HTML::Embperl::Session"
>
> Gerald
It'd be no problem to make up a ppm package of Embperl based
on the cvs version - I'll do that over the weekend ... To avoid
confusion as to versions, would you recommend, Gerald, replacing
the current Embperl ppm package I now have with one based on the
cvs sources (I do that for mod_perl), or should a separate one
be made up?
best regards,
randy
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: fdat values disapearing (was:sessions are working now!)
Posted by Gerald Richter <ri...@ecos.de>.
>
> I take it CVS is something complicated?
No, the only thing is that you need a compiler. You can download a snapshot
and just install it just like the normal release. See INSTALL.pod for
detailed instructions how to compile it for ActiveState Perl (You need MS
VC++ 6.0, because ActiveState Perl is compiled with this version). For
getting the CVS version see
http://perl.apache.org/embperl/CVS.pod.1.html#INTRO
>I do remeber I saw Apache::Xsession somewhere with ppm files I am going to
try to find it again.
If your session works now, maybe it's easier not to use Apache::SessionX,
but set EMBPERL_SESSION_HANDLER_CLASS
Gerald
-------------------------------------------------------------
Gerald Richter ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting
Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: richter@ecos.de Voice: +49 6133 925131
WWW: http://www.ecos.de Fax: +49 6133 925152
-------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: fdat values disapearing (was:sessions are working now!)
Posted by Hans de Groot <ha...@interspective.nl>.
Okay I think I better wait and see if Randy can make a ppm file of the latest version.
For now I just leave the "maxrequestsperchild" at 5.. it seems to be working okay.. but very slow..
I take it CVS is something complicated? I do remeber I saw Apache::Xsession somewhere with ppm files I am going to try to find it again.
I am sorry I look so silly but I have no clue what to do on a win32 with all the unix ports.. At least on linux I have some experience but the win32 ports are new to me.. (but those ppm things work great :--)) but I remeber my amiga time and all those ports and there was always something not just right.. but the amiga port of apache did fork the apache clients :-))
Thanks for all the help.
Regards
Hans de Groot.
------
Hans de Groot
Interspective Internet Services B.V.
Tel: +31 (0) 30 6001180
Fax +31 (0) 30 6044204
www: http://www.interspective.nl
email: hansg@interspective.nl
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: fdat values disapearing (was:sessions are working now!)
Posted by Gerald Richter <ri...@ecos.de>.
>
> It seems $fdat stop working after a few requests.. this varys..
> I use a system like this: http://index.html?id=p34|l2 (id id=page | 34
language = 2
> this works works for several hits and than suddenly fdat{id} is empty.
>
Do you do any other requests inbetween ? May some request that involves a
POST ? In that case this is a know error on windows. It's a bug in mod_perl
that doesn't set the enviroment variables correctly. The current CVS version
of Embperl contains a fix for this, but I guess this isn't available as ppm.
(maybe Randy is able to create one?). In any case if you use the CVS version
of Embperl you have either to installed Apache::SessionX (from
ftp://ftp.dev.ecos.de/pub/perl/session) or set in your httpd.conf
PerlSetEnv EMBPERL_SESSION_HANDLER_CLASS "HTML::Embperl::Session"
Gerald
-------------------------------------------------------------
Gerald Richter ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting
Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: richter@ecos.de Voice: +49 6133 925131
WWW: http://www.ecos.de Fax: +49 6133 925152
-------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
sessions are working now!
Posted by Hans de Groot <ha...@interspective.nl>.
Hi,
Sessions are working now. I used:
apache_1.3.22-win32-x86.msi
ActivePerl-5.6.1.629-MSWin32-x86-multi-thread.msi
and installed several pacheges (ie embperl apache session dbi dbd etc...) via ppm
and it is working now
I can see my site and sessions are actually doing what they should do.
but I have a new problem.
It seems $fdat stop working after a few requests.. this varys..
I use a system like this: http://index.html?id=p34|l2 (id id=page | 34 language = 2
this works works for several hits and than suddenly fdat{id} is empty.
anyone any hints why? I must note that this happend with the other installation too but I thought at that time it might have something to do with the sessions.
Regards
Hans de Groot
------
Hans de Groot
Interspective Internet Services B.V.
Tel: +31 (0) 30 6001180
Fax +31 (0) 30 6044204
www: http://www.interspective.nl
email: hansg@interspective.nl
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: Trying to get sessions to work with windows 2000.
Posted by Randy Kobes <ra...@theoryx5.uwinnipeg.ca>.
On Wed, 31 Oct 2001, Hans de Groot wrote:
> but before (first start ppm and then use set repository etc....) I
> could search for session and then said install apache-session it
> failed with that message.. strange this works.. but I am happy :-)
That's great that it works ... I think to set up the repository
within the ppm shell so that it will search and install from
there you have to do, eg,
ppm> set repository blah
http://theoryx5.uwinnipeg.ca/cgi-bin/ppmserver?urn:/PPMServer
ppm> search Session
ppm> install Apache-Session
ppm> set save
the last command being to save this setting so that the next time
the "blah" repository is also used (in addition to ActiveState's).
best regards,
randy
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: Trying to get sessions to work with windows 2000.
Posted by Hans de Groot <ha...@interspective.nl>.
Hi,
I tied what you said and gues what.. it worked!! do not ask me why coz tonight is the first time I use ppm..
I did this: ppm install http://theoryx5.uwinnipeg.ca/ppmpackages/Apache-Session.ppd
and it's installed now.
but before (first start ppm and then use set repository etc....) I could search for session and then said install apache-session it failed with that message.. strange this works.. but I am happy :-)
Thanks very much..
Hans de Groot
------
Hans de Groot
Interspective Internet Services B.V.
Tel: +31 (0) 30 6001180
Fax +31 (0) 30 6044204
www: http://www.interspective.nl
email: hansg@interspective.nl
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: Trying to get sessions to work with windows 2000.
Posted by Randy Kobes <ra...@theoryx5.uwinnipeg.ca>.
On Wed, 31 Oct 2001, Hans de Groot wrote:
> Hi and thanks for the tip.
>
> I re installed active state perl and installed some packages (embperl 1.3.3)
> now I wanted to install apache session 1.53 from the url you gave me and
> I got this message:
>
> Packages available from http://theoryx5.uwinnipeg.ca/ppmpackages/:
> Apache-Session [1.53] A persistence framework for session data
> Packages available from
> http://ppm.ActiveState.com/cgibin/PPM/ppmserver.pl?urn:/
> PPMServer:
> Apache-Session-Counted [1.113] Session management via a File::CounterFile
> IPC-Session [0.03 ] remote shell persistent session object;
> encapsulates
> Simran-DB-Session [1.2 ] Database Session
> PPM> install apache-session
> Install package 'apache-session?' (y/N): y
> Installing package 'apache-session'...
> Error installing package 'apache-session': Read a PPD for 'apache-session',
> but it is not intended for this build of Perl (MSWin32-x86-multi-thread)
That's strange, as it worked for you before in installing
other packages. Does installing directly as
ppm install http://theoryx5.uwinnipeg.ca/ppmpackages/Apache-Session.ppd
work? I'll rebuild the package again tonight (there's a new
version anyway), to see if that helps.
best regards,
randy
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: Trying to get sessions to work with windows 2000.
Posted by Hans de Groot <ha...@interspective.nl>.
Hi and thanks for the tip.
I re installed active state perl and installed some packages (embperl 1.3.3)
now I wanted to install apache session 1.53 from the url you gave me and I got this message:
Packages available from http://theoryx5.uwinnipeg.ca/ppmpackages/:
Apache-Session [1.53] A persistence framework for session data
Packages available from http://ppm.ActiveState.com/cgibin/PPM/ppmserver.pl?urn:/
PPMServer:
Apache-Session-Counted [1.113] Session management via a File::CounterFile
IPC-Session [0.03 ] remote shell persistent session object;
encapsulates
Simran-DB-Session [1.2 ] Database Session
PPM> install apache-session
Install package 'apache-session?' (y/N): y
Installing package 'apache-session'...
Error installing package 'apache-session': Read a PPD for 'apache-session', but
it is not intended for this build of Perl (MSWin32-x86-multi-thread)
Do I need an older verson of atperl? or what is wrong.. coz I really need the sessions to work. help!
and thx.:-)
hans de groot
------
Hans de Groot
Interspective Internet Services B.V.
Tel: +31 (0) 30 6001180
Fax +31 (0) 30 6044204
www: http://www.interspective.nl
email: hansg@interspective.nl
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: Trying to get sessions to work with windows 2000.
Posted by Randy Kobes <ra...@theoryx5.uwinnipeg.ca>.
On Wed, 31 Oct 2001, Hans de Groot wrote:
> >Gerald
> >
> >P.S. Do you see any error message in your Apache error log ?
>
> Hi wel I have been tring a lot.. I moved apache to
> c:\apach instead ofthe long program files\apach group path.
> but it does not matter either.. it seems the old perl zip (v6) has
> les support for thing so I need to stick with the v7 .
>
> The only error I get from apache is this one:
>
> [860]SES: Embperl Session management enabled (>= 1.50)
> [Wed Oct 31 16:05:51 2001] [error] Can't call method "getid" on
> an undefined value at C:/Perl/site/lib/HTML/Embperl.pm line 1691.
>
> And I get this the second time I load a page after I restart apache.
>
> Before I said I used active state perl.. but now I am not sure coz
> the readme of the perl-win32-bin-0.7 told me to copy al perl files to
> c/perl and this probably replaced the active state perls version..
> I do not know what perl is included in the perl-win32-bin-0.7 zip.
It's probably better not to mix the perl-win32-bin-0.7 Perl with
ActivePerl - although in principle they are binary compatible
(both are built using the same compile-time flags with VC++ 6,
based on perl-5.6.1), it may get confused with different modules
coming from different distributions.
If you want to stick with ActivePerl, start afresh, and get the various
packages you need from either ActiveState's ppm repository or, for
mod_perl, Embperl, etc, from http://theoryx5.uwinnipeg.ca/ppmpackages/.
The current mod_perl ppm package is based on Apache_1.3.22, a binary
version of which is available from http://www.apache.org.
best regards,
randy kobes
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: Trying to get sessions to work with windows 2000.
Posted by Hans de Groot <ha...@interspective.nl>.
>Gerald
>
>P.S. Do you see any error message in your Apache error log ?
Hi wel I have been tring a lot.. I moved apache to c:\apach instead ofthe long program files\apach group path.
but it does not matter either.. it seems the old perl zip (v6) has les support for thing so I need to stick with the v7 .
The only error I get from apache is this one:
[860]SES: Embperl Session management enabled (>= 1.50)
[Wed Oct 31 16:05:51 2001] [error] Can't call method "getid" on an undefined value at C:/Perl/site/lib/HTML/Embperl.pm line 1691.
And I get this the second time I load a page after I restart apache.
Before I said I used active state perl.. but now I am not sure coz the readme of the perl-win32-bin-0.7 told me to copy al perl files to c/perl and this probably replaced the active state perls version.. I do not know what perl is included in the perl-win32-bin-0.7 zip.
Anyway if I look at that file Embperl.pm the error is here
if ($HTML::Embperl::SessionMgnt == 1)
{
if (!$udat -> {ID})
{
$udat -> {ID} = $sessid ;
$udat -> {DIRTY} = 0 ;
}
if ($Inputfile && !$mdat -> {ID})
{
$mdat -> {ID} = substr(MD5 -> hexhash ($Inputfile), 0, &Apache::Session::ID_LENGTH );
$mdat -> {DIRTY} = 0 ;
}
}
else
{
$udat -> setid ($sessid) if (!$udat -> getid) ;
$mdat -> setid (substr(MD5 -> hexhash ($Inputfile), 0, $mdat -> {args} -> {IDLength} || $HTML::Embperl::DefaultIDLength)) if ($Inputfile && !$mdat -> getid)
}
I really have no clue what to try anymore.. so I show you my conf entry:
SetEnv EMBPERL_DEBUG 1
PerlSetEnv EMBPERL_COOKIE_PATH /
SetEnv EMBPERL_OPTIONS 16
SetEnv EMBPERL_ESCMODE 0
PerlSetEnv EMBPERL_SESSION_CLASSES "File Null"
PerlSetEnv EMBPERL_SESSION_ARGS "Directory=/tmp"
PerlModule MD5
PerlModule CGI
<Files *.html>
SetHandler perl-script
PerlHandler HTML::Embperl
Options ExecCGI
</files>
The PerlModule CGI was added later. but it's the same with or with out. and I saw this some where.
regards
Hans
------
Hans de Groot
Interspective Internet Services B.V.
Tel: +31 (0) 30 6001180
Fax +31 (0) 30 6044204
www: http://www.interspective.nl
email: hansg@interspective.nl
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: Trying to get sessions to work with windows 2000.
Posted by Gerald Richter <ri...@ecos.de>.
> Thank for you very quick answer, but a very stupid question,
> Do I just put : PerlModule MD5 anywhere in the httpd.conf, just like that?
if so it does not make any difference
>
In this case it doesn't matter where you put it, because Embperl will not
need it before the whole startup is done.
> would I be wise to find and try and olderversion active state perl?
>
Maybe, I am not sure if this changes anything, but it also be possible to
get it working with 5.6.1
Gerald
P.S. Do you see any error message in your Apache error log ?
-------------------------------------------------------------
Gerald Richter ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting
Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: richter@ecos.de Voice: +49 6133 925131
WWW: http://www.ecos.de Fax: +49 6133 925152
-------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: Trying to get sessions to work with windows 2000.
Posted by Hans de Groot <ha...@interspective.nl>.
Thank for you very quick answer, but a very stupid question,
Do I just put : PerlModule MD5 anywhere in the httpd.conf, just like that? if so it does not make any difference
would I be wise to find and try and olderversion active state perl?
Thanks
Hans de Groot
>Mmmh, this may be related to Perl 5.6.1. There is a problem with MD5,
>because it isn't loaded anymore by the Digest::MD5 which comes with Perl
>5.6.1. Put a
>
>PerlModule MD5
>
>in your httpd.conf, maybe this helps, also I would expect a different error
>message in this case.
>
>Gerald
>
>
>-------------------------------------------------------------
>Gerald Richter ecos electronic communication services gmbh
>Internetconnect * Webserver/-design/-datenbanken * Consulting
>
>Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
>E-Mail: richter@ecos.de Voice: +49 6133 925131
>WWW: http://www.ecos.de Fax: +49 6133 925152
>-------------------------------------------------------------
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
>For additional commands, e-mail: embperl-help@perl.apache.org
------
Hans de Groot
Interspective Internet Services B.V.
Tel: +31 (0) 30 6001180
Fax +31 (0) 30 6044204
www: http://www.interspective.nl
email: hansg@interspective.nl
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: Trying to get sessions to work with windows 2000.
Posted by Gerald Richter <ri...@ecos.de>.
> >> [Tue Oct 30 19:10:06 2001] [error] Can't call method "getid" on an
> >undefined value at C:/Perl/site/lib/HTML/Embperl.pm line 1691.
> >
Mmmh, this may be related to Perl 5.6.1. There is a problem with MD5,
because it isn't loaded anymore by the Digest::MD5 which comes with Perl
5.6.1. Put a
PerlModule MD5
in your httpd.conf, maybe this helps, also I would expect a different error
message in this case.
Gerald
-------------------------------------------------------------
Gerald Richter ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting
Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: richter@ecos.de Voice: +49 6133 925131
WWW: http://www.ecos.de Fax: +49 6133 925152
-------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: Trying to get sessions to work with windows 2000.
Posted by Hans de Groot <ha...@interspective.nl>.
On Wed, 31 Oct 2001 07:04:45 +0100, Gerald Richter wrote:
>I didn't have tried MySQL on Windows, but the following works for me
>
>PerlSetEnv EMBPERL_SESSION_CLASSES "File Null"
>PerlSetEnv EMBPERL_SESSION_ARGS "Directory=/perl/user/komrp/srvroot/logs"
Okay I tried this and it behaves the same. (with /tmp as Directory)
The other weird thing is that after I restart Apache I can request a page once with out problems and the next time it fails with
the Getid error message in the log.
But I do get a session file in the /tmp if I set the $udat on the first try. So sessions are working?
but if I disable sessions embperl works fine.
>> [Tue Oct 30 19:10:06 2001] [error] Can't call method "getid" on an
>undefined value at C:/Perl/site/lib/HTML/Embperl.pm line 1691.
>
>Which versions of Perl, Embperl and Apache::Session do you have installed ?
>The above error message looks like a version mismatch.
I already had activestate perl installed, I downloaded the files that where on the FTP site that www.ecos.de refers to (in the win32 downloads)
if I run perl -v I get this:
This is perl, v5.6.1 built for MSWin32-x86-multi-thread
(with 1 registered patch, see perl -V for more detail)
I have :
apache_1.3.22-win32-x86.msi
perl-win32-bin-0.7.exe
mysql-3.23.43-win.zip
In the modlist if the perl-win32 are all the version numbers but I do not really understand that.
There seem to be many different versions within apache::session. but the apache log opens with:
[948]SES: Embperl Session management enabled (>= 1.50)
I will try to put a relevant selection that's in that list here:
Apache::Session (version 1.53) found in C:/Perl/site/lib
Apache::Session::DB_File (version 1.01) found in C:/Perl/site/lib
Apache::Session::File (version 1.54) found in C:/Perl/site/lib
Apache::Session::Flex (version 1.00) found in C:/Perl/site/lib
Apache::Session::Generate::MD5 (version 2.0) found in C:/Perl/site/lib
Apache::Session::Lock::File (version 1.01) found in C:/Perl/site/lib
Apache::Session::Lock::MySQL (version 1.00) found in C:/Perl/site/lib
Apache::Session::Lock::Null (version 1.01) found in C:/Perl/site/lib
Apache::Session::Lock::Semaphore (version 1.01) found in C:/Perl/site/lib
Apache::Session::MySQL (version 1.01) found in C:/Perl/site/lib
Apache::Session::Serialize::Base64 (version 1.00) found in C:/Perl/site/lib
Apache::Session::Serialize::Storable (version 1.00) found in C:/Perl/site/lib
Apache::Session::Serialize::Sybase (version 1.00) found in C:/Perl/site/lib
Apache::Session::Serialize::UUEncode (version 1.00) found in C:/Perl/site/lib
Apache::Session::Store::DBI (version 1.01) found in C:/Perl/site/lib
Apache::Session::Store::DB_File (version 1.00) found in C:/Perl/site/lib
Apache::Session::Store::File (version 1.01) found in C:/Perl/site/lib
Apache::Session::Store::MySQL (version 1.03) found in C:/Perl/site/lib
HTML::Embperl (version 1.3.2) found in C:/Perl/site/lib
HTML::Embperl::Mail (version 1.3.1) found in C:/Perl/site/lib
HTML::Embperl::Module (version 0.01_dev-1) found in C:/Perl/site/lib
HTML::Embperl::Session (version 1.50) found in C:/Perl/site/lib
HTML::EmbperlObject (version 1.3.1) found in C:/Perl/site/lib
Just for the extra detail the embperl log. (But it does not log after the first request (and the first request goes fine the others fail)
[1332]MEM: Load c:/program files/apache group/apache/htdocs/test.htmll in HTML::Embperl::DOC::_1
[1332]CACHE: New File for 'c:/program files/apache group/apache/htdocs/test.htmll' (a0324c) in 'HTML::Embperl::DOC::_1' hash cache-key 'c:/program files/apache group/apache/htdocs/test.htmll'
[1332]REQ: Embperl 1.3.2 starting... Wed Oct 31 12:34:18 2001
[1332]REQ: No Safe Eval All Opcode allowed mode = mod_perl (3)
[1332]REQ: Package = HTML::Embperl::DOC::_1
[1332]Formdata... length = 0
[1332]Using APACHE for output...
[1332]Reading c:/program files/apache group/apache/htdocs/test.htmll as input using PerlIO ...
[1332]PERF: input = c:\program files\apache group\apache\htdocs\test.htmll
[1332]PERF: Time: 20 ms Evals: 1 Cache Hits: 0 (0%)
[1332]Request finished. Wed Oct 31 12:34:18 2001
. Entry-SVs: 27393 -OBJs: 17 Exit-SVs: 27568 -OBJs: 21
[1332]MEM: Free buffer for c:\program files\apache group\apache\htdocs\test.htmll in HTML::Embperl::DOC::_1
I hope you have some more hints for me..
Thank you
Hans de Groot
------
Hans de Groot
Interspective Internet Services B.V.
Tel: +31 (0) 30 6001180
Fax +31 (0) 30 6044204
www: http://www.interspective.nl
email: hansg@interspective.nl
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Re: Trying to get sessions to work with windows 2000.
Posted by Gerald Richter <ri...@ecos.de>.
> Hi I installed apache and the perl zip and the mysql zip on my win2000.
>
> I have been reading a lot of things about sessions on win32 but none
solves my problem.
>
> I tried to use sessiosn with mysql and as files.. ie:
>
> #PerlSetEnv EMBPERL_SESSION_CLASSES "MySQL Semaphore"
> #PerlSetEnv EMBPERL_SESSION_ARGS "DataSource=dbi:mysql:sessions
UserName=session Password=session"
> #PerlSetEnv EMBPERL_SESSION_CLASSES "File MySQL"
>
> #PerlSetEnv EMBPERL_SESSION_CLASSES "File SysVSemaphoreLocker"
> #PerlSetEnv EMBPERL_SESSION_CLASSES "File File"
> #PerlSetEnv EMBPERL_SESSION_ARGS "Directory=/tmp LockDirectory=/tmp"
>
I didn't have tried MySQL on Windows, but the following works for me
PerlSetEnv EMBPERL_SESSION_CLASSES "File Null"
PerlSetEnv EMBPERL_SESSION_ARGS "Directory=/perl/user/komrp/srvroot/logs"
You don't need a locker on Windows, because mod_perl 1.x is single threaded
on Windows anyway. Also you can't use Sempahore, because it uses SysV
things, which are Unix specific.
Make sure you have theses settings before you load Embperl.
>
> [Tue Oct 30 19:10:06 2001] [error] Can't call method "getid" on an
undefined value at C:/Perl/site/lib/HTML/Embperl.pm line 1691.
>
Which versions of Perl, Embperl and Apache::Session do you have installed ?
The above error message looks like a version mismatch.
Gerald
-------------------------------------------------------------
Gerald Richter ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting
Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: richter@ecos.de Voice: +49 6133 925131
WWW: http://www.ecos.de Fax: +49 6133 925152
-------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
Trying to get sessions to work with windows 2000.
Posted by Hans de Groot <ha...@interspective.nl>.
Hi I installed apache and the perl zip and the mysql zip on my win2000.
I have been reading a lot of things about sessions on win32 but none solves my problem.
I tried to use sessiosn with mysql and as files.. ie:
#PerlSetEnv EMBPERL_SESSION_CLASSES "MySQL Semaphore"
#PerlSetEnv EMBPERL_SESSION_ARGS "DataSource=dbi:mysql:sessions UserName=session Password=session"
#PerlSetEnv EMBPERL_SESSION_CLASSES "File MySQL"
#PerlSetEnv EMBPERL_SESSION_CLASSES "File SysVSemaphoreLocker"
#PerlSetEnv EMBPERL_SESSION_CLASSES "File File"
#PerlSetEnv EMBPERL_SESSION_ARGS "Directory=/tmp LockDirectory=/tmp"
ie.. I tried only one of those at the same time :-)
but I get tjhe messge:
[Tue Oct 30 19:10:06 2001] [error] Can't call method "getid" on an undefined value at C:/Perl/site/lib/HTML/Embperl.pm line 1691.
if I use the mysql way or the file..
Can anyone help me out.. I can;t get mysql to log for me.. like on linux so I do not even know if it connects to mysql for the session part. I do know if I turn sessions of at all my page can connect and read data from my sql. so that part is working.
I have tried differend paths and all.. but no use I keep getting this error.
So what would be best to use files or mysql for sessions and is it at all poassible ot use mysql for this?
HELP (ps any tips on how to get mysql to log on win32 would be very helpfull too)
regards
Hans de Groot
------
Hans de Groot
Interspective Internet Services B.V.
Tel: +31 (0) 30 6001180
Fax +31 (0) 30 6044204
www: http://www.interspective.nl
email: hansg@interspective.nl
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org
RE: Working with
Posted by Peter Mayr <ma...@info.fh-eisenstadt.ac.at>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
hi,
here is the code that worked for me
Subjects is a <select multiple>
[#do we have more than one subject?#]
[$ if ($fdat{subjects}=~m/\t/) $]
[#yes we do have multiple entries#]
[#entries seperated by tab character#]
[-
#splitting multiple subjects
$multiple=1;
@subjects_array=split(/\t/,$fdat{'subjects'});
$index=0;
- -]
[$else$]
[-
$multiple=0;
-]
[$endif$]
this follows the EMB:Perl documentation
at http://perl.apache.org/embperl/Embperl.pod.6.html#_fdat
have a nice day
peter
- -------------------------------------
PGP Public Key may be downloaded at:
http://www.infofreak.at/PeterMayr.asc
- -------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: PGP 7.0.4
iQA/AwUBO96/IFQyF72FK9dGEQIzrwCgvX+9TheZqWobyN9zkwMmj/cCikgAoKdU
7izp7AKD1UHwaIALQFMKPn54
=9uxP
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org