Re: 9999: Error (no description) Unstructured forward jump

2009-10-12 Thread Ben Kim
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

Re: $cnt doesn't work for me as advertised

2007-09-26 Thread Ben Kim
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

RE: RE: error document

2007-07-06 Thread Ben Kim
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

RE: Breaking space in an [$ if $] block

2007-06-25 Thread Ben Kim
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]

RE: error document

2007-06-08 Thread Ben Kim
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.

error document

2007-05-31 Thread Ben Kim
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

RE: embperl syntaxes

2007-05-03 Thread Ben Kim
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:/

RE: embperl syntaxes

2007-05-01 Thread Ben Kim
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

RE: embperl syntaxes

2007-05-01 Thread Ben Kim
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 -

embperl syntaxes

2007-04-27 Thread Ben Kim
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 -

error page problem

2006-02-09 Thread Ben Kim
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

error page problem

2006-02-09 Thread Ben Kim
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

RE: [re] errors not shown on page Remove Highlighting

2006-02-08 Thread Ben Kim
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

question

2006-01-31 Thread Ben Kim
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]

[re] errors not shown on page

2006-01-19 Thread Ben Kim
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 not shown on page

2006-01-19 Thread Ben Kim
_ERRORS'); @myerr = @{$errors}; Regards, Ben Kim Developer http://benix.tamu.edu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Executing a cgi script

2005-12-19 Thread Ben Kim
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

RE: epl page printing headers

2005-11-28 Thread Ben Kim
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]

epl page printing headers

2005-11-27 Thread Ben Kim
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

RE: mod_perl / embperl upgrade

2005-11-24 Thread Ben Kim
>> 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

mod_perl / embperl upgrade

2005-11-23 Thread Ben Kim
 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

javascript variables in embperl tag

2005-11-18 Thread Ben Kim
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:/

Re: Apparent Nesting Problem

2005-04-25 Thread Ben Kim
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

RE: saving snapshot of the page

2005-04-18 Thread Ben Kim
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

saving snapshot of the page

2005-04-01 Thread Ben Kim
$ 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

Re: drop down calendar

2005-03-16 Thread Ben Kim
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

drop down calendar

2005-03-15 Thread Ben Kim
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

Re: question: log file line

2005-03-08 Thread Ben Kim
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

question: log file line

2005-03-07 Thread Ben Kim
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,

RE: 'apr.h' no such file

2005-02-06 Thread Ben Kim
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

'apr.h' no such file

2005-02-04 Thread Ben Kim
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

Re: pdf generation

2005-02-01 Thread Ben Kim
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

RE: pdf generation

2004-09-28 Thread Ben Kim
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

Re: pdf generation

2004-09-28 Thread Ben Kim
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

Re: pdf generation

2004-09-28 Thread Ben Kim
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

RE: pdf generation

2004-09-22 Thread Ben Kim
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

pdf generation

2004-09-20 Thread Ben Kim
. (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]

Re: changing file extension from epl to html

2004-05-31 Thread Ben Kim
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 &

Re: changing file extension from epl to html

2004-05-31 Thread 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

changing file extension from epl to html

2004-05-27 Thread Ben Kim
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]

Re: Just an observation - content type

2004-04-28 Thread Ben Kim
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]

Just an observation - content type

2004-04-27 Thread Ben Kim
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

Re: error trapping and notice

2004-04-15 Thread Ben Kim
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

error trapping and notice

2004-04-13 Thread Ben Kim
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