open2() write doesn't go anywhere

2001-06-14 Thread Ime Smits
Sorry if this is already somewhere in the faq or just plain stupid, but I couldn't find any satisfying answer or workaround to this. When I do something like: -- use IPC::Open2; ... if($state-{pid} = open2(my $rx,my $tx,'/usr/bin/ispell','-S', '-a')) { $state-{header} = scalar $rx;

dev,ino namespace [was: Re: Apache::Registry - a thought]

2001-05-02 Thread Ime Smits
| It occurs to me that there would be no overhead to speak of in using a | sequence number, given that Apache::Registry already maintains a hash for | its generated package names for mtime checks. Something like: Why not use (stat($script))[0,1] device and inode numbers of the script being

mod_vhost_alias / ProxyPassReverse problem

2001-02-12 Thread Ime Smits
Hi, I have a mod_perl backend listening on *:81 and a proxy in front of it listening on *:80, both using mod_vhost_alias configured with VirtualDocumentRoot /www/site/%0 i.e. www.mydomain.com will have /www/site/www.mydomain.com as it's document root. The frontend has IfModule !mod_perl.c

Re: mod_vhost_alias / ProxyPassReverse problem

2001-02-12 Thread Ime Smits
For what it is worth, I once again fixed my own problem by hacking http_core.c on the backend: [root@nobel src]# diff -U 6 ../build/apache_1.3.14/src/main/http_core.c http_core_hack-1.3.14.c --- ../build/apache_1.3.14/src/main/http_core.c Tue Oct 10 19:33:09 2000 +++ http_core_hack-1.3.14.c

Re: mod_vhost_alias / ProxyPassReverse problem

2001-02-12 Thread Ime Smits
| Use the following config: | Listen 81 | Port 80 | In the presence of a Listen directive, the Port directive acts like | ServerName, i.e. it's what the server calls itself regardless of the | name that other people use to get to it. OK, thanks a lot, that does the trick. I tried that earlier

Re: CGI scripts mod_perl

2000-11-19 Thread Ime Smits
| How do we make sure regular CGI scripts are using mod_perl??? | Is there a way to find out? Check $ENV{MOD_PERL}, it should read something like "mod_perl/1.24". Ime - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: [OT] $r-header_out(Location=$dst) browser response

2000-11-19 Thread Ime Smits
| Is there a way to tell the browser(s) not to make this same substitution in | the near future? | Or, is there a better way to do a one time only redirect from within a | dynamic page? I don't expect IE to do anything by the rules, but maybe you can experiment with sending an explicit Status:

Bunch of need AuthName in error.log

2000-11-19 Thread Ime Smits
Hi, Today I upgraded to Apache 1.3.14, mod_perl 1.24_01, Apache::ASP 1.27, which seems to work just fine, except that for *each* mod_perl script being executed I get something like [Mon Nov 20 05:22:13 2000] [error] [client 192.168.31.31] need AuthName: /site/gpsmap.plp in my error.log,

Re: VB scripts w/ Apache::ASP - Ime?

2000-11-14 Thread Ime Smits
| Incidentally, I'm very interested in that add-on that'll allow Apache::ASP | to process VB scripts. Since I'm not too familiar with the field, I was | just wondering who or what Ime is? If it is an institute of mechanical | engineering, which university's is it? It's just a single person who

Re: Converting pseudo URI to QueryString

2000-10-12 Thread Ime Smits
| I can convert pseudo URI kinda /band/134/ to /band.asp?id=134 via | mod_rewrite, but I want to configure this at runtime, without restarting | Apache... I want to use Apache::ASP further and get this ability... | Any advices ? Consider changing your naming scheme to band.asp/134 and get your

Scheduling an Apache child for termination/influence MaxRequestsPerChild counter

2000-09-26 Thread Ime Smits
Hi, I wonder if it's possible to somehow alter Apache's internal counter matched against MaxRequestPerChild or schedule the launching of a new child from withing mod_perl. The reason I want to do this, is that in the administrator section of my website, quite some stuff gets cached from the

Re: INI like package

2000-09-20 Thread Ime Smits
| Is there any perl package for using windows ini files ? Yep, but you should have tried http://search.cpan.org first. Ime

Re: OT: Server-push client page reload

2000-09-20 Thread Ime Smits
| Plain old meta refreshes. Usually every 5 or 10 seconds or so. Perhaps | configurable on a user and/or server basis. You could make it even more smooth by doing a multipart document (aka server push): finishing a HTML document but not closing the HTTP connection and start a new document as

Re: OT: Server-push client page reload

2000-09-20 Thread Ime Smits
| I was under the impression that internet explorer dropped support for | server push... OK, didn't know that. We should probably lawsuit them for telling us "Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)" then ;) Ime

Re: [slightly OT] cache refusal problem with IE, http headers

2000-09-19 Thread Ime Smits
| In your Apache::ASP version, try setting Expires to tell IE | to cache explicitly... | $Response-{Expires} = 86400; # cache until tomorrow I did that. And and also tried $r-add_header('Expires',HTTP::Date::time2str(time+86400)); in a normal .pl file. In fact, the first header dump in my

Re: [slightly OT] cache refusal problem with IE, http headers

2000-09-19 Thread Ime Smits
| I saw your header, but couldn't tell that it was for tomorrow, | with the GMT time zone info. I don't read GMT go figure ;) Euhmmm... If I'm not mistaken, 19 october actually is next *month*, even in your timezone ;) | ... maybe IE is "smart" enough to see the .pl in the path and guess |

Re: [slightly OT] cache refusal problem with IE, http headers

2000-09-19 Thread Ime Smits
OK, did it the hardway: after a lot of tcpdump -i -s 500, grepping and stringing, I tackled it. Halfway. IMHO, it boils down to both a IE bug and a somehow 'hidden' feature of Apache. It seems that on script execution an extra header "Vary: Host" is sent to the browser. This is what the RFC's

Re: [slightly OT] cache refusal problem with IE, http headers

2000-09-19 Thread Ime Smits
| 8 Content-Length: 294 | 8 Content-Length: 327 | How come that the sizes are different? The images are dynamically generated png's with GD, but however the contents may change every time you view a page, it's not necessary for the browser to constantly get a fresh copy when doing a javascript

Apache::ASP rand, srand and fork...

2000-09-19 Thread Ime Smits
Hi, OK, I have nailed down a second major headache I suffered from last week: authentication keys for server generated emails which did appear to be not as random as I hoped. It seems that within Apache::ASP (probably mod_perl) the pseudo random number generator (rand) is not reinitialized

Re: Apache::ASP rand, srand and fork...

2000-09-19 Thread Ime Smits
| Yes, perl doesn't reset the 'random generator initialized' status on | fork, which it arguably should: For normal perl I can agree that fork() doesn't do something magic with the pseudo random generator and just makes an exact clone of everything. Most of us will only do expicit fork() with a

Re: Apache::ASP

2000-09-16 Thread Ime Smits
| % | Application.Lock | Application("strDate") = Now | Application("CountVisitors") = Application("CountVisitors") + 1 | Application.Unlock | % That's VisualBasic script, Apache::ASP scripts are written in Perl: % $Application-Lock(); $Application-{"strDate"} = time;

Re: perl initialization per virtual host... is it possible

2000-09-14 Thread Ime Smits
| I meant a different startup per virtual host, not per child process. It's perfectly ok to specify a PerlRequire for each virtual host or even in .htaccess, but I think that's a dirty habbit to get into. As the complete perl namespace is shared between all your virtual hosts there is really

[OT] multipart/mime messages [was: Re: Missing src/include/alloc.h ?]

2000-08-27 Thread Ime Smits
You should compose a multi-part mime message in that case. I'm not sure if there are modules around to do that in perl, but the quick and dirty thing I once did is just compose a message with inline images and stuff in Netscape or Outlook, send it to myself, copy and paste the message source

Re: VB Parser

2000-08-25 Thread Ime Smits
| No, it doesn't seem to be going forward at the moment. Ime Smits says he has something put | together that's _almost_ usable, but needs help building perl equivalents of all the VBScript | functions. I'm still waiting on his initiative to get going... | Note to Ime: This is not a criticism

Re: Apache::ASP installation woes

2000-08-06 Thread Ime Smits
| Anyway, now I get | -- | [Sun Aug 6 00:17:55 2000] [error] Undefined subroutine Apache::ASP::handle | r called. | | Any ideas where that is coming from? There really is a handler subroutine | in

Re: Apache::ASP installation woes

2000-08-01 Thread Ime Smits
| [Tue Aug 1 04:57:55 2000] [error] Can't locate loadable object for module | Di | gest::MD5 in @INC (@INC contains: /usr/home/drjoelsc/usr/local/lib/site_perl I guess you did not run the install with the CPAN installer, so in that case you should figure out quite some depencies yourself. In

Re: VBScript::Parser

2000-07-28 Thread Ime Smits
| To a VBScript parser it should die. So you could define the concept of how | to write "$response-write( ... );" in other languages somehow, in the | actual class that implements (or calls) the parser. That way pluging in a | JScript parser becomes easier, and you could even support multiple |

VBScript::Parser

2000-07-27 Thread Ime Smits
| Well you still have to implement a VBScript parser (Damian, of course, | implemented a latin parser), and the problem is that ASP is parsed by | Apache::ASP, not by perl, so you'd have to make use of the VB parser at | that point. Hi, just wanted to let you know, I'm going to pick this up in

Re: VBScript::Parser

2000-07-27 Thread Ime Smits
| No. The problem is that it would be really great if this could be a | generic VBScript parser, rather than an ASP/VB parser. s/(.*?)%(.*?)%/parse_html($1).parse_vb($2)/seg, so don't worry - you'll get your generic method ;) Ime

Re: Help needed building mod_perl

2000-07-26 Thread Ime Smits
| It's part of mod_perl. Now to the question whether it's really installed: | | locate '*[Aa]pache/[Ll]og*' | /usr/lib/perl5/site_perl/5.005/ppc-linux/Apache/Log.pm | /home/root/.cpan/build/mod_perl-1.24/blib/lib/auto/Apache/Log |

Re: Help needed building mod_perl

2000-07-26 Thread Ime Smits
| | /usr/lib/perl5/site_perl/5.005/ppc-linux/Apache/Log.pm OK, overlooked that first line. Sorry. Desperate in need of some coffee ;) Ime

Re: VBScript parser (was Re: Apache::ASP Question)

2000-07-25 Thread Ime Smits
| so are you actually going to write a VBScript to perl parser? I was actually | thinking of undertaking this project myself, but I've never written a lexer | or a parser or anything like that. For what it's worth: Some months ago I was facing the problem of moving several ASP scripted

Re: Apache::ASP

2000-07-06 Thread Ime Smits
| I got this error always when running /site/eg/index.html | | /www/htdocs/site/eg/.htaccess: Invalid command 'PerlSetVar', perhaps | mis-spelled or defined by a module not included in the server configuration. | | Is there a clue ? You probably didn't compile mod_perl with Apache, or you

Re: Apache::ASP problems

2000-07-06 Thread Ime Smits
On Thu, 6 Jul 2000, Vincent Bruijnes wrote: | Well the first lines of the error_log are strange for me. | I still come closer to a correct apache modperl and asp. | the /site/eg/index.html works only .asp files don't Let's see: can't create group dir /tmp/asp_demo/server,

Re: How do I get modperl and php to coexist?

2000-06-13 Thread Ime Smits
| works fine and php simply doesn't work. When I try a GET on a *.php3 page, | my browser wants to save it. That symptom addressed in the php faq (#6.8) Look for a line like AddType application/x-httpd-php3 .php3 .php .phtml in your httpd.conf. If it ain't there, that's propably your

Re: mod_perl, mod_rewrite, package namespace

2000-06-04 Thread Ime Smits
Hi, I just wanted to let you know that (once again) re-RTFM the manual *twice* solved my muliple compilation problem. The solution is adding [PT] to the RewriteRule. RewriteRule ^/query/(.*) /query.pl?$1 [PT] -- http://www.apache.org/docs/mod/mod_rewrite.html: 'passthrough|PT' (pass through

Re: $ENV{PATH} set by mod_perl script affects mod_cgi scripts

2000-06-03 Thread Ime Smits
| I know that the old CGI scripts probably shoudn't rely on PATH | but they do and there are too many to fix right away. To rely on $ENV{PATH} is one thing. But why would a mod_perl script ever need to *change* it? Ime

Re: Urgent : How do I redirect to multiple frames?

2000-05-26 Thread Ime Smits
| Hi all, | | How can one redirect HTML docs to |different frames from WITHIN a single PERL script | | Example I have a perl script which generates 3 HTML code output for | three frames. Now how can I specify that this HTML is for this frame You can't. What I do is let my

Re: Error in running apache::asp, part 3

2000-05-25 Thread Ime Smits
| [error] Undefined subroutine Apache::ASP::handler called. | what does it mean? | How to fix it? Considering the errors you posted the past hour, I think something went wrong during the Apache::ASP installation. Consider installing Apache::ASP once again with the cpan installer (possibly use

Re: Apache::ASP #include virtual loses variables

2000-05-20 Thread Ime Smits
| Well, I would like to suggest that you consider including !--#include | virtual-- in the Apache::ASP distribution, so that included files use the | same namespace. It doesn't make sense logically that include virtual | behaves differently from include file (other than the way the |

Re: To-Experts: BIG problem: my variables in nested subroutines,whic h call each other

2000-05-09 Thread Ime Smits
| QUESTION: But how should I transform the script, if the anonymous subs call | each other? | I get always the following error: | Undefined soubroutine main:: called at script-file line line-no. | I don't know how to solve this. Is there any solution for this? Can I make | any prototype defs for

Re: NET::SMTP

2000-05-05 Thread Ime Smits
| Where do I get the win32 version of NET::SMTP module??? Duh... Ever considered http://www.cpan.org? Ime

Re: Apache::ASP not working under FreeBSD 4

2000-05-05 Thread Ime Smits
... | The server starts w/o problems. Perfect. OK, your at lest 90% done now. ... | file:/usr/home/cap/apache_ASP/Apache-ASP-0.18/site/eg/index.htm That wouldn't work, because then you don't communicate via Apache, nothing gets executed, it's just like you do a normal cat on the file. ...

Re: MS IE does not accept my cookies!

2000-04-30 Thread Ime Smits
| If you specify "expires", you are specifying a persistent cookie, | one which gets stored to disk. Without "expires", you are asking | that the cookie only be stored in memory during the browser session, | and I would not expect it to be subject to the same cookie security. | In fact, if

Re: out of memory

2000-04-28 Thread Ime Smits
Getting mod_perl to suck up all RAM ain't that difficult. But you have to give us details... Ime - Original Message - From: FEITO Nazareno [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, April 28, 2000 14:22 Subject: out of memory I´ve installed apache 1.3.12 and mod_perl 1.23

Re: Apache Redirection

2000-04-28 Thread Ime Smits
| I have a problem loading pictures on IE5, www.obsequie.com and | www.obsequie.com.ar -(this redirect to www.obsequie.com) is having troubles | ith load images from IE5, with Netscape all is ok but with IE5 no images on | the screen, is a problem about apache? If you even get MSIE not to

Apache::ASP rules [was: Sorry men]

2000-04-27 Thread Ime Smits
| Oh, almost forget it... ASP is a loose of time on developer time... and the | module is to heavy, sorry but betwen oracle and ASP our server is down in | performance, we run unix on a SGI and with 256mb ram... | If you are trying to put ASP cause you don´t want to break the designer | work, you

Re: php And Apache::ASP

2000-04-27 Thread Ime Smits
| Are php3 and ASP mutually exclusive? Nope... I have Apache/1.3.12 (Linux 2.2.12), PHP/3.0.15, mod_perl/1.21_03 and Apache::ASP running perfectly well together. On another system PHP/4.0RC1 is working in the same environment just as fine. However, as I don't like the RedHat provided RPMs I

Re: mod_proxy problem

2000-04-25 Thread Ime Smits
| VirtualHost _default_:8082 |DocumentRoot "/app/env_control/httpd/DocumentRoot" |Location "/Test" | # disable mason for this location | SetHandler default-handler |/Location |ProxyPass/Test/ http://myhost:8084/Test/ |ProxyPassReverse /Test/

Re: cgiwrap for Apache::ASP?

2000-04-16 Thread Ime Smits
| Also, my system has cgiexec (does suid for CGI scripts) installed. The | cgiexec documentation says that once cgiexec is installed, it is a | security risk if people can execute code as "nobody" since that user has | special access to the cgiexec code. Right now, anyone can execute code as |

Re: cgiwrap for Apache::ASP?

2000-04-16 Thread Ime Smits
| Huh? SuEXEC only works with mod_cgi (e.g. it requires the exec() part of | it's name to get the Su part), it is not applicable to the persistant | mod_perl world. Ok, I must admit I mixed up referals to the concept (setuid()) and the imlementation (suexec). The point I was making was that

Re: Apache::ASP problem running the example.

2000-04-14 Thread Ime Smits
| I installed the Apache ASP package and the mod_perl with the Apache server. | I guess there is no error in the setup and everything should run fine. | Then I run the example. When I try to run index.html, it returned a error | message saying that it couldn't find the global.asa or something

Re: cgiwrap for Apache::ASP?

2000-04-14 Thread Ime Smits
| I also have ASP installed, and I'd like to be able to transparently suid | the .asp scripts too. Do you know how I could go about doing this? I think this is a general bad idea. The only purpose of running scripts via a suexec or setuid mechanism I can think of is to stop different users

Apache::ASP and gzip/inflate compression

2000-04-12 Thread Ime Smits
Hi, I would like to apply gzip or inflate compression on the response from Apache::ASP, because my application generates a lot low-entropy table-structures which can be compressed down to 90-95%. On a normal CGI script I would do something like: print "Content-type: text/html\n"; print "Pragma:

Re: [asp] $Response-{FontFace} ?

2000-03-28 Thread Ime Smits
- Original Message - From: Joshua Chamas [EMAIL PROTECTED] To: Mod Perl [EMAIL PROTECTED] Sent: Tuesday, March 28, 2000 09:45 Subject: [asp] $Response-{FontFace} ? | I have a huge site that I want to apply a generic font face | to with Apache::ASP. Has anyone here ever been bothered