Gunnar Wolf wrote:
abhishek jain dijo [Sun, Nov 26, 2006 at 01:11:18AM +0530]:
Hi Kolikov,
I think i was not able to explain fully,
1)multi template site for me means like we have one theme for one domain and
other for another domain or lets say one theme on one day eg. christmas and
another
abhishek jain dijo [Sun, Nov 26, 2006 at 01:11:18AM +0530]:
> Hi Kolikov,
> I think i was not able to explain fully,
> 1)multi template site for me means like we have one theme for one domain and
> other for another domain or lets say one theme on one day eg. christmas and
> another i have at the
-- Forwarded message --
From: abhishek jain <[EMAIL PROTECTED]>
Date: Nov 26, 2006 1:10 AM
Subject: Re: How to build a mulit template website
To: kolikov <[EMAIL PROTECTED]>
Hi Kolikov,
I think i was not able to explain fully,
1)multi template site for me means like
Hi,
>
> I use PerlTransHandler to do similar effect but it came from
> pre-2.0 era and I didn't realize I can be done easely
> directly from app init - can you please confirm I understand
> correctly eg request for /somedir/somefile_de.html would get
> changed to something like /cms/de/dir/som
Gerald Richter wrote:
My question is, is there a way I can store the document
requested to a variable in the base.epl file.
Take a look at http://perl.apache.org/embperl/pod/doc/Config.-page-3-.htm,
there is a filename and uri methods.
If you have an
> > My question is, is there a way I can store the document
> requested to a
> > variable in the base.epl file.
Take a look at http://perl.apache.org/embperl/pod/doc/Config.-page-3-.htm,
there is a filename and uri methods.
If you have an application object you can also change the filename in
> Hi all. New to embperl. So far I love it. I have the basics set up and
> working fine. base.epl and inheritence is also working great.
>
> My question is, is there a way I can store the document requested to a
> variable in the base.epl file. So if a user clicks on a link that points
> to "/embpe
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
Hey, what do you know? It works now.
Thank you Cliff.
Instead of SetEnv I used PerlSetEnv, and for the cookie path I used /tmp.
Now the big question: how come I never had to do this before? It used to
work just fine without those variables in the .conf.
Allen
On Wed, Apr 20, 2005 at 03:13:19PM
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
Hi,
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.
Now what?
Allen
On Mon, Apr 18, 2005 at 09:11:45
Thanks for the response, Cliff.
wget -S gives me:
---
1 HTTP/1.1 200 OK
2 Date: Mon, 18 Apr 2005 15:01:31 GMT
3 Server: Embperl/2.0rc2 Apache/2.0.52 (Unix) mod_perl/1.999.21
Perl/v5.8.5
4 Content-Length: 142
5 Keep-Alive: timeout=15, max=100
6 Connection: Keep-Alive
7 Content-Type: te
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
>
> I need to give user a new session but I don't want to
> delete old data for archival purposes - so don't want
> $r->DeleteSession - what's the right way? User don't need to
> remember old session, so I can just make a new session and
> resnd a new cookie, but what is the standard way?
>
Gerald Richter wrote:
Thanks a lot, Gerald.
What I do is to add a which will
refresh the page any n seconds and display a status. Of course in this
case
you need to run your task in background.
The other possbility is to display a text like "Please wait..." and do a
meta refresh at the _end_ o
Hi,
>
> I've been developing a big project using Embperl as
> tool to build web based user interface. So, I have some
> places where called log-running functions.
> I'd like to show to user some helpful message ('Please wait or
> some progress bar') while those functions don't return result.
> Tha
>
> I am using EmbPerl in cgi mode via embpcgi.pl and hiding most of the Perl
> code as subroutines in a .pm package. Is there anyway to configure EmbPerl
> so that %udat and %fdat are always available to the Perl code in my
package
> (without having to always pass \%udat and \%fdat as arguments w
Hi,
Put a ref to the %fdat hash in the link, example:
[-
$args = \%fdat;
-]
http://esorclupg/embperl/dba_database.epl?[+ $args +]">link
Embperl will build all the key=value pairs for you.
I don't know why but inserting directly the \%fdat ref in the link never
worked for me but the above exampl
Hi
>
>
> http://esorclupg/embperl/dba_database.epl?user_name=[+
> $fdat{user_name} +]&password=[+ $fdat{password} +]&admin_cnx=[+
> $fdat{admin_cnx} +]">[+ $elem +]
>
If you are sure the hash (%fdat in this case) contains only the elements you
want to pass, you can write
http://esorclupg/embperl/
<[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, February 03, 2003 9:16 AM
Subject: Re: how to install Embperl with Apache2
> On Mon, 3 Feb 2003, Peter Pan wrote:
>
> > hi Randy,
> >
> > thanks for the reply regarding embperl + apache2 + mod_perl2
installati
On Mon, 3 Feb 2003, Peter Pan wrote:
> hi Randy,
>
> thanks for the reply regarding embperl + apache2 + mod_perl2 installation.
>
> i used embperl on linux years ago. i still remember the pain to
> search everywhere and install all the stuff to complete embperl
> installation. is it possible to
Peter Pan
http://autozine.kyul.net/classic/mercedes.htm
- Original Message -
From: "Randy Kobes" <[EMAIL PROTECTED]>
To: "Peter Pan" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, February 03, 2003 7:15 AM
Subject: Re: how to install Embper
On Sun, 2 Feb 2003, Peter Pan wrote:
> I tried to install Embperl 2.08b on Win/2000 with Apache 2.0
> and ActivePerl-5.8.0.804-MSWin32-x86.msi. I was asked where
> Apache source is and don't know how to answer it, because I
> have entire httpd-2.0.44 source tree but don't know how to make
> requir
> They need to arrive at the $ENV{QUERY_STRING} in order for
> them to be handled correctly by the receiving page, but I'm wondering if
>there's a Embperl way of doing this besides trying to set the environment
>variables manually before calling Execute.
In this case the only thing you can do is
At 12:50 PM -0800 1/23/03, Scott Chapman wrote:
This is not right, Kee. The URL parameters are NOT part of $fdat when you
POST data so passing the URL parameters to the Execute'd page in $fdat is not
right.
I thought the problem was how to pass fdat via an Execute.
If the problem is that the P
> This is not right, Kee. The URL parameters are NOT part of $fdat when you
> POST data so passing the URL parameters to the Execute'd page in $fdat is not
> right.
perhaps this is an ignorant statement (mine that I am about to make),
but why are you trying to use both POST and GET parameters?
On Wednesday 22 January 2003 06:00 pm, Kee Hinckley wrote:
> >Quote from Gerald:
> >>Embperl passes the URL parameters in %fdat. That's what it always did.
> >> Only if you have POST data (from a form) and URL parameters, you only
> >> get the POST data in %fdat
>
> Ah. Right. I've never been abl
At 5:29 PM -0800 1/22/03, Scott Chapman wrote:
On Wednesday 22 January 2003 12:43 pm, you wrote:
At 10:23 AM -0800 1/22/03, Scott Chapman wrote:
>The URL parameters (?key=value) are not passed in to fdat with a form
> POST method. I don't want them to go into fdat when I do an execute
>
On Wednesday 22 January 2003 12:43 pm, you wrote:
> At 10:23 AM -0800 1/22/03, Scott Chapman wrote:
> >The URL parameters (?key=value) are not passed in to fdat with a form
> > POST method. I don't want them to go into fdat when I do an execute
> > either. They need to be passed to execute as
At 10:23 AM -0800 1/22/03, Scott Chapman wrote:
The URL parameters (?key=value) are not passed in to fdat with a form POST
method. I don't want them to go into fdat when I do an execute either. They
need to be passed to execute as key=value parameters just as if the page were
being hit from
The URL parameters (?key=value) are not passed in to fdat with a form POST
method. I don't want them to go into fdat when I do an execute either. They
need to be passed to execute as key=value parameters just as if the page were
being hit from the web with the same parameters.
Does anyo
Although I haven't done it, the docs on Execute say you can pass
ffld => []
fdat => {}
and it will set them up.
--
Kee Hinckley - Somewhere.Com, LLC
Business: http://consulting.somewhere.com/
Writings: http://commons.somewhere.com/buzz/
I'm not sure which upsets me more: that people are so unwi
You can load your files like this and then the variables are in the same
namespace.
Execute ({inputfile => 'config_news.epl', package => __PACKAGE__});
or you can do this:
[-
$eplsiteparams = shift;
$eplsiteparams -> {param1} = "one";
$eplsiteparams -> {param2} = "two";
Execute ('config_news
I want the same effect but I don't want to use redirection. I want to use
execute instead.
Scott
On Tuesday 21 January 2003 02:40 pm, Carlos Kassab wrote:
> Do you mean to redirect to other page, like this?:
>
> [-
> $http_headers_out{Location}="index.epl?module=News;sid=$sid;order=$fdat{ord
>e
Do you mean to redirect to other page, like this?:
[-
$http_headers_out{Location}="index.epl?module=News;sid=$sid;order=$fdat{order}"; -]
CKG
El mar, 21-01-2003 a las 15:50, Scott Chapman escribió:
> How do I execute a epl script and pass it parms like calling a URL:
> http://host/page.url?key
At 9:17 AM -0700 9/19/02, Scott Chapman wrote:
>I'm confused about perl references here. I get a hash reference back from
>fetchrow_hashref and I want to put the hash that is referred to into %fdat so
>it will populate a form correctly. How do I do this?
%fdat = %$hashref;
--
Kee Hinckley -
Hi!
On Wed, Jun 12, 2002 at 10:55:59PM -0700, Wim Kerkhoff wrote:
> My first suggestion would be to look at HTML::Embperl::Execute, and
> see if you can send it a reference to your own request object.
>
> I agree with idea that someone else had though... move the configuration
> into it's own m
Scott Chapman wrote:
> I have a constant.epl file that defines some variables as part of $req:
>
> [-
> $req = shift;
> $req->{website_database} = 'DBI:Sprite:/www/db/Annual_Review';
> $req->{website_event_table} = 'ar_events';
> $req->{website_sequence} = 'ar_num';
> $req->{d
On Wed, Jun 12, 2002 at 02:33:43PM -0700, Scott Chapman wrote:
> I have a constant.epl file that defines some variables as part of $req:
>
> [-
> $req = shift;
> $req->{website_database} = 'DBI:Sprite:/www/db/Annual_Review';
> $req->{website_event_table} = 'ar_events';
> $req->{we
On Wed, Jun 12, 2002 at 02:33:43PM -0700, Scott Chapman wrote:
> I have a constant.epl file that defines some variables as part of $req:
>
> [-
> $req = shift;
> $req->{website_database} = 'DBI:Sprite:/www/db/Annual_Review';
> $req->{website_event_table} = 'ar_events';
> $req->{we
At Wed, 12 Jun 2002 14:33:43 -0700, Scott Chapman wrote:
> I have a constant.epl file that defines some variables as part of $req:
>
[...]
>
> I need to get at those definitions in a perl script outside the www
> environment and I'm not sure how to do it. Is there a easy way to do this?
the "
> I have a constant.epl file that defines some variables [...]
[-
$req = shift;
$req->{website_database} = 'DBI:Sprite:/www/db/Annual_Review';
$req->{website_event_table} = 'ar_events';
$req->{website_sequence} = 'ar_num';
$req->{db_user} = 'username';
$req->{db_pass} = 'p
At 10:53 AM -0700 5/14/02, Scott Chapman wrote:
>How do I get the resulting SQL statement built by DBIx::Recordset to be
>logged somewhere so I can see it?
$DBIx::Recordset::Debug = 2;
or
set Debug when you open the database.
E.g.
new DBIx::Database({
'!DataSource' =>
>
> I need to implement my own cipher.c. What I should change?
>
Which cipher.c? Can you please explain a little bit more what you like to
do?
Gerald
-
Gerald Richterecos electronic communication services gmbh
Internetconnect * We
On Fri, Jan 11, 2002 at 03:14:40PM -0800, ___cliff rayman___ wrote:
> 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
> >
> >
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.
On Fri, Jan 11, 2002 at 11:28:53AM -0500, Neil Gunton wrote:
> Jochen Topf wrote:
> > I am trying to put a breadcrumbs navigation line on an Embperl web site.
> > Something like this: 'Home / Publications / Papers / UNIX', with a link
> > behind every word but the last one, which describes the cur
Jochen Topf wrote:
> I am trying to put a breadcrumbs navigation line on an Embperl web site.
> Something like this: 'Home / Publications / Papers / UNIX', with a link
> behind every word but the last one, which describes the current page.
>
> The idea was to have a Perl function in every page wh
> I've heard that a useful tool for debugging perl cgi scripts is to run
> them through ddd on a XWindows machine when the user calls the
> web page.
>
> Is this possible with Embperl?
>
Yes, 2.0 supports debugging your page with the perl debugger. In offline
mode you can use the Perl debugger wi
Hi,
>
> I tried sending multiple cookies as you said before with Embperl V1.3.2.
> But it didn't work.
> Did you forgot to add this feature to v1.3.2? or am I doing something
wrong?
>
>
The feature is in 1.3.2 (you can always look at Changes.pod to see have been
added) and make test tests it, so
On Thu, May 24, 2001 at 11:12:24AM +1000, Gavin Carr wrote:
> [- Execute({ inputfile => 'dynamic.ehtml', output => $output,
> param => [ 'R' ] }); -]
Whoops, output should be a reference:
[- Execute({ inputfile => 'dynamic.ehtml', output => \$output,
param => [ 'R' ] }); -]
Cheers,
Hi Scott,
If it's an embperl page that's producing your dynamic output, one method
would be something like this:
dynamic.ehtml - dynamic page
review.ehtml - review page
--dynamic.ehtml:
[- $review = shift @param -]
[$ if ($review ne 'R') $][$ endif $]
[# Body content goes here. #]
[$ if
That is a good news. Thanks Gerald.
Andrew
-Original Message-
From: Gerald Richter [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 02, 2001 5:31 AM
To: [EMAIL PROTECTED]
Cc: Andy Lim
Subject: Re: How to send mutiple cookie entries?
>
> I found the only way to send the same
>
> I found the only way to send the same header multiple times
> was to do something like this:
>
> $req_rec->headers_out->add('Set_Cookie' => $cookie);
>
> which can be called multiple times and will hopefully do
> what you want.
>
That's true. I have a patch here, which will go into 1.3.2 whic
> -Original Message-
> From: Andy Lim [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 01, 2001 5:10 PM
> To: [EMAIL PROTECTED]
> Subject: How to send mutiple cookie entries?
>
>
>
> Hello. I am trying to send mutiple cookie entries($cookie1, $cookie2,
> $cookie3) as you can see from bel
Thanks Roman for your description. I have two annotations:
> If you have a simple Embperl page, the following code near the top of
> the page (after setting any headers, but before generating any HTML
output)
> will handle conditional requests
>
> [- # set modification date and handle conditional
> Thanks for the answers. Is there a way to set up virtual log under
> the CGI environment? I can't set up a place like this in httpd.conf:
>
>
> SetHandler perl-script
> PerlHandler HTML::Embperl
> Options ExecCGI
>
>
> Any clues? :-)
>
I didn't tried it, but I think
>
> I think I can set them during the script. The question (I should have
> been more clear) is do they have to be set prior to running the
> script, as they are when set via SetEnv?
>
If you want to set them via the %ENV hash, you must place them at the top of
embpcgi.pl.
But SetEnv with Apach
Thanks for the reply,
I think I can set them during the script. The question (I should have
been more clear) is do they have to be set prior to running the
script, as they are when set via SetEnv?
As for speed, I haven't had the chance to compare the two methods
and the subjective speed of
Scott Chapman wrote:
> I am using the old Apache 1.2.6 and it apparently doesn't recognize
> SetEnv so I don't know how to change the environment variables in
> my scripts (which are running as CGI, not EmbPerl). Is there a way
> to do this?
>
Someone please step in if I am leading him astray
60 matches
Mail list logo