I guess it won't complain if you can run the loops and assemble an output table
string, inside a [- -] block, and then output the obtained string with
[+$table+].
The code will be messier and cgi-like but it can be one alternative, in case
you want to keep the processing logic.
Be
On Wed, 26 Sep 2007, Todd White wrote:
I think the $cnt does not work.
You need to use $row and $col. I think it assumes array of array (perldoc
perllol) for $col or $maxcol to work.
[-
@test_arr = (['A', 'B', 'C'], ['D', 'E', 'F'], ['G', 'H'] );
-]
[+ $test_arr[$row][$col] +]
ABC
DE
I ran the tests, and the result is as follows.
Both test will fail, but when you look at test/tmp/out.htm after each
test, you should see the sentence "This page is shown due to an
ErrorDocument redirection".
make test TESTARGS="-h errdoc/errdoc.htm"
Same as test/cmp/errdoc.htm
This page
ABC[$ if (1==1) $] [$ endif $]123
ABC[+(1==1)?" ":""+]123
Ben K.
Developer
http://benix.tamu.edu
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I guess the problem might happen when the same child serves the page
again, so the initialisation is skiped.
Could you try to run httpd with the -X option, so you have only one
process. Does it now fail the second request?
I ran httpd on another port with -X, and it's somewhat interesting.
Hi,
I reported a related problem once but didn't get a good answer last time... I
thought I'd try again.
We are on
Apache/2.2.4 Embperl 2.2.0 mod_perl/2.0.3
but not using Embperl Objects.
I'm trying to solve the problem of 500 errors not showing custom error
document, after the server is ac
Are these still valid?
1) multiple domain cookies
$http_headers_out{'Set-Cookie'} = ['name=cook1;value=2;',
'name=cook2;value=b'] ;
Yes
I can only get the second (or the last) cookie when I do that. Is there
some environment setting affecting this? Thanks.
Regards,
Ben K.
Developer
http:/
1) multiple domain cookies
$http_headers_out{'Set-Cookie'} = ['name=cook1;value=2;',
'name=cook2;value=b'] ;
Yes
I can only get the second (or the last) cookie when I do that. Is there some
environment setting affecting this? Thanks.
I'm on:
Apache 2.0
mod_perl/2.0.2
Embperl 2.2.0
Ben
1) multiple domain cookies
$http_headers_out{'Set-Cookie'} = ['name=cook1;value=2;',
'name=cook2;value=b'] ;
Yes
I can only get the second (or the last) cookie when I do that. Is there
some environment setting affecting this? Thanks.
Ben K.
Developer
http://benix.tamu.edu
-
Hi,
Are these still valid?
1) multiple domain cookies
$http_headers_out{'Set-Cookie'} = ['name=cook1;value=2;',
'name=cook2;value=b'] ;
2) The Simple DBI Example,
http://perl.apache.org/embperl/pod/intro/Intro.-page-4-.htm
Regards,
Ben K.
Developer
http://benix.tamu.edu
-
Sorry, here's some more information.
On the new servers, Apache/2.0.55 (Unix) Embperl/2.1.0 mod_perl/2.0.2
Perl/v5.8.7
EMBPERL_OPTIONS 278528
EMBPERL_DEBUG 10477
On some servers, die "$sql $@" delivers $sql to the
custom error page and to the hard coded error message from apac
OK, here's some more details about the error page problem. It seems like a
problem related with Embperl. Could be my site specific.
The error pages going through embperl shows only once per child.
Embperl seems to make a difference on 404 pages (I didn't do a test that
uses non-embperl for a 50
first load of a child, and any subsequent accesses do not get the error
page, but gets the default error string from apache core.
Does anyone have some clue why it would be so? The existing ErrorDocument
documentation doesn't se
ow whether I hit a closed
wall or I'm just not seeing the door.
Thanks.
Ben Kim
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Oh well, right after my posting, I found the answer. I wasn't doing
exit(0) after database error so it wasn't handled as fatal, I guess.
Although still, my stylesheet formatted error page shows only at every
other reload.
Regards,
Ben Kim
Developer
http://beni
_ERRORS');
@myerr = @{$errors};
Regards,
Ben Kim
Developer
http://benix.tamu.edu
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I'm on Perl 5.8.7, Embperl 2.1.0, Mod_perl 2.0.2 on
Apache 2.0.55 on
Solaris.
I'm trying to Execute a cgi script from an epl page,
but the cgi script doesn't get executed (rather, it's
read as a text file.) Is there an option to make this
possible?
1) a.cgi submits data to b.epl
2) b.epl has on
ERL_OPTIONS 278528
and it has the same problem. I changed it to
PerlSetEnv EMBPERL_OPTIONS 278544
(added 16) but it doesn't work. ... What gives?
Ben Kim
http://benix.tamu.edu
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Mon, 28 Nov 2005 04:59:58 GMT
Server: Apache/1.3.26 (Unix) PHP/4.3.3 mod_perl/1.27
Content-Length: 6
Content-Type: text/html
Jello
on the new one
Jello
Has anyone seen this? What could be the reason? I'd appreciate any advice.
Thanks.
Ben Kim
D
>> Is there a way to separately upgrade embperl first to 2.0rc3
>> orlater, and upgrade mod_perl?
>You should first upgrade Embperl to 2.1.0. This will work with the old and
>the new mod_perl nameing scheme. Afterwards you can upgrade mod_perl.
Thanks much and happy than
Hi, I'm using embperl 2.0rc1 with apache 2.0.47 / mod_perl 1.999016 on solaris 8.I'm trying to upgrade mod_perl to 2.0.2, but find that there's been amajor API change. (http://perl.apache.org/docs/2.0/rename.html)I guess then I should upgrade embperl as well if I want to upgrademod_perl. I don't
ill do the same as
[-my @myarray=(1,3,4,7)-]
[+$myarray[0]+]
It can be used with Data::JavaScript::Anon, or even Ajax like things, I
suppose.
Or, what is the best practice, if the same data need to be resorted /
filtered?
Regards,
Ben Kim
Developer
http:/
the ifs and loops so that when they are
removed, the table structure should make sense.
I.e.
[$if$]...[$endif$] => Removing [$if$][$endif$]
should make a proper table.
A simple fix will be like:
Just my 2 pence.
Regards,
Ben Kim
Database Developer/Systems Administrator
434E Harrington
nother with outputfile) it worked
fine.
I checked it because I wanted also to use the outputfile result as an
input to htmldoc to generate pdf. Pdf was generated OK. Unfortunately, the
stylesheets included in the page doesn't make it to the pdf file. I tested
by putting all stylesheet codes
$ embpexec.pl degree_plan_printable.epl
ld.so.1: perl: fatal: relocation error: file /usr//Embperl.so:
symbol ap_strchr: referenced symbol not found. Killed
Regards,
Ben Kim
Database Developer/Systems Administrator
434E Harrington Tower / College of Education
Texas A&M Universi
Thank you all. I find the Zapatec Javascript Calendar VERY likable.
Regards,
Ben Kim
Database Developer/Systems Administrator
434E Harrington Tower / College of Education
Texas A&M University
Original Message
>
> Most people do this with java
Is there a way to use a drop down calendar (date picker) with epl pages?
(Other than loading an applet etc.)
Thanks.
Regards,
Ben Kim
Database Developer/Systems Administrator
434E Harrington Tower / College of Education
Texas A&M Univer
log file lines
> > are displayed in different colors to give a better overview."
>
> Doesn't work in embperl 2 yet, unfortunately. Shouldn't be too hard
> to hack in, its mostly a matter of adding a nice "log viewer" embperl
> page.
Thanks.
Ben K
give a better overview."
Ben Kim
Database Developer/Systems Administrator
434E Harrington Tower / College of Education
Texas A&M University
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
r.h'
./srclib/apr/include/apr.h
./bindist/include/apr.h
I gave /root/httpd-2.0.50/bindist and the install went OK.
I'm glad I found an easier way. Thanks again.
Ben Kim
Database Developer/Systems Administrator
434E Harrington Tower / College
task (configuring embperl) is expected to be "easy"
but I've been constantly finding it time consuming.
If I build from the redhat source rpm, it does not seem to build the same
structure as from binary rpm.
Is there a better way?
Thanks.
Ben Kim
Database Developer/Systems Adm
Many thanks. It'd be helpful.
Regards,
Ben Kim
On Mon, 31 Jan 2005, Michael Stepanov wrote:
> Ben Kim wrote:
> > Dear list,
> >
> > 1. pdf generation
> > I'd like to learn what people use to generate pdf files. I want to
> > create pdf from a
Thanks for the advice.
Regards,
Ben Kim
Database Developer/Systems Administrator
College of Education
Texas A&M University
On Wed, 22 Sep 2004, Gerald Richter wrote:
> >
> > I haven't seen a comment on Teeing the output. Is it possible
> > to send the output of a
Thanks for the advice.
Regards,
Ben Kim
Database Developer/Systems Administrator
College of Education
Texas A&M University
On Wed, 22 Sep 2004, Dirk Jagdmann wrote:
> >I'd like to learn what people use to generate pdf files. I want to
> >create pdf from an epl page, w
Thanks for the advice. I ended up removing authentication code from the
page to generate pdf with htmldoc. It gave a few warnings about table
being too wide, but worked OK.
I'll try the pdf module some time later.
Regards,
Ben Kim
Database Developer/Systems Administrator
College of Educ
le to send the
output of a file, while it's also sent to the browser? (Like output
buffering then teeing?)
Regards,
Ben Kim
Database Developer/Systems Administrator
College of Education
Texas A&M University
On Wed, 22 Sep 2004, Gerald Richter wrote:
> Hi,
>
> >
> &g
.
(Tee'd.)
Regards,
Ben Kim
Systems Administrator/Database Developer
College of Education
Texas A&M University
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Oops,
As soon as I sent the email, I found my problem. I had "epl" listed in
"open in code view" preference. I removed it, and it's OK now.
Thanks,
Ben Kim
On Fri, 28 May 2004, Luiz Fernando B. Ribeiro wrote:
> On Thu, 27 May 2004 16:04:48 -0500 (CDT), Ben Kim &
directory, i.e. c:\program
files\macromedia\dreamweaver...
Would yours be a server model for dreamweaver? I'd be glad to try it.
Thanks.
Ben Kim
On Fri, 28 May 2004, Luiz Fernando B. Ribeiro wrote:
> On Thu, 27 May 2004 16:04:48 -0500 (CDT), Ben Kim <[EMAIL PROTECTED]>
> wr
I know it is so by default, but we did change many
settings so would like to get a clue to restoring the capability.
Does anyone have some advice?
Thanks.
Ben Kim
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
s Embperl 1.3.4, mod_perl 1.27 and Apache 1.3.26 Unix.
Thanks.
Ben Kim
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
ile would.
Then we found that replacing the above with this line made them work
again.
$req_rec -> content_type ('application/vnd.ms-excel');
We would have made some changes in configuration but couldn't track the
cause down. Just an observation, in case anyone ha
fig)
> Embperl_Mail_Errors_To
> config directive
Thanks to Luiz and Gerald for the advice.
We are on 1.3 and are not using Embperl::Object yet. I hope I can use the
above regardlessly. I know I can use Execute, but I'm not familiar about
the extensions epo and epr. What is the pod tha
ce? I hope to handle it within embperl, if
possible, without running a separate script.
Also, what is the best way to implement an "errorpage" which will be the
default destination for users if any error occurs?
Regards,
Ben Kim
44 matches
Mail list logo