-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Gerald,
> Several people told me they would help to write a book. The problem is
> I have a contract to write a book in german (which maybe will be
> tranlated into english later), so we would need people who are able to
> write in german...
Alterna
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
NOTE: Excuse the crappy formatting. But seeing it mentions Embperl I
thought this would be of interest.
Begin forwarded message:
Date: Fri, 8 Aug 2003 11:53:43 +0800
From: Linux Jobs <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: [Jobs] JOB: (Ba
Linux.Conf.Au 2004 opens registrations!
Registrations for Linux.Conf.Au, Australia's national Linux and
open-source conference, to be held in Adelaide, Australia on January
12-17, 2004, open today.
Now is the time for YOUR fun to begin. Right now, head off to
http://lca2004.linux.org.au/registe
Hmmm...
> > For getting 2.0 out of beta: I use 2.0 for a long time in all my
> > projects and it is very stable, there is no reason for not to use it
> > in production environment, I really should rename it to 2.0 final. The
> > only thing I see is, what Neil mentioned, that there a some (small)
H
I have:
(in httpd.conf)
PerlSetEnv PERL5LIB /home/httpd/modules/
PerlSetVar ApacheStatINC_Debug 1
PerlModule Apache::StatINC
PerlInitHandler Apache::StatINC
I'm running under mod_perl and HTML::Embperl is taking care of any files
that end in .epl
I've rolled a little script using em
Yep!
It's basically a package based on the example in the Camel Book:
package LMail;
require Exporter;
@ISA=qw(Exporter);
@EXPORT_OK=qw(get_mail);
sub get_mail {
# body
}
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For addit
Gerald!
> So could you try to write
>
> [- @result=LMail::get_mail() -]
>
> Does this change anything ?
I tried that and it works perfectly. But I can't quite think of why it
would work using that form, although I'm sure I'd understand why if
someone pointed it out to me.
DSL
--
Gerald!
> "use" generates an alias to LMail::get_mail, so you can call it without the
> need to specify the package name.
Hole in one.
> While StatINC forces a reload of the
> module it can't know of the alias. So the alias inside the Embperl page
> still points to your old code. I guess when
I have, in my httpd.conf:
# If the perl module is installed, this will be enabled.
PerlInitHandler Apache::StatINC;
Alias /perl /home/httpd/perl
SetHandler perl-script
PerlHandler Apache::Registry
Options +ExecCGI
Alias /foo /home/httpd/html/foo
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
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
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
How "secure" is the request record which is shunted around various parts
of EmbperlObject? Obviously you would still encrypt any sensitive data
which you'd added to it, but I'd surmise that it's possibly a little
more secure than using hidden form fields.
(Because anyone can just view the source
Um...
Write good HTML code.
HTML has to be the only medium where users/programmers expect it not to
crash no matter what you do...
:-(
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PR
Can you put the embperl setup in .htaccess? This is probably an FAQ but
I can't work it out :-(
DSL
--
"The greatest thing you'll ever learn is
just to love and to be loved in return."
- David Bowie (Nature Boy from Moulin Rouge)
If I use Apache::DBI under mod_perl and continuosly open and disconnect
a DBI:mysql connection, it should reuse the same connection and not
perform a database lookup all the time.
I have a piece of code that I can't be bothered optimising (i.e. it
currently opens and closes about 30 connections
Lukas!
> I have a really big problem now. We are going to install our first application
> but we need to hide the sourcecode. User should be not allowed to get the
> source. Is there any way to do it?
If Embperl is running correctly, users should not be able to see the
source code. It's an Apac
Gerald!
I recently decided to upgrade Storable and Apache::Session; the base
system is a RedHat 7.1 installation of Perl v5.6.0.
Versions I have are found at:
---
http://www.cpan.org/authors/id/JBAKER/Apache-Session-1.54.tar.gz
http://www.cpan.org/authors/id/RAM/Storable-1.0.13.tar.gz
Default
Hmmm...
I have an authentication system that uses the Apache::Session::MySQL
backend with cookies to handle authentication.
Sequence I use is:
1) Get username and password
2) If ok, generate a sessionkey and set
$udat{'sessionkey'}=gen_sessionkey($username)
However, every now and then Embperl
Elvis!
[root@localhost /root]# rpm -qa | grep mysql
mysql-3.23.36-1
php-mysql-4.0.4pl1-9
mysqlclient9-3.23.22-4
mysql-server-3.23.36-1
mysql-devel-3.23.36-1
DSL
--
If we could extract all the evil from each of us,
Think of the world that we could create!
A world without anger, or violence or
H...
> There are two things that I could image. Either for whatever reason your
> sessions never goes into the database, in this case %udat will behave like a
> normal hash and it works as long as you hit the same child. (You will hit
> the same child as long as your KeepAliveTimeout isn't o
Stupid question, but how do you make sure it's set BEFORE embperl is
loaded?
DSL
--
If we could extract all the evil from each of us,
Think of the world that we could create!
A world without anger, or violence or strife...
(From the Musical, Jekyll and Hyde)
Gerald!
> 1.) PerlModule HTML::Embperl
> For 1., put the PerlSetEnv with the session vars, before the PerlModule
> statment in your httpd.conf
I have finally managed to get session management working; I used to have
the EMBPERL_SESSION_CLASSES and EMBPERL_SESSION_ARGS in my without using a
Gerald!
> That's dangerous, because you can't have different values for these
> configuration directives. They are global. (Yes that's something that should
> be changed sometime, but it isn't yet). If you have different values the
> session management get's initialized with the values from the
Wouldn't this be easy to do a test run of?
DSL
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Ruben!
> How did we get a file into an html page prior to [- Execute ('header.txt') -]
>
> I tried [- @headers = -]
>
> and that failed.
I think that Embperl can bugger up spaceship operators and filehandle
operators.
See if you can try:
[- @headers= h; -]
(last time I looked it tends
LOL
> will be protected. If you use Embperl session management you have to test if
> the user is logged in in every page before you can do the real work. On the
> other side useing Embperl session data gives you some more flexibility,
> because you have some more control what happens to un autho
Any idea when 2.0-STABLE is going to come out?
DSL
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hmmm...
> [- some code here -]
> some html here
>
> is it guaranteed that the code block will be executed completely *before*
> the html block is sent to the browser?
I think it is. For example, if you modify a global variable in the [- -]
block then use a [+ +] block afterwards you ALWAYS se
Alexander
> The "old" machine:
> 800Mhz PIII with 256MB ram
> RedHat 6.2
> Apache 1.3.19 with mod_perl 1.25 and embperl 1.3.1
>
> The "new" machine:
> 866Mhz PIII with 256MB ram
> RedHat 7.2
> Apache 1.3.22 with mod_perl 1.26 and embperl 2.0b7
>
>
> The slowest embperl script generates a html
Wim
> code. Inside that eval block, the entire results of the query are being
> loaded into memory. Instead of doing that, only put the $dbh->prepare
> and $sth->execute in the eval. In the display code, process each row one at
> a time, via something like this:
That confirms my suspicion - it
Alexander
> Do you really think the kernel is the problem?
It could be -- try using the Kernel RPMS created by RedHat and see if
there are any updates on www.redhat.com.
> Is there any way how to debug the script (or the kernel)?
perldoc HTML::Embperl
...and scroll down to debug. I wonder w
Heh,
> Correct, because the sub definition hasn't changed. Of course invoking
> and running the subroutine still (potentially) happens every time, so
> that would be done with [- brackets.
...unless you only want the subroutine to load once and only once (for
whatever contrived reason one might
Gaurav,
It is a normal perl module; go to somewhere on CPAN
(http://www.cpan.org/), search for HTML::Embperl and install as you
would any other module.
* perldoc HTML::Embperl
...or look at:
* http://perl.apache.org/embperl/
DSL
(1) HTML e-mail is evil ;-P
(2) You seem to have an "I requir
34 matches
Mail list logo