Re: Apache::Session and user sessions

2002-12-09 Thread Rafiq Ismail (ADMIN)
On Mon, 9 Dec 2002, Perrin Harkins wrote: > md wrote: > > My question is with regards to whether I need or > > should put the submitted data into the session as the > > user navigates the forms (to create an account). The > > user will be taken through three forms to create an > > account. So for

Re: Newbie: Why does my script prompt to be downloaded intermittantly?

2002-11-21 Thread Rafiq Ismail (ADMIN)
On Thu, 21 Nov 2002, Trevor Joerges [SendMIME Software] wrote: > behavior is intermittent. I've read the mod_perl pitfalls and the > "PerlSendHeader" is set to "on" in my config file. Is there something else I > need to add or remove? Hi Treveor, I've seen three fixes to this sort of problem in th

Re: AW: Apache::DBI and password security

2002-11-15 Thread Rafiq Ismail (ADMIN)
On Fri, 15 Nov 2002, [iso-8859-1] "Faßhauer, Wolfgang, FCI3" wrote: >>Hmm. I think that the guy who wrote Blowfish_PP would cut my > danglies off >>for that one. > >This is an interesting idea. Cutting my danglies off? hmm. Sounds painful. >Many thanks to you, Rafiq! s'ok, although I wouldn't

Re: AW: Apache::DBI and password security

2002-11-15 Thread Rafiq Ismail (ADMIN)
On Fri, 15 Nov 2002, [iso-8859-1] "Faßhauer, Wolfgang, FCI3" wrote: > > Have you thought of running your webserver as some 'www' user? You can > > then make your scripts readonly by a 'dev' group which the www user and > > the developes are members of. > >CORRECT: > >'readonly' should be 'only rea

Re: Apache::DBI and password security

2002-11-15 Thread Rafiq Ismail (ADMIN)
On Fri, 15 Nov 2002, Rafiq Ismail (ADMIN) wrote: > On Fri, 15 Nov 2002, [iso-8859-1] "Faßhauer, Wolfgang, FCI3" wrote: > > one database user because of resource limits. The problem I see is that the > > password for connecting to the database is clear readable in the

Re: Apache::DBI and password security

2002-11-15 Thread Rafiq Ismail (ADMIN)
On Fri, 15 Nov 2002, [iso-8859-1] "Faßhauer, Wolfgang, FCI3" wrote: > one database user because of resource limits. The problem I see is that the > password for connecting to the database is clear readable in the perl > script. > Does anybody know how to hide that password? Have you thought of run

Help - SEGFAULTS on 'PerlModule' after version upgrade

2002-11-14 Thread Rafiq Ismail (ADMIN)
Ugggh: My software works with the 'original server settings', (apache 1.3.24/mod_perl 1.26) see below(1), under linux. It doesn't work with 'new server settings', (apache 1.3.26 / mod_perl 1.26) see below(2), under freeBSD. Symptoms: With the new build, I get seg faults with 'some' of the PerlMo

Re: More Segfaultage - FreeBSD, building apache, ssl, mod_perl from ports

2002-11-12 Thread Rafiq Ismail (ADMIN)
On Tue, 12 Nov 2002, Dominic Mitchell wrote: > > I'm sure that the BSD users amoungst you have all done it 101 times. > > Nope, ports only supports mod_perl as a DSO. oh, poop. > The alternative is to use something like apache toolbox[1] to install it > all in one go. If you want to be sneaky, y

More Segfaultage - FreeBSD, building apache, ssl, mod_perl fromports

2002-11-12 Thread Rafiq Ismail (ADMIN)
I'm a bit irritated by FreeBSD ports at the moment and need somoene to shine some light. I need to build Apache from ports on a BSD box - it has to be from ports - but i don't want to include mod_perl in as a dso. Thus, I'd like to go to ports and 'Make' with a bunch of options which will compile

Re: Help mod_perl 1.27 and DB

2002-11-08 Thread Rafiq Ismail (ADMIN)
On Fri, 8 Nov 2002, Tony Simbine wrote: > GET http://www.myhost.com/myscript.perl > >now I get the results as expect > GET http://www.myhost.com/myscript.perl > >now I get an error > wenn i reload my apache-webserver, then i allways get the expected page. > how can i resolve it? You know he's ri

Re: Is there an easy way to trace / debug Apache::DBI (Postgres)leaks?

2002-10-16 Thread Rafiq Ismail
On Wed, 16 Oct 2002, Kirk Bowe wrote: > my $dbh = DBI->connect ("dbi:Pg:dbname=hello", "postgres", "foo"); > my %orig = (); > my @attrs = qw(AutoCommit RaiseError); > $orig{$_} = $dbh->{$_} for @attrs; > $dbh->{AutoCommit} = 0; $dbh->{RaiseError} = 1; > > When I later do the $dbh->commit, it

Re: current state of conf/code, feedback?

2002-10-15 Thread Rafiq Ismail
On Tue, 15 Oct 2002, Paul Simon wrote: > variables, such as the DBI handle, offer any benefits (or pain) of a > shared connection? You might want to try using Apache::DBI for persistent connections. It is completely transparent to your code, in terms of changes. R. -- Senior Programmer Bookings

Re: Apache::DBI and CGI::Application with lots of modules. (fwd)

2002-10-14 Thread Rafiq Ismail
On Mon, 14 Oct 2002, Eric Frazier wrote: > >That looks like voodoo code copied from a man page. If you call this as > >Holds->new(), you don't need that junk about ref. (And most people > >recommend against the "new Holds" syntax.) > > I wanted the DBH to be global since just about every sub in

Re: Apache::DBI and CGI::Application with lots of modules.

2002-10-14 Thread Rafiq Ismail
On Mon, 14 Oct 2002, Eric Frazier wrote: > >That looks like voodoo code copied from a man page. If you call this as > >Holds->new(), you don't need that junk about ref. (And most people > >recommend against the "new Holds" syntax.) > > I wanted the DBH to be global since just about every sub in

Re: Forking process

2002-10-09 Thread Rafiq Ismail
On Wed, 9 Oct 2002, Anton Permyakov wrote: > Hi all, > > I need to start process, which would get big amount of data from another > server into my DataBase, > and while it will do it, my browser should show me progress-bar on this data > extraction. > I have mod_perl based web-server, so, i shoul

[Silly Problem] Error Logs all over the place

2002-10-02 Thread Rafiq Ismail
Hi People, I'm trying to figure out why something is happening and after a failed very silly idea of forking, backticks, greps and strace, I seek your help! Background -- Using: moya# /usr/local/sbin/httpd -v Server version: Apache/1.3.26 (Unix) Server built: Jul 2 2002 13:08:13 On

[Silly Problem] Error Logs all over the place

2002-10-02 Thread Rafiq Ismail
Hi People, I'm trying to figure out why something is happening and after a failed very silly idea of forking, backticks, greps and strace, I seek your help! Background -- Using: moya# /usr/local/sbin/httpd -v Server version: Apache/1.3.26 (Unix) Server built: Jul 2 2002 13:08:13 On

[Silly Problem] Error Logs all over the place

2002-10-02 Thread Rafiq Ismail
Hi People, I'm trying to figure out why something is happening and after a failed very silly idea of forking, backticks, greps and strace, I seek your help! Background -- Using: moya# /usr/local/sbin/httpd -v Server version: Apache/1.3.26 (Unix) Server built: Jul 2 2002 13:08:13 On

Re: OT: Help with SQL SELECT on Varchar from character 0..n

2002-09-17 Thread Rafiq Ismail (ADMIN)
Doh! SUBSTR - I forgot to wear my brain this morning. On Tue, 17 Sep 2002, Rafiq Ismail (ADMIN) wrote: > Hi, > > I'm using postgres and remember having done something ages ago with some > operator in mysql, although it makes zero sense to me now as to how I did > it the

OT: Help with SQL SELECT on Varchar from character 0..n

2002-09-17 Thread Rafiq Ismail (ADMIN)
Hi, I'm using postgres and remember having done something ages ago with some operator in mysql, although it makes zero sense to me now as to how I did it the first time. What I want to do is have a select return a partial string from the ith character of a string to the jth character of a string

Apache::Session HELP!

2002-08-09 Thread Rafiq Ismail (ADMIN)
Hi, I'm in major poop. Got a presentation soon and my just implemented, implementation of Apache::Session is not working as per the man page. I've set commit to 1 and tied a session to a postgres database. I then set a field and check the table it's not there. When I later do a fetch on it, I

RE: Some wierd problem with mod_perl and Apache

2002-08-03 Thread Rafiq Ismail (ADMIN)
On Sat, 3 Aug 2002, Ged Haywood wrote: > Hi there, > > On Sat, 3 Aug 2002 [EMAIL PROTECTED] wrote: > > > Well I wouldn't use CGI.pm just to call param(). > > > > If I don;t use CGI.pm, it complains during compilation > > - Undefined subroutine &Apache::ChangePassword::param. > > Yup. You need t

RE: CGI Scripts w/mod_perl

2002-07-26 Thread Rafiq Ismail (ADMIN)
On Fri, 26 Jul 2002, Mark Coffman wrote: > Try running "which perl" and use that path for your #!/usr/bin/perl line. > Then rename your script as .cgi and see if that helps. Um.. yeah, ignore all my "locate" tribble. 'which' is the way to go. That wasn't a question.

PerlSendHeader and $r->header_out

2002-07-25 Thread Rafiq Ismail (ADMIN)
Hi People With Functioning Brain Cells, I'm having a brief period of grief, which I'm sure I've been through before. I have this situation where I set a cookie using: $r->header_out('Set-Cookie'=>$cookie); Now this is all fine, however I'm having a major problem in getting my header into the ri

Caching in TT2 or Some Mod Perl oddity

2002-06-26 Thread Rafiq Ismail (ADMIN)
I'm in a baffled state, ladies and gentleman. I'm using TT2 to ultimately display some pages, however I'm having some rather odd behaviour creeping in. In my template constructor I have CACHE_SIZE set to 0. I have a page which - even after a server restart - reverts to an older version of the p

Idiot question: headers at the base of the page.

2002-06-12 Thread Rafiq Ismail (ADMIN)
I'm doing squinty eyed coding and need someone to knock common sense into me. In the right order - as far as I can see - I have my content_type ;send_http_headers; $r->print'ed. With loads of poo in between. Under what circumstances would my page render, dumping the HTTP headers at the base? O

Re: [OT] MVC soup (was: separating C from V in MVC)

2002-06-06 Thread Rafiq Ismail (ADMIN)
> On Thu, 6 Jun 2002, Bill Moseley wrote: > > > Anyone have links to examples of MVC Perl code (mostly controller code) > > that does a good job of M and C separation, and good ways to propagate > > errors back to the C? I'm working on my own impelmentation at the moment and am planning to have a

Re: [OT] MVC soup (was: separating C from V in MVC)

2002-06-06 Thread Rafiq Ismail (ADMIN)
On Thu, 6 Jun 2002, Bill Moseley wrote: > Anyone have links to examples of MVC Perl code (mostly controller code) > that does a good job of M and C separation, and good ways to propagate > errors back to the C? "http://pagekit.org,"; might be interesting. Fiq

Re: MVC advice..?

2002-05-29 Thread Rafiq Ismail (ADMIN)
Ello, On 29 May 2002, Randal L. Schwartz wrote: > >>>>> "Rafiq" == Rafiq Ismail (ADMIN) <[EMAIL PROTECTED]> writes: > Rafiq> Is there a neat way of dynamically loading in the appropriate control > Rafiq> subclass? Something proven and widely us

MVC advice..?

2002-05-29 Thread Rafiq Ismail (ADMIN)
Hi, I'm building an MVC architecture site and have hit a design issue. I have varoius Control subclasses which relate to different templates with different behaviour. Now my problem is that I have to assign which Subclass I want to instantiate, based on the script and params. I my last effort

Re: tt2 using mason tags

2002-04-08 Thread Rafiq Ismail (ADMIN)
> Mark Fowler wrote: > Agreed. Also, any significant Mason component is likely to use Mason's > built-in object model, which is not part of TT. You will probably have > to port some code before it will run. Understood, but it's a small application which is more custom o.o. perl and inline perl

tt2 using mason tags

2002-04-08 Thread Rafiq Ismail (ADMIN)
Hi, I'm experimenting with conversion of a mason template based system to tt2. I tried to set TT2Tags to mason and then to <% > however this, even with the evaluate option to on, doesn't seem to work. (Apache::Template) I then wrote a custom handler which uses a custom parser, which I've constru

Re: PDF's [OT I THINK]

2002-04-08 Thread Rafiq Ismail (ADMIN)
Hi Geoff, > not sure where to start looking for some info, so I thought here first > > I need to be able to print pdf's from an apache webserver using perl... > I know usually that just an link to the file is sufficient, but these files > are outside of the /var/www/path to webserver. In such

Re: DBI: selectall_hasref incompatibility

2002-04-02 Thread Rafiq Ismail (ADMIN)
2 Apr 2002, Rafiq Ismail (ADMIN) wrote: > Got a slight problem here.. > > Does anyone know why there was at some point a major change in the return > value for DBI::selectall_hashref? And is there a depricated method which > still uses the original prototype? > > My probl

DBI: selectall_hasref incompatibility

2002-04-02 Thread Rafiq Ismail (ADMIN)
Got a slight problem here.. Does anyone know why there was at some point a major change in the return value for DBI::selectall_hashref? And is there a depricated method which still uses the original prototype? My problem: --- Using DBI V1.19 on my box, the reported prototype is:

Re: modperl and SQL db select

2002-03-21 Thread Rafiq Ismail (ADMIN)
Postgres: +More relational? So they say. More features perhaps. +stored procedures - ie. you can make query wrapping methods -pain the rear postgres user permissions to control. +been doing complex sql queries (subselects etc,) for longer. +Rem

Re: [OT] Return Receipts

2002-03-21 Thread Rafiq Ismail (ADMIN)
A quick fix might be to stick your from header in your script, when generating the email. fiq On Thu, 21 Mar 2002, Ewen Marshall wrote: > I apologise striaght away for the completly off topic mail, but I'm desparate! > > I am having problems with return receipts from our users here at work.

Re: Document Caching

2002-03-07 Thread Rafiq Ismail (ADMIN)
On Wed, 6 Mar 2002, Rasoul Hajikhani wrote: > Robert Landrum wrote: > > #startup.pl > > > > open(FILE," > $MY::TEMPLATE .= while(); > > close(FILE); > Thanks... But I use Template Toolkit to generate a dynamic file. How > would the above code work in that situation?! Not how I'd do it, although I'

Re: how to pass data in internal redirects?

2002-02-26 Thread Rafiq Ismail (ADMIN)
Surprisingly I'm actually doing a proof of principle on the same theme. I'm developing a set of MVC classes which tie in with either tt2 or mason. I've got abstract Model, View and Controller classes. View can be subclassed into HTML, XML, whatever. I'm using normal classes at the moment, but i

Re: Mistaken identity problem with cookie (fwd)

2002-02-15 Thread Rafiq Ismail (ADMIN)
Although all your cookies will be probably be going to the same proxy for those requests from the same isp, the tcp-ip session will remain the same and it is most likely that you'll still be connected to the same ip which made the initial proxy connection. My thought is possibly that you're misui

Re: Samba authorization

2002-02-11 Thread Rafiq Ismail (ADMIN)
Have you tried running a locate on AuthenSmb.pm to make sure that it's under your @INC? Wondering whether you installed it in the correct location? Try sticking a : use lib "path/to/Apache"; a little higher up. Fiq On Mon, 11 Feb 2002, Andrew Afliatunov wrote: > Hi! > > I want to

Re: Can't locate Sybase/CTlib.pm

2002-02-07 Thread Rafiq Ismail (ADMIN)
btw, my assumption here was that massive long line in your -I is some how wrong. Well it's got to be right? Fiq On Thu, 7 Feb 2002, Rafiq Ismail (ADMIN) wrote: > Hi Lynne, > > On Wed, 6 Feb 2002, Ng, Lynne (Exchange) wrote: > > #!/usr/bin/perl -I > > /usr/local/lib/

Re: Can't locate Sybase/CTlib.pm

2002-02-07 Thread Rafiq Ismail (ADMIN)
Hi Lynne, On Wed, 6 Feb 2002, Ng, Lynne (Exchange) wrote: > #!/usr/bin/perl -I > /usr/local/lib/perl5/site_perl/5.005/sun4-solaris/Sybase:/usr/local/lib/perl > 5/site_perl/5.005/sun4-solaris/auto/Sybase > use Sybase::CTlib; > @INC = @lib::ORIG_INC; ** > print "Hello world"; ** Assuming that "@IN

Re: Server error log says "Accept mutex: sysvsem"

2002-02-06 Thread Rafiq Ismail (ADMIN)
Not sure but it just looks like you're getting confirmation of semaphore locking which is probably occuring between the different processes - I'd guess. Then again, it's worrying that it's being directed to STDERR. My guess would be that it's harmless. Check the options with which you rebuilt a

Re: PerlEditor - Freeware or Trialware

2001-12-26 Thread Rafiq Ismail
is a standard editor on Xnix boxes and might be a useful tool to master if you're going to ever start working on native platforms - well not native, but UNIX based. I'm think it likely that the windows version may offer syntax highlighting under perl. You'll have to check the docco

RE: mod_perl.so not built after building mod_perl

2001-11-15 Thread Rafiq Ismail
d the module which houses the my_start function in your server conf. Use "" or " use lib whereeverVSwapstufflives; use WhatEverVSwapModule;" type stuff. Although, I'd assume you read your documentation and did this when setting up your server right? You did, didn&#x

Re: how to install the XML::LibXSLT along with libxslt?

2001-11-14 Thread Rafiq Ismail
ng for sys/stat.h... yes > checking for stat... yes > checking for _stat... no > checking for isnan... yes > checking for isinf... yes > checking for pow... no > checking for pow in -lm... yes > checking for floor... no > checking for pow in -lm... (cached) yes > checking for fabs... no > checking for pow in -lm... (cached) yes > checking for gettimeofday... yes > checking for mktime... yes > checking for localtime... yes > checking for asctime... yes > checking for time... yes > checking for gmtime... yes > checking for perl... perl > checking for libxml libraries >= 2.4.7... ./configure: xml2-config: command not found > ./configure: test: integer expression expected before -ge > configure: error: You need at least libxml2 2.4.7 for this version of libxslt > > > Please, help me. > > > -SubbaReddy > > > -- Rafiq Ismail Software Engineer and Systems Administrator http://www.codix.net "All the best people in life seem to like Linux." - Steve Wozniak

Re: namespace-troubles

2001-10-24 Thread Rafiq Ismail
really need to require it. > > > > What can I do ? I need this different domains, cause the script-action > > depends on the calling domain. Well you don't want to be fetching it from your namespace do you!!! Use your environment variables. -- Rafiq Ismail Software Engineer and Systems Administrator http://www.codix.net "All the best people in life seem to like Linux." - Steve Wozniak

Off-topic - Apache Config - Load crises

2001-10-11 Thread Rafiq Ismail
rhaps increasing the number of daemons will relieve the load. Not sure. It's a big box. Any ideas? iv) Something else? I'd appreciate some suggestions. Thanks, R. -- Rafiq Ismail Software Engineer and Systems Administrator http://www.codix.net "All the bes

Re: Virtual Host?

2001-09-11 Thread Rafiq Ismail
a Unix. He is on > a NT. > > Assuming the disk is on the Unix and the Unix is running Samba, then > just define a network drive on your NT, say > > V: which mapps to \\yourunixbox\disk7 > > -- Rafiq Ismail Software Engineer and Systems Administrator http://www.cod

Rewrite block before a Perl block

2001-08-24 Thread Rafiq Ismail
tHandler perl-script PerlHandler HTML::Apache::ASPerl ####### Many Thanks, R. -- Rafiq Ismail Software Engineer and Systems Administrator http://www.codix.net "All the best people in life seem to like Linux." - Steve Wozniak

RE: [OT] Content-Disposition to change type and action?

2001-05-31 Thread Rafiq Ismail
ce with ie5/mac calling a real media file delivered through cgi. Had to use the same "?...&fakeparam=.rm" cop-out. I'm sure Microsoft probably see this a feature though. Just like they've always see their blue screen of death as a feature. R. -- Rafiq Ismail Software Engineer and Systems Administrator http://www.codix.net "All the best people in life seem to like Linux." - Steve Wozniak

Known bugs with so's and mod_perl 1.21??

2001-05-16 Thread Rafiq Ismail
. Would appreciate any feedback. Thanks. Rafiq -- Rafiq Ismail Software Engineer and Systems Administrator http://www.codix.net "All the best people in life seem to like Linux." - Steve Wozniak