On further inspection it occured to me that this was probably
because I hadn't added a content-type for .pup :) Sorry
if you wasted time reading the first message, at least it's
in the archives for others with turned-off-brains in the future.
AddType text/html .epl
AddType text/html .p
To clarify, other pages send a header with Content Type
text/html; the .pup pages I'm describing are sent with
type text/plain.
Nate
On Thu, Sep 12, 2002 at 02:10:38PM -0400, Nate Smith wrote:
>
> Hi,
> I saw your post :
>
> http://www.ecos.de/~mailarc/embperl/2001-07/msg00024.html
>
>
Hi,
the problem I see from your source is the following code
[-
$req = shift;
Execute ("main/index.html");
-]
This just inserts the content of main/index.html at the place you call
Execute. Execute will always only include the file you call. For the result
you want, you need a new http reque
Hi Gerald,
On Wed, May 22, 2002 at 03:13:28PM +0200, Gerald Richter - ecos gmbh wrote:
> Look it a bug in the path searching logic. Goto Embperl.pm, line 617, which
> is
>
> $skip += $pathndx if ($skip) ;
>
> insert
>
> $pathndx = 0 if (!$skip) ;
>
> directly below this line.
>
> Does this f
>
> In cts/htdocs:
>
> requested page: empty.html
> failing header object: header.epl (Execute '../header.epl')
>
> In cts/htdocs/base:
>
> base template: base.epl
> content object: content.epl
> base header object: header.epl
> other formatting objects: style.epl, footer.epl
>
Look i
Hi Gerald,
On Tue, May 21, 2002 at 08:04:44PM +0200, Gerald Richter wrote:
> So your original usage of .. was correct. Basicly what you are doing seems
> to be ok, but I see that it doesn't work.
>
> Where is your base template located? Where is the page you are actually
> requesting located? Ca
>
> Sorry, confusing use of terms. By 'parent' I wasn't meaning a filesystem
> parent directory.
>
So your original usage of .. was correct. Basicly what you are doing seems
to be ok, but I see that it doesn't work.
Where is your base template located? Where is the page you are actually
requesti
On Fri, May 17, 2002 at 10:06:37PM +0200, Gerald Richter wrote:
> > Question - does
> >
> > Execute('../init.epl')
> >
> > search EMBPERL_OBJECT_ADDPATH directories in addition to direct parent
> > directories?
>
> Yes
Okay good, but this is not working for me. See below.
> > I think it shoul
> Question - does
>
> Execute('../init.epl')
>
> search EMBPERL_OBJECT_ADDPATH directories in addition to direct parent
> directories?
Yes
> I think it should, but it's not finding my parent init.epl in
> an ADDPATH directory. It finds the parent fine if I move the child
> init.epl out of th
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Monday 14 January 2002 11:55, Gerald Richter wrote:
> > 4 $VAR1 = bless( { 'webmaster' => 'John Smith' },
>
> 'HTML::Embperl::DOC::_2' );
>
> Looks like there is a Data::Dumper output that is printed to STDOUT instead
> of OUT, because the Data::Du
>
> 4 $VAR1 = bless( { 'webmaster' => 'John Smith' },
'HTML::Embperl::DOC::_2' );
Looks like there is a Data::Dumper output that is printed to STDOUT instead
of OUT, because the Data::Dumper output comes before the headers, the
browser can't interpret the headers.
Do you have inserted a "print D
Sorry to have taken your time on this one! I just assumed Randy was
following the examples in the docs and didn't double check. You know what
assumptions make you
Scott
On 11 Jan 2002 at 6:04, Gerald Richter wrote:
> > I'm getting a 404 error when I call and EmbperlObject page.
> ...
>
> I'm getting a 404 error when I call and EmbperlObject page.
...
> >PerlSetEnv EMBPERL_OBJECT_BASE base.html
...
> base.epl is in c:\apache\embperl:
Above you have configured base.html and the file is named base.epl.
Unfortunately Embperl isn't smart enough to correct your typo ;-)
Gerald
Thanks Randy,
I'm getting the following in the dos window when I start Apache (It doesn't
crash yet, however):
> [Thu Jan 10 14:32:13 2002] [warn] Loaded DSO modules\mod_perl.so uses
> plain Apac he 1.3 API, this module might crash under EAPI! (please
> recompile it with -DEAPI ) Apache/1.3.20 (
On Thu, 10 Jan 2002, Scott Chapman wrote:
> I'm getting a 404 error when I call and EmbperlObject page.
> I'm running Apache under WinNT4 SP6.
> Just got it installed from theoryx5.uwinnipeg.ca, including 2.0b5 and
> SessionX.
>
> Here's the error in error.log:
>
> > [162]SES: Embperl Session ma
> > Looks like you have Apache::SessionX installed, but not configured
properbly?
>
> Doh! Yup, that's what it is. Just me being brain dead at midnight :-(
> Maybe its possible to put something in the error log if the session
> isn't accessible?
>
I have tried to improve session handling and erro
Gerald Richter wrote:
>
> >
> > Ok, I have received Embperl-2.0b5_dev-1 from you. With it, I still get
> > the error above. Here is some more detailed information, if it helps:
> >
>
> These info doesn't look very nice, also I can't reproduce any of there here.
>
> I have just uploaded 2.0b5, p
>
> Ok, I have received Embperl-2.0b5_dev-1 from you. With it, I still get
> the error above. Here is some more detailed information, if it helps:
>
These info doesn't look very nice, also I can't reproduce any of there here.
I have just uploaded 2.0b5, please try this, also I don't expect any c
Gerald Richter wrote:
>
> >
> > [8762]ERR: 24: Error in Perl code: Undefined subroutine called at
> > /usr/local/lib/perl/5.6.1/HTML/Embperl.pm line 745.
> >
>
> I guess you run into the same problem as Alan yesterday. I have introduced a
> problem with comments inside [! !] blocks, which causes
>
> [8762]ERR: 24: Error in Perl code: Undefined subroutine called at
> /usr/local/lib/perl/5.6.1/HTML/Embperl.pm line 745.
>
I guess you run into the same problem as Alan yesterday. I have introduced a
problem with comments inside [! !] blocks, which causes such an error. I
send you an updated v
>
> Whoops, sorry, didn't mean to send that to the whole list.
Why not ? It's not too long and if anybody else runs into the same problem
as you, he has already a solution...
Gerald
-
Gerald Richterecos electronic communication ser
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Whoops, sorry, didn't mean to send that to the whole list.
- --
Kee Hinckley - Somewhere.Com, LLC
http://consulting.somewhere.com/
[EMAIL PROTECTED] (or ...!alice!nazgul for time travelers :-)
I'm not sure which upsets me more: that people are so u
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
There's a couple problems with multi-level directories (I have artist/album/files).
I haven't done extensive testing, but this seems to fix them. You won't want the
initial base_path change of course.
*** index.epl Tue Oct 23 17:45:46 2001
- ---
> Introducing a simple interface to mod_mp3 written using EmbperlObject that
I
> have tentatively called Empache (ala the php equivalent Ampache).
>
> Example: http://24.43.237.74/mp3/
> Download backend: http://24.43.237.74/empache.tar.gz
>
Great! Thanks for sharing this
Gerald
--
>
> I fixed teh problem apparantly by putting the two lines in question within
> the FilesMatch section. Any other insights, comments are appreciated.
>
This seems to be a known problem with mod_perl's PerlSetEnv. Should be fixed
in the CVS version of mod_perl (I am not sure if it's fix in mod
I fixed teh problem apparantly by putting the two lines in question within
the FilesMatch section. Any other insights, comments are appreciated.
On Thu, 6 Sep 2001, Nate Smith wrote:
==>
==>Hi, I recently implemented a site using embperl, but like a lot of people on
==>the list am not quite sa
Hi.
>
> I've been preparing a site using 2.0b2 and EmbperlObject, and it seems to
> work great.
>
I recommend to upgrade to 2.0b3 because it contains some important bug fixes
> The main problem I'm having is with trying to generate a page offline.
embpexec.pl only works for normal Embperl pages
Jack Cushman wrote:
>
> Is there a preferred way of excluding certain files from EmbperlObject
> processing? The problem is, for certain popup windows I don't want the
> header and footer to show up. The best I can think of is to put them all in
> a /popup directory with blank header.ht and foote
Yep!
> Any output inside the page is not parsed again, but you can run it thru the
> Exeute function to get the desired result:
>
>
> [- $code = get_content_from_a_database("index.html"); -]
> [- Execute ({input => \$code}) -]
>
I stumbled across that solution by reading the documentation, a
>
>
> [- get_content_from_a_database("index.html"); -]
>
>
> Where base.epl is the EmbperlObject base, does Embperl also parse the
> output of that function? For example, if get_content... returned:
>
> [+ $myvariable $]
>
> Would I see that as a literal on my screen or would the value of
> $myv
If I have:
base.epl
[- Execute(*); -]
And index.html as:
[- get_content_from_a_database("index.html"); -]
Where base.epl is the EmbperlObject base, does Embperl also parse the
output of that function? For example, if get_content... returned:
[+ $myvariable $]
Would I see that as a lite
avid Lloyd" <[EMAIL PROTECTED]>
To: "Gerald Richter" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, June 05, 2001 1:19 AM
Subject: Re: EmbperlObject + ApacheStatINC Woes
>
> It just kills it totally. Either embperl.log is not made, or no lines
>
It just kills it totally. Either embperl.log is not made, or no lines
are added to it. The moment I remove PerlInitHandler Apache::StatINC,
/tmp/embperl.log fills up with what one would expect and everything
works. I don't believe a log of EmbperlObject working correctly would be
useful so I'm no
>
> Now, under this setup if I have Apache::StatINC compiled,
> HTML::EmbperlObject refuses to find any pages no matter what I call
> them. If I comment out or delete any references to Apache::StatINC then
> HTML::EmbperlObject suddenly works.
>
> Is this a known problem or clash?
>
You config se
>
> The above works perfectly however it doesn't work in my project since I
have all my functions in a seperate file.
> I tried doing this in my page:
>
> [- $subs = $param[0] -]
> [! sub getstatus { return $subs->status } !]
>
> But unfortunately I get the following error message: 'Can't call met
Is there really no way to force Embperl to Execute the (*) part first?
Surely this would make sense for most applications and would make things a lot
simpler. Also it would make it easier to port from plain CGI?
Nico
On Wed, May 02, 2001 at 05:33:46AM +0200, Gerald Richter wrote:
>
>
> > Tha
On Wed, May 02, 2001 at 05:33:46AM +0200, Gerald Richter wrote:
>
>
> Your files (that are invoked via Execute ('*') ), defines a method, for
> example getstatus, this method returns what ever information is needed, your
> status page now can call this method, also the actual file isn't executed
> Thanks for the quick reply.
> But unfortunately after looking at the example I still do not know how i
could solve my problem. Maybe I didn't describe it very well.
> I am calling a module function in login.html that checks user name and
password and sets the global $user_id. Problem is that t
Thanks for the quick reply.
But unfortunately after looking at the example I still do not know how i could solve
my problem. Maybe I didn't describe it very well.
I am calling a module function in login.html that checks user name and password and
sets the global $user_id. Problem is that the sta
Hi,
>
> Is there a way to force Embperl to execute the * portion first? How have
others solved this problem?
>
You can use method calls to solve this problem. Look at the example in the
EMbperlObject documenation:
http://perl.apache.org/embperl/EmbperlObject.pod.5.html#Example_for_using_me
thod
Hi Neil,
basicly this should work. There is no problem placing files outside the
document base for the website.
You may consider using the EMBPERL_OBJECT_ADDPATH to add /www/common/ to the
EmbperlObject serach path. Then you can include files from there by simply
saying
Execute ('doc.html')
mo
>
> Using the latest 'EmbperlObject.pm,v 1.40 2001/01/29 10:43:55' from CVS, I
> can use EmbperlObject on Windows 98 without experiencing problems or
needing
> to make modifications.
>
Great!
> Thanks for patching :-).
>
Thanks for your patch and testing
Gerald
-
AIL PROTECTED]>
To: Freddy Vulto <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, January 29, 2001 11:50 AM
Subject: Re: EmbperlObject: offline Windows usage
> Hi Freddy,
>
> sometime ago you send me a patch to make EmbperlObject work more correct
on
> Windows in offli
Hi Freddy,
sometime ago you send me a patch to make EmbperlObject work more correct on
Windows in offline mode. I have now found time to take a closer look at it
and build a modified version of your patch into EmbperlObject. I have just
commited it to the CVS. I would be happy, if you could downl
[EMAIL PROTECTED] said:
> At the moment I only see the possibilty to run htdig from a Embperl
> page instead directly as CGI, catch the output, maybe strip out what
> you don't need and output it via Embperl.
the contrib/scriptname directory of the htdig (3.1.5) source contains
an example of em
Hi,
> I'd like to use a search engine like htdig for local data since I
> don't want to re-invent the wheel here and write a new one. But I
> use EmbperlObject via mod_perl and of course I have my own
> dynamic header/footer files. So what I have to do is call the
> search program (which in case
Hi,
your addtions makes sense to me. The only thing to worry about may be the
performance. I don't know how expensive your addtions are. I will take a
further look at it, after I have released 1.3 (which I plan for next week)
and your addtions will go to 1.3.1b1.
Gerald
> > I just commited some changes to the CVS, so make test should now also
work
> > with BEN-SSL
>
> Just tried it, works perfectly (on Red Hat 7 (with all RH patches),
> apache 1.3.12+ssl_1.41).
>
> I bow to your excellence, o great one
>
It wouldn't had worked without your help
Gerald
---
Gerald Richter wrote:
> I just commited some changes to the CVS, so make test should now also work
> with BEN-SSL
Just tried it, works perfectly (on Red Hat 7 (with all RH patches),
apache 1.3.12+ssl_1.41).
I bow to your excellence, o great one
:)
-Neil
---
Hi Neil,
>
> I have tried the CVS version on the foo/bar example, and it worked just
> fine. Just for fun I tried it on my larger project as well, and it
> seemed to work there too. Great!
>
:-)
> (I skipped the 'make test' because it still trips up on the httpsd
> stuff, but that's a separate
> I have commited a new version into the CVS which should solve the problem
> with nested multiple ../foo.htm in EmbperlObject.
>
> Could you give it a try and see if it works for you. (see
> http://perl.apache.org/embperl/CVS.pod.1.html#INTRO for cvs access)
Hi Gerald,
I have tried the CVS ver
Hi Neil,
I have commited a new version into the CVS which should solve the problem
with nested multiple ../foo.htm in EmbperlObject.
Could you give it a try and see if it works for you. (see
http://perl.apache.org/embperl/CVS.pod.1.html#INTRO for cvs access)
Gerald
---
Hi,
> I tried using Lynx, and got an error on reading /foo/bar/:
>
> "unexpected network read error: connection aborted".
>
> Again, this is the case where /foo/bar/subs.html is trying to Execute
> ('../subs.html'), and /foo/subs.html is in turn doing the same.
>
> So, I tried using a small perl
I tried using Lynx, and got an error on reading /foo/bar/:
"unexpected network read error: connection aborted".
Again, this is the case where /foo/bar/subs.html is trying to Execute
('../subs.html'), and /foo/subs.html is in turn doing the same.
So, I tried using a small perl script to read the
>
> I set EMBPERL_DEBUG as you suggested. When I try the first case (using
> Execute('../subs.html') and with subs.html present at every level of the
> hierarchy), there is just a pause, followed by a message dialog from
> Netscape saying that the document contained no data. There is no output
> i
Thanks for replying so fast!
I set EMBPERL_DEBUG as you suggested. When I try the first case (using
Execute('../subs.html') and with subs.html present at every level of the
hierarchy), there is just a pause, followed by a message dialog from
Netscape saying that the document contained no data. Th
Hi Neil,
the setup you outlined below should work as you expected with 1.3b6.
To give me a chance to track down why it doesn't please set EMBPERL_DEBUG to
66609149 and send me the embperl.log file of your request and the output you
see at the browser.
The issue with ESCMODE = 0 is that, in 1.3b
I noticed a small error in my previous message. The DirectoryIndex
should be set to 'index.html', not 'base.html', since recursion would
occur otherwise. In addition, there does need to be an (empty)
index.html in every directory, the default for apache.
Also, I apologise for the duplicate messag
Hi Gerald,
Sorry about not replying sooner. Someone hacked into my computers (which
includes my development machine and my mail server) two weeks ago. They
exploited an (apparently) well known vulnerability in my version of named,
and thus gained root access to both my machines. As a result I ha
Hi Neil,
>
> Sorry about not replying sooner.
No, problem!
> Someone hacked into my computers (which
> includes my development machine and my mail server) two weeks ago. They
> exploited an (apparently) well known vulnerability in my version of named,
> and thus gained root access to both my ma
Hi Gerald,
Sorry about not replying sooner. Someone hacked into my computers (which
includes my development machine and my mail server) two weeks ago. They
exploited an (apparently) well known vulnerability in my version of named,
and thus gained root access to both my machines. As a result I ha
Hi Neil,
did you have time to test the new Embperl version? Are the features working
correct and as you expected for you?
Thanks for your feedback
Gerald
P.S. If anybodyelse if using the new features of 1.3b6 I would be interested
in some feedback, so I am sure they are working before I make t
>
> Does anybody else get this behavior?
>
> The following code works just fine normally:
>
> [$ foreach $letter (A..Z) $]
>[+ $letter +]
> [$ endforeach $]
>
> But when I use EmbperlObject instead of Embperl, I get the following
errors
> in my error log:
>
This is a know error and is alre
Hi,
>
> There are two features which I think would be good to have in
> EmbperlObject. I would like to know what you think:
>
I think both of the features make sense to me and I will change the
behaviour of EmbperlObject in 1.3b6 accordingly
Thanks for the ideas
Gerald
---
On Sun, Oct 08, 2000 at 12:39:37PM +, neil wrote:
> The problem comes when you have intermediate parent directories (i.e.
> between the current directory and the website root) which may or may not
> have 'file.html' defined - this means that you have to redefine file.html
> all the way up the
Andre Landwehr writes:
> On Sat, Oct 07, 2000 at 08:14:59PM +, neil wrote:
> >
> > There are two features which I think would be good to have in
> > EmbperlObject. I would like to know what you think:
> >
> > 1. The ability for Execute() to look up the directory tree if it can't find
> > t
On Sat, Oct 07, 2000 at 08:14:59PM +, neil wrote:
>
> There are two features which I think would be good to have in
> EmbperlObject. I would like to know what you think:
>
> 1. The ability for Execute() to look up the directory tree if it can't find
> the named file, in the same way that the
> Most my problems with EmbperlObject
> come from parameters passing around and subs importing/exporting, it can
> mostly be worked around, but it looses the elegance of the EmbperlObject
> idea.
>
Next release will bring you the elegance back (hopefully).
Gerald
--
Gerald Richter wrote:
>
> > - I'm having problems with caching Execute results: even when I turn it
> > off with mdate => undef
> >
> > [- Execute({ inputfile => '*', sub => 'title', output => \$x,
> > mtime => undef }) -]
> > [+ process($x) +]
> >
> > it still shows old values. The problem matif
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
At 7:28 PM +0200 6/15/00, marcus wrote:
>With the above .htaccess file am I declaring .html files below the
>.htaccess file to be processed by EmbPerl?
Right.
>In which case, I should make sure not to use plain html files, or they
>would be processe
> I'm a bit confused about using .html versus .epl extensions with
> EmbPerl. Could somebody explain how and when you use which filetype for
> what reason?
>
You could use whatever fileextention you like. Embperl doesn't care.
> The server knows that .epl is an EmbPerl file and that works fine.
On 14.6.2000 at 20:23 Robert wrote:
>This is .htaccess that works perfectly well for me:
>
> PerlSetEnv EMBPERL_FILESMATCH "\.html$"
> PerlSetEnv EMBPERL_OBJECT_BASE base.html
I'm a bit confused about using .html versus .epl extensions with
EmbPerl. Could somebody explain ho
Hi,
>
> I'm playing with your solution and while it seems to work, but I've
> found three more problems:
>
> - I need to post-process result of the Execute so I try
>
> [- Execute({ inputfile => '*#title', output => \$x }) -] [+
> process($x) +]
>
> but EmbperlObject complains file '*#title' doe
Gerald Richter wrote:
> ...
>
> Rewrite it as
>
> [- Execute ('*#title') -]
>
> and put a
>
> Execute (filename => '*', 'import' => 0') ;
>
> at the top of base.html (this line is only neccessary for now, it will be
> automaticly executed in the next release)
>
> your test.html defines
>
>
This is .htaccess that works perfectly well for me:
=
PerlSetEnv EMBPERL_OPTIONS 8208
PerlSetEnv EMBPERL_ESCMODE 0
PerlSetEnv EMBPERL_DEBUG 1
PerlSetEnv EMBPERL_FILESMATCH "\.html$"
PerlSetEnv EMBPERL_OB
>
> The problem is in the original file. I have (from memory, I'm not at that
> computer now)
>
> [$sub js_start $] [+ udat{onload} +] [$endsub$]
>
> in the top of the file. Later I decide what to put into udat{onload}, but
> then it's too late because the sub js_start has already been fired.
>
S
>
> I want to add some javascript to the next page, so I have this:
>
> Execute ({inputfile => '*', 'sub' => 'js_start', output => \$js_start})
>
>
> (abbreviated, the syntax may not work, but you get the idea.
>
> The problem is that I don't know the javascript until late in my
> original page,
> [- Execute ('*#title') -]
I have a similar setup and a problem with that.
I want to add some javascript to the next page, so I have this:
Execute ({inputfile => '*', 'sub' => 'js_start', output => \$js_start})
(abbreviated, the syntax may not work, but you get the idea.
The problem is tha
> Aha. So you recommend every EmbperlObject file from my example looks
> like
>...
yes
> Anyway, several [$sub$]'s in every file, what about performance (vs.
> some kind of sending around param list/hash)?
Shouldn't be a great problem
> Moreover, how would you
> set up defaults?
Currently you
Aha. So you recommend every EmbperlObject file from my example looks
like
==
[$ sub title $]Test 1[$ endsub $]
[$ sub bgcolor $]#ff[$ endsub $]
[$ sub copyright $]1[$ endsub $]
Test page
I guess it's usable but I'd like better something like
=
>
> one more question: any plan to parameters for components? Here's
> exactly what I mean:
>
>
> base.html
> ==
>
>
> [+ $param{title} +]
>
>
> [+ $param{title} +]
> [- Execute ('*') -]
>
>
>
Rewrite it as
[- Execute ('*#title') -]
and put a
Execute (fi
Hi,
>
> EmbperlObject is quite cool, but it doesn't seem to support offline
> mode. Is there some workaround for it or is it planned for some later
> beta? I use sometime Embperl as a great offline converter, but I have to
> include headers/footers manually through Execute in every Embperl file -
> You could try the following (I didn't have tried it, but I think it should
> work. Further version of EmbperlObject will have such a mechanisem build in)
It actually works!
And it seems you can do almost anything with it!
--
Kaare Rasmussen--Linux, spil,--Tlf:3816
>
> If you by "main page" mean the template
Yes
>(which I will assume) then it
> will IMHO not be fine grained enough for most purposes. As I understand
> EmbperlObjects, it can be used as a template to make a common look&feel
> for your site. So you will place all the common stuff there, and ha
> I think normaly such a page would not contains a tag (or a
> section), because it's already part of the main page.
If you by "main page" mean the template (which I will assume) then it
will IMHO not be fine grained enough for most purposes. As I understand
EmbperlObjects, it can be used as a
>
> > What is the correct value?
>
> Not sure I understand your question, but I'll expand: This is taken from
> the example from EO's doxpage:
>
Ok, now I understand what you mean.
I think normaly such a page would not contains a tag (or a
section), because it's already part of the main page.
> What is the correct value?
Not sure I understand your question, but I'll expand: This is taken from
the example from EO's doxpage:
/foo/base.htm:
('*')
[- Execute ('head.htm') -]
[- Execute ('*') -]
[-
>
> EO is a _very_ nice idea. There is a problem with the title, though,
> because why will you want to have the same (or no) title for all your
> pages?
>
> If I didn't miss it, there's no way to tell what title to use. I'll
> suggest a placeholder in the base web page, something like
>
> ('*'
88 matches
Mail list logo