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 compil

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 tod

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 M

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 RewriteEngine On

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, however

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: 30

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 additional

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 ha

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 id

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 Post

Re: print command in asp

2000-09-22 Thread Ime Smits
| I would like to ask if I can use the print and printf perl commands in an asp page. | I tried to include these commands but it didn't work. <% printf("hello world, unix time is %d now",time); %> is perfectly correct syntax in Apache::ASP. Ime

Re: Uploading File

2000-09-22 Thread Ime Smits
| ready to pull my hair outanother problem i have to deal with is | that the banners have to go into different directories within the | banner directory depending on what size they are. Can anyone give me As for the size problem, check out Image::Size NAME Image::Size - read the dime

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: 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 soon

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: 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 g

Re: Apache::ASP can't modify concatenation...

2000-09-19 Thread Ime Smits
| Here's a snippet of the code:- | <%@LANGUAGE="JAVASCRIPT"%> Now, compare that with the name of this mailing list and you've got a clue about what's going wrong. Ime

Re: Apache::ASP can't modify concatenation...

2000-09-19 Thread Ime Smits
| [Tue Sep 19 18:26:10 2000] [error] [asp] [1] [error] Can't modify | concatenation (.) in | scalar assignment at (eval 37) line 3, at EOF <--> , | /usr/local/lib/perl5/site_perl/5.6.0/Apache/ASP.pm line 1740 | Looking at the above file, line 1740 is as indicated below: For debug information

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 (sran

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 javascrip

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 sa

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 | that

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 pre

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

2000-09-19 Thread Ime Smits
Hi, I tried to nail this problem down for over 6 hours now. I use GD.pm to dynamically generate images used in a dynamically generated Apache::ASP page. Each image is given a name which is unique (in fact: a md5 on the original name, width, height, color depth). Some of these images are used in 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; $Applicati

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 n

[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 inclu

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

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 ../Apach

Re: APACHE::ASP install problem ?

2000-08-04 Thread Ime Smits
| [root@dilitium Apache-ASP-2.03]# perl Makefile.PL | Checking for the prerequisite modules... | !!! you need the module: HTTP::Date | WHY: Provides mapping between Perl time() and HTTP dates | ... found MD5 ! | !!! you need the module: MLDBM | WHY: This is used for reading and writin

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 you

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 | l

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

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 ab

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: 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 | /home/root/.cpan/build/mod_perl-1.24/blib/lib/auto/Apache/Log/.exis

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 IIS/Micro

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, /usr/local/lib/perl5/

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 did

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 problem.

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 to

mod_perl, mod_rewrite, package namespace

2000-06-04 Thread Ime Smits
Hi, I have a script which takes some input variables in the QUERY_STRING, let's say: http://localhost/query.pl?archive=1&chapter=2§ion=3&subsection=4 This is working fine from the user perspective. But, I found out that most search engines just discard the querystring, so my site won't get inde

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: Apache::ASP

2000-05-27 Thread Ime Smits
| | SetHandler PerlScript | PerlHandler Apache::ASP | PerlSetVar Global /tmp | | | When I try to run the sample asp applications from the | eg directory, for example | http://localhost/eg/application.asp I don't get any | errors, but th

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 sc

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 fo

Re: Apache::ASP #include virtual loses variables

2000-05-20 Thread Ime Smits
| Well, I would like to suggest that you consider including 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 | filename/pathname is interpreted, of

Re: Apache::ASP #include virtual loses variables

2000-05-20 Thread Ime Smits
| > I would not do it this way, in fact the way I would do this | > would not be with your methods at all, unless you want | > to have each section to be arbitrarily different and | > maintained by separate graphics designers. The way I would | > do this thing is to lose the directory structure c

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 line . | I don't know how to solve this. Is there any solution for this? Can I make | any prototype defs for such subroutines?

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: 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: 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 Netsca

Re: MS IE does not accept my cookies!

2000-04-28 Thread Ime Smits
| $ENV{EMBPERL_SESSION_CLASSES} = "FileStore SysVSemaphoreLocker"; | $ENV{EMBPERL_SESSION_ARGS}= "Directory=/tmp/algebra.com/sessions"; | $ENV{EMBPERL_COOKIE_PATH} = "/"; | $ENV{EMBPERL_COOKIE_DOMAIN} = ".algebra.com"; | #$ENV{EMBPERL_DEBUG} = 1; Well... I don't know if you fixed this already

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 recogn

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.2

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 built

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: mod_proxy problem

2000-04-25 Thread Ime Smits
| |DocumentRoot "/app/env_control/httpd/DocumentRoot" | | # disable mason for this location | SetHandler default-handler | |ProxyPass/Test/ http://myhost:8084/Test/ |ProxyPassReverse /Test/ http://myhost:8084/Test/ | | | When I try to access location /Test

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 even

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 | nob

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 & webs

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 lik

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 bother