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

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

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 perl script. Does anybody know

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 readable' by

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 implement

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

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: 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, you

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 right?

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

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 first time. What I want

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 to parse the

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

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

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?

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

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: 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 used. Load the file with a require, and then just call

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

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

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

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: DBI: selectall_hasref incompatibility

2002-04-02 Thread Rafiq Ismail (ADMIN)
, 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 problem: --- Using DBI V1.19 on my box

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

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,/path/to/tmpl); $MY::TEMPLATE .= while(FILE); 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,

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

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

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 : Perl use lib path/to/Apache; /Perl a little higher up. Fiq On Mon, 11 Feb 2002, Andrew Afliatunov wrote: Hi! I

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 @INC =

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/perl5/site_perl/5.005/sun4

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