Re: How to build a mulit template website

2006-11-27 Thread __cliff rayman__
another i have at the new year.How to make such and change by changing a parameter in the database, i have seen such things in php but i want to know how to do this in embperl. If you are basically trying to differentiate your sites by having different _design_ but the same _functionality_, maybe

Re: How to build a mulit template website

2006-11-27 Thread Gunnar Wolf
r i have at the new year.How to make such and change by changing a > parameter in the database, i have seen such things in php but i want to know > how to do this in embperl. If you are basically trying to differentiate your sites by having different _design_ but the same _functionality_, m

Re: How to build a mulit template website

2006-11-25 Thread abhishek jain
-- 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

How to build a mulit template website

2006-11-24 Thread abhishek jain
the procesing with the html pages. 2)Also i need to read tutorials on embperl can anyone point to me on that. I am a newbie to embperl i have read tutorials on httpd.org and perl.com. I would appreicate if there is a tutorial also on installing the embperl 2.x . 3)Also how to bring a processing page

Re: OT: How to use PerlSetVar in section?

2006-02-25 Thread RobertCZ
[ AIMScriptDir => "/home/www/_cms/doc/$vhost/img/aim" ], [ AIMCacheDir => "/tmp/aimcache/$vhost" ], [ AIMCache => "Off" ],

OT: How to use PerlSetVar in section?

2006-02-25 Thread RobertCZ
sorry for off-topic: how to move the following conf from plain text to section? specifically, what is PerlSetVar equivalent in section? PerlFixupHandler Apache::ImageMagick PerlOptions +GlobalRequest PerlSetVar AIMScriptDir

RE: How to

2006-02-19 Thread Gerald Richter
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

Re: How to

2006-02-18 Thread RobertCZ
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

RE: How to

2006-02-18 Thread Gerald Richter
> > 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

Re: How to

2006-02-17 Thread Brian Barto
> 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

How to

2006-02-17 Thread Brian Barto
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 "/embperl/aboutme/

Re: How to troubleshoot session handling?

2005-04-20 Thread ___cliff rayman___
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

Re: How to troubleshoot session handling?

2005-04-20 Thread allen haim
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

Re: How to troubleshoot session handling?

2005-04-20 Thread ___cliff rayman___
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

Re: How to troubleshoot session handling?

2005-04-20 Thread allen haim
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

Re: How to troubleshoot session handling?

2005-04-18 Thread allen haim
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

Re: How to troubleshoot session handling?

2005-04-18 Thread ___cliff rayman___
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

How to troubleshoot session handling?

2005-04-18 Thread allen haim
Hi Gerard and friends, How do I troubleshoot problems with session handling? Simply put, putting values in %udat doesn't work any more. 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. I'm using Apache::SessionX with n

RE: How to start a new session without removing old one?

2004-12-08 Thread Gerald Richter
> > 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? >

How to start a new session without removing old one?

2004-12-02 Thread RobertCZ
Hi, 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? And one mor

Re: How to flush output buffers?

2004-04-22 Thread Michael Stepanov
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

Re: How to flush output buffers?

2004-04-20 Thread Gerald Richter
le those functions don't return result. > Than, I'd like to redirect user to the result page. > > I've tried to do that using mod_perl handler but problem > that Embperl handler doesn't work. > > Also, I'd like to know how to flush buffers in the Embperl. >

How to flush output buffers?

2004-04-19 Thread Michael Stepanov
return result. Than, I'd like to redirect user to the result page. I've tried to do that using mod_perl handler but problem that Embperl handler doesn't work. Also, I'd like to know how to flush buffers in the Embperl. I've tried to use [- $| = 1; -] but it doesn't work.

Re: DBIx::Recordset : how to make 0.25 the most recent version?

2004-01-12 Thread Andreas J Koenig
> On Thu, 08 Jan 2004 05:59:51 -0500, Terrence Brannon <[EMAIL PROTECTED]> said: > 1- I uploaded version 0.25 of DBIx::Recordset to supercede to 0.24 > release as I am the new maintainer > 2 - CPAN.pm showed 0.24 as the new release so I asked Gerald to edit > the metadata on PAUSE for

DBIx::Recordset : how to make 0.25 the most recent version?

2004-01-08 Thread Terrence Brannon
1- I uploaded version 0.25 of DBIx::Recordset to supercede to 0.24 release as I am the new maintainer 2 - CPAN.pm showed 0.24 as the new release so I asked Gerald to edit the metadata on PAUSE for DBIx::Recordset, to turn it over to me 3 - even after the metadata change, the most recent version

Re: How to make %udat and %fdat available in Perl package?

2003-07-10 Thread Gerald Richter
> > 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

How to make %udat and %fdat available in Perl package?

2003-07-05 Thread Hoenie Luk
Hi all, 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

Re: How to write a link?

2003-02-12 Thread Luiz Fernando B. Ribeiro
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

Re: How to write links using Embperl?

2003-02-12 Thread Gerald Richter
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/

How to write links using Embperl?

2003-02-12 Thread David, Patrick
Hi I've developed an application using apache server release 1.3.26, mod_perl 1.27_01-dev and HTML-Embperl release 1.3.4. My application connects to an Oracle 8i database. To go from one page to another page I use the tag. I would like to know if there is a better way to write HTML links with Em

How to write a link?

2003-02-12 Thread David, Patrick
Hi I've developed an application using apache server release 1.3.26, mod_perl 1.27_01-dev and HTML-Embperl release 1.3.4. My application connects to an Oracle 8i database. To go from one page to another page I use the tag. I would like to know if there is a better way to write HTML links with Em

Re: how to install Embperl with Apache2

2003-02-03 Thread Peter Pan
<[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

Re: how to install Embperl with Apache2

2003-02-03 Thread Randy Kobes
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

Re: how to install Embperl with Apache2

2003-02-03 Thread Peter Pan
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

Re: how to install Embperl with Apache2

2003-02-03 Thread Randy Kobes
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&#

how to install Embperl with Apache2

2003-02-03 Thread Peter Pan
Hi,   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 required "ApacheCore

Re: How to execute an epl as if url parms were passed?

2003-01-27 Thread Gerald Richter
> 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

Re: How to execute an epl as if url parms were passed?

2003-01-23 Thread Kee Hinckley
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 tha

Re: How to execute an epl as if url parms were passed?

2003-01-23 Thread Cameron McBride
> 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?

Re: How to execute an epl as if url parms were passed?

2003-01-23 Thread Scott Chapman
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

Re: How to execute an epl as if url parms were passed?

2003-01-22 Thread Kee Hinckley
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 >

Re: How to execute an epl as if url parms were passed?

2003-01-22 Thread Scott Chapman
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

Re: How to execute an epl as if url parms were passed?

2003-01-22 Thread Kee Hinckley
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

Re: How to execute an epl as if url parms were passed?

2003-01-22 Thread Scott Chapman
Does anyone know how to do this? Scott On Tuesday 21 January 2003 05:28 pm, Kee Hinckley wrote: > Although I haven't done it, the docs on Execute say you can pass > ffld => [] > fdat => {} > and it will set them up.

Re: How to execute an epl as if url parms were passed?

2003-01-21 Thread Kee Hinckley
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

Re: How to execute an epl as if url parms were passed?

2003-01-21 Thread Carlos Kassab
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

Re: How to execute an epl as if url parms were passed?

2003-01-21 Thread Scott Chapman
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

Re: How to execute an epl as if url parms were passed?

2003-01-21 Thread Carlos Kassab
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

How to execute an epl as if url parms were passed?

2003-01-21 Thread Scott Chapman
How do I execute a epl script and pass it parms like calling a URL: http://host/page.url?key=value How do I pass key and value to an executed script correctly? Thanks! Scott - To unsubscribe, e-mail: [EMAIL PROTECTED] For addit

Re: How to put DBI $sth->fetchrow_hashref results into %fdat?

2002-09-19 Thread Kee Hinckley
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 -

How to put DBI $sth->fetchrow_hashref results into %fdat?

2002-09-19 Thread Scott Chapman
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? Scott - To unsubscr

Re: How to get at constant.epl from outside the web evironment?

2002-06-13 Thread Axel Beckert - ecos gmbh
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

Re: How to get at constant.epl from outside the web evironment?

2002-06-12 Thread Wim Kerkhoff
$req->{website_sequence} = 'ar_num'; > $req->{db_user} = 'username'; > $req->{db_pass} = 'password'; > -] > > 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 ther

Re: How to get at constant.epl from outside the web evironment?

2002-06-12 Thread Gavin Carr
t_table} = 'ar_events'; > $req->{website_sequence} = 'ar_num'; > $req->{db_user} = 'username'; > $req->{db_pass} = 'password'; > -] > > I need to get at those definitions in a perl script outside the www > environment

Re: How to get at constant.epl from outside the web evironment?

2002-06-12 Thread Cameron McBride
t_table} = 'ar_events'; > $req->{website_sequence} = 'ar_num'; > $req->{db_user} = 'username'; > $req->{db_pass} = 'password'; > -] > > I need to get at those definitions in a perl script outside the www > environment

Re: How to get at constant.epl from outside the web evironment?

2002-06-12 Thread Angus Lees
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

Re: How to get at constant.epl from outside the web evironment?

2002-06-12 Thread Tiago Stock
gt;{db_user} = 'username'; $req->{db_pass} = 'password'; -] > 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? #! /usr/bin/perl open(FH, " }; # this wor

How to get at constant.epl from outside the web evironment?

2002-06-12 Thread Scott Chapman
$req->{db_user} = 'username'; $req->{db_pass} = 'password'; -] 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? Scott -

Re: How to get DBIx::RecordSet SQL statements logged?

2002-05-14 Thread Kee Hinckley
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' =>

How to get DBIx::RecordSet SQL statements logged?

2002-05-14 Thread Scott Chapman
How do I get the resulting SQL statement built by DBIx::Recordset to be logged somewhere so I can see it? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Re[2]: How to implement my own ciphering

2002-02-25 Thread Gerald Richter
sed (to make sure you on decrypt it for the right syntax, otherwise you could easily get the source by running it with syntax => 'Text') and 'header' is a constant, that is used to distiguish between encrypted and normal files. > > This is the first problem. Second probl

Re: [OT] How to preserve carriage returns in text area inputs?

2002-02-24 Thread Angus Lees
On Sat, Feb 23, 2002 at 04:42:16PM +0100, Gerald Richter wrote: > > > > If I take the data that is input on the form and on the next page output > it > > again, it shows up as spaces where I pressed Enter. > > > > The cr's are preseverd, but if you output a newline in html text, nothing > happens

Re: [OT] How to preserve carriage returns in text area inputs?

2002-02-23 Thread Gerald Richter
> > If I take the data that is input on the form and on the next page output it > again, it shows up as spaces where I pressed Enter. > The cr's are preseverd, but if you output a newline in html text, nothing happens... So what you really want is to subsitute newlines with before outputing. To

Re: [OT] How to preserve carriage returns in text area inputs?

2002-02-22 Thread Andrew O'Brien
On Sat, Feb 23, 2002 at 03:07:15PM +1100, Andrew O'Brien wrote: > On Fri, Feb 22, 2002 at 06:37:33PM -0800, Scott Chapman wrote: > > I'm finding that my form data is not preserving carriage returns. When a user > > has a text area to fill in that is multiple lines, carriage returns are not >sta

Re: [OT] How to preserve carriage returns in text area inputs?

2002-02-22 Thread Andrew O'Brien
On Fri, Feb 22, 2002 at 06:37:33PM -0800, Scott Chapman wrote: > I'm finding that my form data is not preserving carriage returns. When a user > has a text area to fill in that is multiple lines, carriage returns are not staying > in the $fdat{fieldname}. > > If I take the data that is input o

[OT] How to preserve carriage returns in text area inputs?

2002-02-22 Thread Scott Chapman
I'm finding that my form data is not preserving carriage returns. When a user has a text area to fill in that is multiple lines, carriage returns are not staying in the $fdat{fieldname}. If I take the data that is input on the form and on the next page output it again, it shows up as spaces w

Re: How to implement my own ciphering

2002-02-16 Thread Gerald Richter
> > 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

How to implement my own ciphering

2002-02-14 Thread Lukas Zapletal
Hello all, I need to implement my own cipher.c. What I should change? (Maybe there will be problems with makefiles that will search for SSL libraries that I don`t use...) Regards Lukas Zapletal [[EMAIL PROTECTED]] web programmer Bach systems Ltd., Czech Republic --- PGP FINGER

Re: Recordset: How to make function convert data as it's selected.

2002-02-05 Thread Gerald Richter
> How to make function convert data as it's selected. > Can Recordset be set up to do this? > Yes > I have a data file with timestamps stored as seconds since epoch. I think > !Filter might make it possible to convert the data to MM/DD/ format. > I'm not sure if

Recordset: How to make function convert data as it's selected.

2002-02-05 Thread Scott Chapman
Can Recordset be set up to do this? I have a data file with timestamps stored as seconds since epoch. I think !Filter might make it possible to convert the data to MM/DD/ format. I'm not sure if it can be done or how to do it. The !Filter looks like it will take regular expres

Re: How to do breadcrumbs?

2002-01-13 Thread Angus Lees
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 > > > >

Re: How to do breadcrumbs?

2002-01-11 Thread ___cliff rayman___
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.

Re: How to do breadcrumbs?

2002-01-11 Thread Jochen Topf
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

Re: How to do breadcrumbs?

2002-01-11 Thread Neil Gunton
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

How to do breadcrumbs?

2002-01-11 Thread Jochen Topf
Hi! 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 which returns the short ti

Re: How to use ddd with embperl?

2001-12-13 Thread Gerald Richter
> 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

How to use ddd with embperl?

2001-12-13 Thread Scott Chapman
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? - To unsubscribe, e-mail: [EMAIL PROTECTED] For a

Re: How to send mutiple cookie entries?

2001-05-25 Thread Gerald Richter
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

Re: How to save dynamic HTML output to a file after user reviews it?

2001-05-23 Thread Gavin Carr
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,

Re: How to save dynamic HTML output to a file after user reviews it?

2001-05-23 Thread Gavin Carr
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

How to save dynamic HTML output to a file after user reviews it?

2001-05-23 Thread Scott Chapman
I have a situation where I want Embperl to show a user a HTML document that is dynamically generated and have the user hit a submit button. At that point, I want Embperl to save the HTML document to a file. An alternate method would be to output the HTML to a file at the same time as the bro

RE: How to send mutiple cookie entries?

2001-05-02 Thread Andy Lim
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

Re: How to send mutiple cookie entries?

2001-05-02 Thread Gerald Richter
> > 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

RE: How to send mutiple cookie entries?

2001-05-01 Thread Michael Stevens
> -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, >

How to send mutiple cookie entries?

2001-05-01 Thread Andy Lim
Hello. I am trying to send mutiple cookie entries($cookie1, $cookie2, $cookie3) as you can see from below code. use CGI; my $cookie1 = cookie(-name=>'eid', -value=>$arr[0], -expires=>'1h'); my $cookie2 = cookie(-name=>'uname', -value=>$uname, -expires=>'1h'); my $

Re: How to set the Last-Modified header for Embperl pages

2000-12-10 Thread Gerald Richter
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

How to set the Last-Modified header for Embperl pages

2000-12-03 Thread Roman Maeder
Greetings, Embperl hackers! here's a recipe for setting the "Last-Modified" response header and handling conditional requests with the "If-Modified-Since" request header under mod_perl. The idea is to return a "304 not modified" status code and omit the body in the reply if the page hasn't been m

How to generate nice error pages ?

2000-06-08 Thread Jim Peters
ser-friendly page. Is it possible to do this as things stand in Embperl ? One alternate method that seemed to work was to do a redirect to an error page, putting the message in as a GET parameter. It is messy because I can't see how to URL-encode the message easily, but it seems to work:

Re: How to set EMBPERL_whatever in CGI environment?

2000-05-24 Thread Gerald Richter
> 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

RE: How to set EMBPERL_whatever in CGI environment?

2000-05-24 Thread Gerald Richter
> > 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

Re: How to set EMBPERL_whatever in CGI environment?

2000-05-24 Thread Scott Chapman
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

Re: How to set EMBPERL_whatever in CGI environment?

2000-05-24 Thread Aaron Johnson
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 st

How to set EMBPERL_whatever in CGI environment?

2000-05-24 Thread Scott Chapman
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? -- Scott Chapman Technical Support Specialist Lund Performance Soluti