Embperl 2.3 only works with Apache 2.0.x and mod_perl 2.x
Dave Hayes wrote:
Greetings. I'm afraid I'm having a problem getting Embperl
2.3.0 to work with Apache 1.3.37, mod_perl, and perl 5.8.8.
--
Dave Hayes - Consultant - Altadena CA, USA - [EMAIL PROTECTED]
The opinions expressed a
Gerald Richter wrote:
Hi,
We are receiving "ERR 12" open errors from Embperl instead of
"404 Not Found" errors.
Is anyone having the same problem? Does anyone know what is wrong
with our configuration?
The attached patch should solve the problem
Hi
Gerald Richter wrote:
The problem seems directly attributable to a 500
configuration error
occuring with a request that was using the session. These
configuration errors were occuring because of an error in our code
which was causing Storable to fail. It seems like the next
Gerald Richter wrote:
Ok - I've done that. The SES: message always comes from the
parent process so it is not always easy to match the SESSION
data to the child process that is actually performing the request.
The question is, what are you seeing in case of the problem you have. Could
Ok - I've done that. The SES: message always comes from the parent
process so it is not always easy to match the SESSION data to the child
process that is actually performing the request.
I am wondering if my problems may be caused by using the stock threaded
perl even though we are using the old
oops - editing below
___cliff rayman___ wrote:
It seems that when a REDIRECT is requested, apache/mod_perl chooses to
call back into itself, or resuse the same connection. In any case,
when certain redirects occur, the session is not written and the next
connection to use the process now has
It seems that when a REDIRECT is requested, apache/mod_perl chooses to
call back into itself, or resuse the same connection. In any case, when
certain redirects occur, the session is not written and the next
connection to use the process now has the same session id and session
data. It is not y
It seems that when a REDIRECT is requested, apache/mod_perl chooses to
call back into itself, or resuse the same connection. In any case, when
certain redirects occur, the session is not written and the next
connection to use the process now has the same session id and session
data. It is not y
We are receiving "ERR 12" open errors from Embperl instead of "404 Not
Found" errors.
Is anyone having the same problem? Does anyone know what is wrong with
our configuration?
-
Message in browser:
Internal Server Error
The server encountered an internal error or misconfi
Neil Gunton wrote:
This may be a little off the usual topic (bug reports, howto etc) but
I am genuinely curious to know what other list members think about it.
Back in 2000 or so, when I started using apache, mod_perl and Embperl,
it was a really dynamic scene and quite exciting with all the
Derrick Spell wrote:
Here is the snippet of the page that isn't being processed. It
happens to be the only Embperl on the page:
[+ $udat{time} +]
[+ $udat{pathway} +][+ $udat{referrer} +]
Turn on all the Embperl debugging flags to show everything going on.
Request the page, th
allen haim wrote:
Instead of SetEnv I used PerlSetEnv, and for the cookie path I used /tmp.
EMBPERL_COOKIE_PATH is not the "storage" path, you specify that when you
set-up SessionX. EMBPERL_COOKIE_PATH is the website path. So unless
you send things to http://www.netherrealm.net/tmp/hello.htm
allen haim wrote:
OK, I've looked in /tmp, and I see a file with the same name as the
_session_id key in %udat.
Looking in that file, I see some control characters throughout, I see my
data in plain text, (just 'allen' and 'hello') and I see the session id.
ok - so embperl is able to write the
allen haim wrote:
I can see in Mozilla's Cookie Manager that the cookie isn't being set, and I
am also not getting my values back out of %udat.
try at the linux/unix command line:
wget -S http://www.yourdomain.com/page.htm 2>&1 | less
this will show you the server response. You are looking for
Will Schroeder wrote:
snip
The Trying to restore session page:
[- use Apache::Session::MySQL; -]
[- use Apache; -]
[- use DBI; -]
[- $req = shift; -]
[- $r -> GetSession; -]
shouldn't this be?
[- $req->GetSession; -]
you are getting the request into $req then trying to use $r which has
not
hi perrin,
yes, i did read the discussion with interest a few months
back regarding what should be stored in a session and
what in the back end database. customer and order data
is properly stored in a secured back end system. the cart
contains data that i want to keep for 30 days, such
as cart
Gerald Richter wrote:
> > OLD STUFF: redhat 5.2, 2.0.36 kernel, 1.3.6 apache, 1.21 mod_perl,
> > perl 5.005_02, apache session 1.04 and a storable of 0.63, embperl
> 1.2.b10,
> > file system sessions and locking data.
> >
> > NEW STUFF: redhat 5.2, 2.0.36 kernel, 1.3.26 apache, 1.27 mod_perl,
OLD STUFF: redhat 5.2, 2.0.36 kernel, 1.3.6 apache, 1.21 mod_perl,
perl 5.005_02, apache session 1.04 and a storable of 0.63, embperl 1.2.b10,
file system sessions and locking data.
NEW STUFF: redhat 5.2, 2.0.36 kernel, 1.3.26 apache, 1.27 mod_perl,
perl 5.6.1, apache session 1.54, apache sessi
hi gerald,
i can't seem to get either one to accept a credit card payment.
is anyone else having better luck?
cliff
Gerald Richter wrote:
> Upgraded the account [EMAIL PROTECTED] to premium so I can accept Credit
> Cards
> Created a new account [EMAIL PROTECTED], which is free, but doesn't ac
gerald,
set-up a paypal account so we can make our contributions.
we are ready, willing and able to "give back".
cliff
"Lara J. Fabans" wrote:
> How about we just hold a bake sale to send Gerald to San Diego?
> Set up an account on paypal. I'll donate $50 to get it started.
>
> Lara
> ---
good for you!! you deserve some time off.
i think embperl has the best tech support of any
software product, open source or commercial.
definitive answers and bug fixes happen very
quickly.
enjoy the time away.
Gerald Richter wrote:
> I am leaving tomorrow evening (in about 36h) for two weeks
James Ratcliff wrote:
> I am useing the LWP::Simple to retrieve webpages from the net
>
> I am having problems with loading some pages though because the page
> will take forever...
>
> Sometimes it will return with nothing, IE no page found, but sometimes
> it just searches forever.
>
> So, simp
your missing the proper mailing list,
unless i am missing something. ;-)
embperl is all about serving up html pages
with embedded perl code.
try:
comp.lang.perl.moderated
comp.lang.perl.misc
Archana Narla wrote:
> HI,
> I have a perl subroutine that is like
> sub test {
> return ( 1
Jochen Topf wrote:
>
> Thanks for the help, but this is only part of what I need. I don't want
> to print the "real" URL, but a "translated" short version, like for
>
> /pub/papers/index.html
>
> I would print
>
> Home / Publication / Papers
>
> and this can be different for different languages.
Scott Chapman wrote:
> Cliff,
> I have optrawinput turned on (do my editing in ascii editors). I tried escaping
> them anyway (one and then both of them) just for grins and it didn't have any
> affect.
>
> On 20 Dec 2001 at 10:39, ___cliff rayman___ wrote:
&g
Scott Chapman wrote:
> [415]ERR: 24: Error in Perl code: Can't use an undefined value as filehandle
> reference at //htdocs/init.epl line 8.
>
> The code looks like this in my init.epl:
>
> open ($req->{DBUGF}, '>>/tmp/debug.txt') || die ("Can't open debug
> file for writing: $!");
t
hi bill,
escmode has to be set before the block with the
code containing . it cannot be set in the same
block.
cliff
Bill OConnor wrote:
> Gracias,
>
> I've trying to figure this out for about a day.
>
> $escmode = 0; didn't seem to work but \ does.
>
> I must have put the escmode = 0 in the wr
search the embperl archives. i think u will find reference to this error
and the method for fixing it.
Robert wrote:
> Robert wrote:
> >
> > I can't 'make test' Embperl, offline mode tests OK, but the modperl
> > mode fails right on the first test. Modperl itself seems to work OK,
> > bellow
sion of mod_perl and embperl will need
to be patched:
'use URI::URL'
in all places where its objects are created and
it's methods are being called.
hope this helps,
___cliff rayman___ wrote:
> this is not a good fix. i went to build embperl, and got
> the same URI::URL
you're right.
in the original example i stole this from, there were
some function calls and data tests. without them,
this is overly complex .
Angus Lees wrote:
> On Mon, May 14, 2001 at 05:14:31PM -0700, ___cliff rayman___ wrote:
> > if by value order by
if by key order then"
@application_k = sort keys %GSIS::PROD_APPLICATION;
if by value order by key order then:
@application_k =
map {$_->[0]}
sort {$a->[1] <=> $b->[1] || $a->[0] cmp $b->[0]}
map {[$_ , $GSIS::PROD_APPLICATION{$_}]}
keys %GSIS::PROD_A
instead of putting the icon in each directory, try these rewrite rules:
RewriteCond %REQUEST_FILENAME !/my_icons/favicon.ico$
RewriteRule favicon.ico$ /my_icons/favicon.ico
Neil Gunton wrote:
> Just as I'd gotten rid of all those irritating error log entries related
> to favicon.ico (I finally
Joshua Chamas wrote:
> jason n perkins wrote:
> >
> > hash). extract takes the key values of the array (and optionally prepends a
> > user specified prefix to each of the values to avoid clobbering other values
> > in the symbol table), sets each of them up as a variable with that name and
> > se
%fdat=(); # should eliminate all field replacements
delete $fdat{title}; # do not prefill title.
--
___cliff [EMAIL PROTECTED]http://www.genwax.com/
Chris Mayes wrote:
> Hi.
>
> While the auto-prefill for form fields is neat, I'd like to be able to
> disable it, sometimes...
>
> Basically, I ha
they only get to see it and hit submit if their cache has not
expired. i send my form pages as no cache, otherwise it
is hard to maintain state.
1) user selects 4 wigits and submits a page, gets redirected to a cart.
2) changes quantity in cart from 4 to 6, resubmits, everythings cool.
3) instead
except for the pesky BACK button in the browser. they can hit
BACK then repost in the browser.
i increment a VISITED session variable and field. each time the user posts,
i increment the VISITED field, send them a copy and keep a copy in their
session. if they post with a VISITED field which i
Robert wrote:
> Hi,
>
> I need to solve the "lost update problem" (when two users are editing
> the same database record, one's changes are lost when they both save
> it). I'm thinking about putting original version of the record in the
> hidden field (serialied by Storable) and upon saving do
___cliff rayman___ wrote:
> the tied %udat does a shallow check to see if anything
> needs to be stored. i think most of us who use it do something
> like this in code that changes %udat:
> $udat:{TIME}=time;
s/://
>
>
> this guarantees that the shallow check will be succ
the tied %udat does a shallow check to see if anything
needs to be stored. i think most of us who use it do something
like this in code that changes %udat:
$udat:{TIME}=time;
this guarantees that the shallow check will be successful and
that the tied %udat is stored in the session.
you can invo
check out:
http://perl.apache.org/embperl/Embperl.pod.11.html#1_Remove_the_HTML_tags_Now_it_
also, see inline comment below.
--
___cliff [EMAIL PROTECTED]http://www.genwax.com/
Bjoern wrote:
> Hi all,
>
> i want to try the following action in HTML document parsed by EMBPERL
> 1.2.1 :
>
> [-
>
>
Neil Gunton wrote:
> Sorry to bother you again, but I want to make sure that I am reading
> this right. This is the output from the 'free' command:
>
> [root@server /root]# free
>total used free shared buffers cached
> Mem: 516952 503816 13136 599
sounds to be like the EMBPERL_SESSION_ARGS are stored in global variables
that are initialized either at child init time or the first time a request is made for
that child,
and are not reloaded on each execution of the request.
not sure if it is in the docs, but obviously one session store inter
your example and your text do not match! see inline comments.
"goEbusiness.com Mail Lists" wrote:
> If I have more than one VirtualHost setup to use Embperl sessions, randomly the
>session data for one site will be lost, and then a new cookie will be set (proper
>name, etc) but to the OTHER V
this works fine for me. are u sure that your:
PerlSetEnv EMBPERL_COOKIE_NAME mycookiename
is getting applied to all the same scopes as your embperl
handler?
cliff
Michael Smith wrote:
> Dear All, I'm experiencing some weird problems with trying to set
>EMBPERL_COOKIE_NAME to something other
i do not believe this error has anything to do with
the conf file. there is no difference between adding
something to srm.conf as opposed to httpd.conf. there
may be some differences in directives based on the
apache version you are coming from and the one you
are going to.
the problem here is
Gerald Richter wrote:
>
> There is a dreamweaver extentions at http://www.somewhere.com/software/ . I
> don't have tried it, so I don't know what it exactly does.
>
> Cliff, Embperl 2.0, does also allow you to define such a syntax, so that the
> editor can display a sample value.
>
thanks Gera
Eitan Suez wrote:
> hi cliff,
> i understand your concern. my opinion is that this is
> not so much an issue of how you design your dynamic
> web page engine as it is an issue of the visual design
> tools being made smart enough to understand how the
> engine works.
why?
reality is -
Eitan Suez wrote:
> > only problem that i can see is one of design. my designer uses
> dreamweaver.
> > how do u design a visually appealing form when the tag is
> > not going to have any 'rendering' in the design software??
>
> --- snip
>
> my point is this: moving the description of
Eitan Suez wrote:
>
>
> pagex.epl:
> ==
>
>
>
>
>
>
>
>
>
> pagex.conf:
> ===
> myname:
> type=textfield
> size=20
> name=x
> value=person.name
>
only problem that i can see is one of design. my designer uses dreamweaver.
how do u design a visually appealing form when
>
>
> I have an idea that may or may not be useful to you. If the user
> comes to a random page without a valid cookie, you redirect them to
> the front page. After that point, they have a valid cookie, and they
> can access all the other pages. The robots would get redirected once,
> try al
Joe Lauer wrote:
>
> 1.) The most common is that it appears like the session dies or disappears
> because I'll get thrown back to the login page and that only occurs when the
> session doesn't exist. I'll login once again and either the session won't
> be created or it will last for even less th
sion
> problems, the traffic flow on this list typically is in regards to sessions.
>
> -joe
>
> -Original Message-
> From: ___cliff rayman___ [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, November 09, 2000 4:01 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: Em
i've been using embperl with Apache::Session on my site for over a year
with
very few problems. makes more sense to utilize a standard package then
it does
to have a proprietary one, given that it is effective and efficient,
which i
believe it is.
the improvements to Apache::Session benefit embpe
i had a problem similar to this, but it didn't have anything to do
with Apache::Session. just incorrect coding on my part. global variables
in the child retain the old data till overwritten by new data. i had missing
clearing or overwriting a global and of couse it contained the wrong data for
Gerald will give you an authoritative answer, but i'd bet that %udat has been
untied before the cleanup phase begins, and therefore the data is not written to
disk.
i think that the latest version allows you access to the session. if i am correct,
you may have to write the additional session dat
embperl is really not doing anything special, but the [$ $] blocks are not in
the same scope as the [+ +] blocks. use a global variable to capture the values
so it is available in the other blocks.
try:
[$ if @regex=($text =~ /(.*\s)(http\:\/\/\S+)(\s.*)/i) $]
[+ $regex[0] +][+ $regex[1]
where is the @params array in embperl?
i always use %fdat and @ffld in embperl for submitted page parameters.
[EMAIL PROTECTED] wrote:
> I'm seeing some unexpected behavior from the @params array. I have an
> embperl page that expects three parameters either from %fdat or @params.
> The page ha
check out
http://perl.apache.org/embperl/Embperl.pod.2.html#By_calling_HTML_Embperl_Execut
find the package parameter.
i haven't used this so far , but i think u can call it like this:
HTML::Embperl::Execute ({ inputfile => '/path/to/your.html', package =>
__PACKAGE__,});
Andre Landwehr wro
i'll take a late night stab at it.
which random function are u using and where is it getting its randomness? i know some
of them will just block if there is nothiing to produce entropy. perhaps apache is
timing out and that is where the broken pages are coming from.
i am sure the gurus on thi
Jonny Cavell wrote:
> Hi,
>
> Can anybody help with these exciting problems:
>
> 1) When using [$ var $x $y $], these global variables are not visable to any
> Embperl files called via Execute (although %fdat, %udat etc. are).
> Moreover, these Executed files can have non pre-declared global var
___cliff rayman___ wrote:
> instead of redirecting you could call
> Execute({Inputfile => $fdat{ErrorPage}, [@errormessages]}).
make that
Execute({Inputfile => $fdat{ErrorPage}, param=> [@errormessages]})
ErrorPage of course needs to render the data in the params passed to i
instead of redirecting you could call
Execute({Inputfile => $fdat{ErrorPage}, [@errormessages]}).
Kaare Rasmussen wrote:
> Hi
>
> I want to go to another page if some condition arises. I can do this
>
> [- $http_headers_out{'Location'} = "$fdat{Errorpage}" -]
>
> But what if I want to pass a var
brandon wrote:
> i'm not sure that i want to run mod_perl as a DSO...i just want it to work so
> that i can embed perl into my web pages..i tried installing on a different
> system this one being FreeBSD and i'm having a lot of problems getting it to
> build...when it asks you where your apache s
ok - first try the stuff in this part of the guide to make sure you are
really running mod_perl
http://perl.apache.org/guide/install.html#How_can_I_tell_whether_mod_perl_
brandon wrote:
> so i was thinking maybe it was a mod_perl problem
> and i started playing with it
--
___cliff [EMAIL PROTE
root wrote:
> I've been using Embperl wonderfully on a FreeBSD/Apache 1.2.6 platform in
> CGI mode...I've installed it on our server here at work which is RH
> 6.1/Apache 1.3.12/mod_perl and am having some strange behavior...
>
> Try this page:
> http://www.secure-encrypted.net/bowenwhite/orders/
$req_rec is an embperl variable that holds the apache request rec.
so to get a dir_config just do:
$req_rec->dir_config('cnfGWCePath')
--
___cliff [EMAIL PROTECTED]http://www.genwax.com/
Rob Tanner wrote:
> I am new to embperl and have a basic question I can't find an answer to in
> the README.
Eric Knauel wrote:
> Hi,
>
> I have some trouble getting session management to work. I'm using
> Apache Session 1.03, Embperl 1.3b4 with mod_perl on Apache 1.3.12,
> here what I put in the httpd.conf:
>
> SetEnv EMBPERL_DEBUG 2375713
> SetEnv EMBPERL_VIRTLOG /embperl/log
> PerlSetEnv EM
that is a good point.
i use a different directory than /tmp/sessions and it is only writable by
the httpd user which is not a user that has logon privileges.
cliff
"Erich L. Markert" wrote:
> >
> > OR if you just want to use a temp storage area then:
> >
> > BEGIN {
> > $ENV{EMBPERL_SESSION_CLAS
Gerald Richter wrote:
> >
> > > Like Cliff already wrote: How and where have you setup
> > > EMBPERL_SESSION_CLASSES and EMBPERL_SESSION_ARGS ?
> >
> > I used the dist. defaults...but am wondering if I shouldn't specify
> > exactly...
> >
>
> There are _no_ default, because I can't know how your
i tested out your site with lwp-request.
you are not sending a Set-Cookie header - so - no cookies are being sent back to
you.
my site uses embperl session handling and we've never had a problem.
perhaps you need to post some more info re: how you have everything configured.
--
___cliff [EMAIL PR
make that:
it is called $req_rec in embperl. :-))
___cliff rayman___ wrote:
> it is called $req_rec in apache.
> i have used it in production for a long time.
>
> --
> ___cliff [EMAIL PROTECTED]http://www.genwax.com/
>
> martin langhoff wrote:
>
> > answering my
it is called $req_rec in apache.
i have used it in production for a long time.
--
___cliff [EMAIL PROTECTED]http://www.genwax.com/
martin langhoff wrote:
> answering myself,
>
> anything passed with the PerlSetEnv does get into the %ENV hash,
> but
> that was a silly example.
>
>
did u copy these values directly out of your config because u do not show a leading
slash on the LockDirector?. should probably be:
PerlSetEnv EMBPERL_SESSION_ARGS "Directory=/tmp/session/store
LockDirectory=/tmp/session/lock"
--
___cliff [EMAIL PROTECTED]http://www.genwax.com/
[EMAIL PROTE
see the following:
http://perl.apache.org/embperl/Embperl.pod.3.html#EMBPERL_COOKIE_NAME
here is an example from my site:
PerlSetEnv EMBPERL_COOKIE_NAME GWCUID
PerlSetEnv EMBPERL_COOKIE_DOMAIN .genwax.com
PerlSetEnv EMBPERL_COOKIE_PATH /
PerlSetEnv EMBPERL_COOKIE_EXPIRES 'Friday, 31-Dec-2010 14:0
WHOOPS
___cliff rayman___ wrote:
> pf wrote:
>
> > Hi All,
> >
> > HTML::EmbperlObject is a really *great* tool. To use it properly, i have
> > some questions :
> >
> >
> > PerlSetEnvEMBPERL_OBJECT_BASE _base.epl
&
pf wrote:
> Hi All,
>
> HTML::EmbperlObject is a really *great* tool. To use it properly, i have
> some questions :
>
>
> PerlSetEnvEMBPERL_OBJECT_BASE _base.epl
> PerlSetEnv EMBPERL_FILESMATCH "\.epl$"
> SetHandlerperl-script
> PerlHandler HTML::EmbperlO
$escmode
that was operating when the block started. changing it from within
the block will have no effect on that block, only subsequent blocks.
so, local $escmode has no effect on any embperl processing.
--
___cliff [EMAIL PROTECTED]
"Martin A. Langhoff" wrote:
> ___cliff ra
Gerald,
if the following makes sense - please add it to the embperl
documentation for $escmode
Turn HTML and URL escaping on and off. The default is on
($escmode = 3).
+ The change in $escmode will take effect on the next call into
embperl. So, for example, to turn
+ off escap
add:
$udat[COUNTER]++;
to your embperl program.
something has to change at the first level of the udat hash for it
to register for storage. i use a counter in mine for that purpose.
you could also use a timestamp or something similar.
___cliff [EMAIL PROTECTED]
Dominique Blas wrote:
Hi,
At the
a stack underflow occurs in embperl when there is a tag mismatch.
verify that before the footer.html is to execute, the html syntax tree
currently has an open.
___cliff rayman___
genwax.com
Wim Kerkhoff wrote:
> Hi all,
>
> I'm getting a Stack Underflow when using
from your own example - don't you need?
$STATES{$STATE_ABBREVIATIONS[$row]}{'name'}
cliff rayman
genwax.com
"Erich L. Markert" wrote:
>
> I attempted to do: $STATES{$STATE_ABBREVIATIONS[$row]} for the list
> display name but it came back empty. Can something like this be done by
> HTMLEmbperl
Gerald Richter wrote:
>
>
> Another possibility would be fixing the old and new syntax:
>
> <%+ $ref->[$row]{$fieldvar} +%>[# EXAMPLE TEXT #]
>
> this is a little bit short and (maybe) easier to read (but has at least four
> characters ([##])
>
this still would not work for my unit of measure e
82 matches
Mail list logo