$a-errors()}) +]"
Gerald
---------
Gerald Richterecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting
Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: [EMAIL PROTECTED]
-
Gerald Richterecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting
Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: [EMAIL PROTECTED] Voice:+49 6133 925151
WWW
he quoting doesn't hurt (as far as I see) I haven't changed this
until now, to make the parser not to compilcated and therfor not to slow.
Gerald
-----
Gerald Richterecos electronic communication services gmbh
Internetconnect * Webserv
-
Gerald Richterecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting
Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: [EMAIL PROTECTED] Voice
er startup time. If mod_perl is a
dynamic loaded module, you shouldn't load Embperl at startup time
Gerald
-----
Gerald Richterecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consul
tdout. You should set optRedirectStdout (in your
server config), to let stdout go to the Embperl output stream. Otherwise
it's send directly and arrives at the browser, before Embperl sends it's
header. That's what you currently see
Gerald
--
docs about Session HAndling. If you are
successfull, you should see a message "Embperl sesssion handling enabled" in
your Apache error log, when Embperl starts
Gerald
---------
Gerald Richterecos electronic communication services
.
You can do so. Use import = 0, to only compile your subroutines and not
import the names in the namespace of your startup.pl:
Execute( { inputfile = '/include/subs.emb', package = 'Subs', import =
0 } );
Gerald
-----
Gerald Richt
with a normal Perlscript that runs under mod_perl and
Apache::Registry.
Gerald
-
Gerald Richterecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting
Post: Tulpenstrasse 5 D
this?
Simply, don't put anything about Embperl in your startup file. mod_perl will
load Embperl on the first request.
Gerald
-
Gerald Richterecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken
Did you load Embperl and/or Apache::Session at server startup time?
Please try to _not_ load Embperl at startup time and load Apache::Session at
startup time (e.g. PerlModule Apache::Session in your srm.conf)
Gerald
-------
Gerald Richter
In Myhandler::handler I do
$myvar1 = $r-dir_config('MyVariable');
$myvar2 = $r-dir_config('MyVariable2);
if($myvar1){
## do stuff for first virtual server
}else{
## do stuff for the second one
}
If $myvar1 is a global it will hold it's content forever...
so try
my $myvar1 =
the following
two things:
1.) Preload HTML::Embperl::Session
2.) Try Apache::Session::FileStore instead of DBIStore
Gerald
-
Gerald Richterecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken
become a stable,
widely used (also on high loaded sites) tool for embedding Perl into HTML.
There is just one change since 1.2b11:
- test script had failed in cgi mode on win32. Spotted by
Randy Korbes.
Enjoy
Gerald
-
Gerald
$]
[- foo
($a) ; -]
foo
returned [+ $a +]
Gerald
---Gerald
Richter ecos electronic communication services
gmbhInternet - Infodatenbanken - Apache - Perl - mod_perl -
EmbperlE-Mail:
[EMAIL PROTECTED]
Tel:
+49-6133/925151WWW: http
mt version. perldoc CVS.pod in the Embperl
directory give you more information about it, but for the fix you need you can
upgrade to 1.2b11. (Note setup for session handling has slightly changed, read
the docs)
Gerald
-------Gerald
Ri
on http://perl.apache.org/embperl, you may also check out
http://perl.apache.org/
Gerald
---
Gerald Richter ecos electronic communication services gmbh
Internet - Infodatenbanken - Apache - Perl - mod_perl - Embperl
E-Mail
.
Gerald
---
Gerald Richter ecos electronic communication services gmbh
Internet - Infodatenbanken - Apache - Perl - mod_perl - Embperl
E-Mail: [EMAIL PROTECTED] Tel:+49-6133/925151
WWW:http://www.ecos.de
ed in his first mail:
/...[^\55]+.../
use \55 instead of -
Gerald
-------
Gerald Richter ecos electronic communication services gmbh
Internet - Infodatenbanken - Apache - Perl - mod_perl - Embperl
E-Mail: [EMAIL PROTECTED]
I use HTML-Embperl-1.2b10:
How make $http_headers_out{'Location'} ,so as
A HREF="edit.html?[+ [%fdat] +]" redirect /A
I would try
$url = "http://$ENV{SERVER_NAME}/path/to/edit.html?" ;
while (($k, $v) = each (%fdat))
{
$url .= "$k=$v" ;
}
That'll work but you'll end up with an extra ampersand on the
end. Here map()
and join() are your friends:
[- $http_headers_out{'Location'} = q(edit.html?) . join('',
map({$_=$fdat{$_}}
keys %fdat)) -]
Yes, that's more elegant, but is it possible that you forgot a qq before
connect_cached cache the
statement handle, so you could/should use both together. That's the way I
would go, but it doesn't will help you with your (non-mod_perl) cgi scripts.
If you want to speed them up, you need DBD::Proxy.
Gerald
---
Gerald
that is build with
PERL_OBJECT, but a lot of work is left...
Gerald
---
Gerald Richter ecos electronic communication services gmbh
Internet - Infodatenbanken - Apache - Perl - mod_perl - Embperl
E-Mail: [EMAIL PROTECTED] Tel
ions where not settable inside an Embperl page.
Spotted by Ilya Ketris.
-------
Gerald Richter ecos electronic communication services gmbh
Internet - Infodatenbanken - Apache - Perl - mod_perl - Embperl
E-Mail: [EMAIL PROTECTED]
simple for performance reasons?
If the removeing of tags doesn't work as you expect, please send me an
example of what you type, what StarOffice creates out of it and what errors
you get.
Gerald
---
Gerald Richter ecos electronic
an trigger an "error" with "die", but I am not sure if this is what you
want...
The EMBPERL_MAIL_ERRORS_TO will mail you some information about the request
(%fdat, %udat, %ENV, @errors), but not the logfile.
Gerald
----------
$Apache::Session::SysVSemaphoreLocker::nsems = 16;
(note - I'm running Solaris so I gotta have the nsems argument)
I put the hint with nsems and Solaris in the Embperl docs (the missing BEGIN
block is already added)
Thanks for the hint
Gerald
with USE_DSO? If so make sure you do _not_
load Embperl at server startup time!
Gerald
-------
Gerald Richter ecos electronic communication services gmbh
Internet - Infodatenbanken - Apache - Perl - mod_perl - Embperl
E-Mail:
BTW. Do you have build mod_perl with USE_DSO? If so make sure
you do _not_
load Embperl at server startup time!
Yes I do, but I was following along with the guide and loaded
everything at
startup. The embperl faq didn't give any reasons (that I can find) as to
why I shouldn't or too
not quite sure,
which is the condition) in that time. How does your script exactely works?
Gerald
---
Gerald Richter ecos electronic communication services gmbh
Internet - Infodatenbanken - Apache - Perl - mod_perl - Embperl
E
I have been digging around in the FAQ and archives for information about
people running mod_perl on a windows box and also using Apache::DBI, but
have come up with nothing. I am under the impression that it is not
going to work becase whenever I try to load up the Apache::DBI module
apache
However, at the time of that test, I was using:
DBI 1.13
ApacheDBI 0.85
ModPerl 1.21
Apache 1.3.9
Perl 5.005_03 built for MSWin32-x86
I still have that machine, and I will willingly re-do the tests if
anybody wishes to join the discussion.
I have
DBI 1.08
Apache::DBI 0.81
mod_perl
Thanks, I update the docs
Gerald
---
Gerald Richter ecos electronic communication services gmbh
Internet - Infodatenbanken - Apache - Perl - mod_perl - Embperl
E-Mail: [EMAIL PROTECTED] Tel:+49-6133/925151
age.
Hope this helps
Gerald
Thank you very much,
--apple
Gerald
-------
Gerald Richter ecos electronic communication services gmbh
Internet - Infodatenbanken - Apache - Perl - mod_perl - Embperl
E-Mail: [EMAIL
is error or below.
If you run under mod_perl, how do you call the page?
Gerald
---
Gerald Richter ecos electronic communication services gmbh
Internet - Infodatenbanken - Apache - Perl - mod_perl - Embperl
E-Mail: [EMAIL PROTECTED
Here's the portion of my httpd.conf that deals with Embperl:
That's ok.
I think I found the reason:
[3396892]ERR: 30: Line 1: Not found /usr/lund/wwwfiles/wnetdoc/map.c.html
As always there is an expection to the rule. The "Not found" (and FORBIDDEN)
errors are not going thru the Apache
::EmbperlFilter (for the last one search the
mailing list archive)
Gerald
thanks,
Akshay
---
Gerald Richter ecos electronic communication services gmbh
Internet - Infodatenbanken - Apache - Perl - mod_perl - Embperl
E-Mail
When I told that ASP slower than Embperl - Joshua Chamas said that he know
it, but was surprised by huge difference, he tuned the ASP, I upgraded
Embperl to 1.2b9 and results interchanges.
If you tune Embperl (set EMBPERL_OPTIONS to 8083), the result interchange
again, but you loose some of
as write
permissions
Gerald
-------
Gerald Richter ecos electronic communication services gmbh
Internet - Infodatenbanken - Apache - Perl - mod_perl - Embperl
E-Mail: [EMAIL PROTECTED] Tel:+49-6133/925151
WWW:
---
Gerald Richter ecos electronic communication services gmbh
Internet - Infodatenbanken - Apache - Perl - mod_perl - Embperl
E-Mail: [EMAIL PROTECTED] Tel:+49-6133/925151
WWW:http://www.ecos.de Fax:+49-6133/925152
---
::Session 1.04 soon on CPAN so these confusion
will have an end.
Gerald
---
Gerald Richter ecos electronic communication services gmbh
Internet - Infodatenbanken - Apache - Perl - mod_perl - Embperl
E-Mail: [EMAIL PROTECTED
Interesting.
I tested an identical setup of Apache/modperl/Embperl/Oracle on NT and
Linux, and I experienced a huge slowdown on NT. When I looked into it, I
found that the more database-intensive the page, the slower the relative
performance of the NT platform. I took that to mean that it
ApacheCore.dll is on your
system inside the PATH, should solve the problem.
Gerald
---
Gerald Richter ecos electronic communication services gmbh
Internet - Infodatenbanken - Apache - Perl - mod_perl - Embperl
E-Mail: [EMAIL
rtmut Palm.
-------
Gerald Richter ecos electronic communication services gmbh
Internet - Infodatenbanken - Apache - Perl - mod_perl - Embperl
E-Mail: [EMAIL PROTECTED] Tel:+49-6133/925151
WWW:http://www.ecos.de Fax:+49-6133/925152
---
- changed_since method. This maybe
a solution to that problem.
Gerald
---
Gerald Richter ecos electronic communication services gmbh
Internet - Infodatenbanken - Apache - Perl - mod_perl - Embperl
E-Mail: [EMAIL PROTECTED] Tel
be to have an END
block that's
called whether I exit due to an error or if the whole page runs.
I put it on the TODO list
Gerald
---
Gerald Richter ecos electronic communication services gmbh
Internet - Infodatenbanken - Apache
---
Gerald Richter ecos electronic communication services gmbh
Internet - Infodatenbanken - Apache - Perl - mod_perl - Embperl
E-Mail: [EMAIL PROTECTED] Tel:+49-6133/925151
WWW:http://www.ecos.de Fax:+49-6133/925152
---
BTW, what's the future of ePerl? Development has been quiet for over a
year. Is Ralph Engelschall still the maintainer? And it's sad to see
that perl.apache.org doesn't mention ePerl anymore, while it mentions
HTML::Embperl.
Ralf told me, that he will still do bugfixes to ePerl, but no
Starting httpd... [Mon Oct 4 15:06:44 1999] [crit] (125)Address
already in use: make_sock: could not bind to port 8529
Cannot open test/tmp/httpd.pid at test.pl line 953.
There is already a Apache running on port 8529. Stop it and rerun the test.
Gerald
Thank you very much. I got it run already. I can start my http but I still
get some errors. What should I do? Can I ignore these errors or I have
to fix them? --Thanks
...
Use of uninitialized value at (eval1218) line 1.
Starting httpd... pid = 5764 ok
Testing mod_perl mode...
If you try
[-
use Apache::Constants qw(REDIRECT);
$req_rec-header_out("Location" = "/y.html");
$req_rec-status(REDIRECT);
-]
and nothing else in the file, does this work or not?
Gerald
BTW. The location should be a full URL including the host part
er
The UserFriendly Network (UFN)
--
/ / (_)__ __ __
/ /__/ / _ \/ // /\ \/ /
//_/_//_/\_,_/ /_/\_\
* * * CHOICE OF A GNU GENERATION * * *
---------
Gerald Richterecos elec
::optDisableFormData
}) ;
Gerald
---------
Gerald Richterecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting
Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail:
at the top of every page I have the following:
[- Execute({inputfile = '/usr/local/apache/share/GWCe.htm',
mtime = 1, import
= 1}); -]
Using the mtime parameters together with an file may lead to problems, when
the file changes, while the httpd is running, but this is another story and
not
ate small quick and dirty pages.
Gerald
---------
Gerald Richterecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting
Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: [EMAIL PROT
error
cat: test/tmp/httpd.pid: (is not file/directory)
make: *** [test_dynamic] Error 9
Please send me the last 10 lines of test/tmp/test.err.log and your
test/conf/config.pl
Gerald
---
Gerald Richter ecos electronic communication
How make $http_headers_out{'Location'} ,so as
A HREF="edit.html?[+ [%fdat] +]" redirect /A
I would try
$url = "http://$ENV{SERVER_NAME}/path/to/edit.html?" ;
while (($k, $v) = each (%fdat))
{
$url .= "$k=$v" ;
}
Perl threads have nothing to do with OS level threads. They aren't
native; they're part of the language itself and don't depend or rely
on POSIX threads, native threads, or other such things. In
particular, Perl threading doesn't mean that Perl is thread safe.
Yes, Perl threads are not
Should there by any difference between using?:
[-
pcsuri($_[0]), $rdrloc=$GWCe::pcsuri;
use Apache;
use Apache::Constants qw(REDIRECT);
$req_rec-header_out("Location" = $rdrloc);
$req_rec-status(REDIRECT);
exit;
-]
and:
[-
pcsuri($_[0]), $rdrloc=$GWCe::pcsuri;
Apache::DBI caches the database handle, while connect_cached cache the
statement handle, so you could/should use both together.
You're thinking of prepare_cached.
Oops, you are right! Wrote this mail too early in the morning...
Gerald
301 - 360 of 360 matches
Mail list logo