file upload object - getting form field name

2003-05-30 Thread md
I need to get the form field name from a form upload. I've been using the upload object and looping through my uploads: foreach my $upload ($r-upload) { # do stuff } The first form has 10 fields (labeled upload1-upload10). For a quick hack I simply used a counter and all was good: my

Re: Table/row locking with Apache::Session::Mysql /Apache::Session::Flex

2003-02-26 Thread md
by changing a line in the current module. Is it possible to have row-level locking (as opposed to table-level or null locker) with MySQL 4.x and Apache::Session? -- md __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http

Re: Table/row locking with Apache::Session::Mysql /Apache::Session::Flex

2003-02-26 Thread md
--- md [EMAIL PROTECTED] wrote: Is it possible to have row-level locking (as opposed to table-level or null locker) with MySQL 4.x and Apache::Session? Looks like I get that with InnoDB automatically... __ Do you Yahoo!? Yahoo! Tax Center

Table/row locking with Apache::Session::Mysql /Apache::Session::Flex

2003-02-25 Thread md
We're using Apache::Session::MySQL (Apache::Session 1.54) and occassionaly see long lock times. Also, we'll soon be adding a substantial number of users to our system and I wonder if it would be wise to move away from the table locking that is currently being used with Apache::Session::MySQL.

Re: Table/row locking with Apache::Session::Mysql /Apache::Session::Flex

2003-02-25 Thread md
a config file. There's no need to be concerned about using Flex, but you could easilly code up your own Apache::Session::MySQLNoLocks by changing a line in the current module. That's what I figured and that's what I'm going to do. Thanks again, -- md

Re: Apache::Session and user sessions

2002-12-07 Thread md
--- Perrin Harkins [EMAIL PROTECTED] wrote: Todd W wrote: I have a table with some basic user information (first name, last name, address, phone number, etc...). That's permanent data, not session data. Session data is transient. I was reading through the archives and came across

Re: Apache::Session - What goes in session?

2002-08-20 Thread md
--- Perrin Harkins [EMAIL PROTECTED] wrote: There are a few ways to deal with this. The simplest is to use the sticky load-balancing feature that many load-balancers have. Failing that, you can store to a network file system like NFS or CIFS, or use a database. (There are also

Re: Apache::Session - What goes in session?

2002-08-20 Thread md
Thanks...you've given me plenty to work with. Great explination. This is good pragmatic stuff to know! __ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com

Apache::Session - What goes in session?

2002-08-19 Thread md
I'm using mod_perl and Apache::Session on an app that is similar to MyYahoo. I found a few bits of info from a previous thread, but I'm curious as to what type of information should go in the session and what should come from the database. Currently I'm putting very little in the session, but

Re: Apache::Session - What goes in session?

2002-08-19 Thread md
--- Perrin Harkins [EMAIL PROTECTED] wrote: md wrote: That doesn't sound very global to me. What happens when users open multiple browser windows on your site? Doesn't it screw up the current page data? I don't think global was the term I should have used. What I mean is data

Re: Apache::Session - What goes in session?

2002-08-19 Thread md
--- Perrin Harkins [EMAIL PROTECTED] wrote: Current page name and id are never stored in db, so different browser windows can be on different pages... I thought your session was all stored in MySQL. Why are you putting these in the session exactly? If these things are not relevant

Re: when to mod_perl?

2002-06-24 Thread md
--- Cees Hek [EMAIL PROTECTED] wrote: I would build your application using plain old CGI, following the guidlines that mod_perl provides for running CGI applications under the Apache::Registry module. If you properly analyse your application, and build small tight CGI scripts, then

Re: when to mod_perl?

2002-06-24 Thread md
--- Stas Bekman [EMAIL PROTECTED] wrote: In any case we are talking about registry scripts, aren't we? In that case it takes very little time to turn it on and off and test what is better. Unless you are talking about writing full fledged mod_perl API handlers, which is only when your

Re: Mapping to location /

2002-06-13 Thread md
--- Per Einar Ellefsen [EMAIL PROTECTED] wrote: At 23:06 12.06.2002, md wrote: I'm not quite sure about this, been wondering about it, but in theory you should be able to use DirectoryIndex index.phtml and like that you won't have to worry about / etc anymore. Try it out.. And so I

Re: Mapping to location /

2002-06-13 Thread md
--- Per Einar Ellefsen [EMAIL PROTECTED] wrote: At 16:04 13.06.2002, md wrote: What I'm really trying to do is more like the PHP I'm replacing. I should be able to go to: www.someserver.com/index.phtml for a dynamic page and www.someserver.com/index.html for a static page. Does PHP

Re: Mapping to location /

2002-06-13 Thread md
--- Perrin Harkins [EMAIL PROTECTED] wrote: I don't really see the problem. You can map all the URLs that end with a certain extension to one module that does some work and then calls a template. OK...the little light bulb has just come on... I didn't realize that I could put my

Mapping to location /

2002-06-12 Thread md
I'm replacing an exisiting PHP site with mod_perl and Template-Toolkit. I normally set up mod_perl to use a location like this: Location /something and set the handler to my mod_perl module. However, I need to map to / since I'm replacing a system where there are existing PHP files like

Re: Mapping to location /

2002-06-12 Thread md
--- Aaron Ross [EMAIL PROTECTED] wrote: Would Files *.phtml /Files do the trick? No...the files don't actually exist under htdocs since I'm using Template-Toolkit. Thanks though. __ Do You Yahoo!? Yahoo! - Official partner of 2002

Re: Mapping to location /

2002-06-12 Thread md
--- Per Einar Ellefsen [EMAIL PROTECTED] wrote: Can't you just drop the Location and use Files *.phtml SetHandler /Files or something like that? Seems like it would avoid some overhead for you. True...but the files don't actually exist. The path/filename is used to map to a

Re: Mapping to location /

2002-06-12 Thread md
--- Per Einar Ellefsen [EMAIL PROTECTED] wrote: At 19:14 12.06.2002, Per Einar Ellefsen wrote: Location .*\.phtml|/ Sorry, make that LocationMatch ... /Location And /LocationMatch of course. That should work...thanks. For the most part *all* .phtml pages will be doing the same

Re: Mapping to location /

2002-06-12 Thread md
--- darren chamberlain [EMAIL PROTECTED] wrote: If you use a translation handler, you can just return DECLINED for everything you aren't specifically handling, and let mod_dir do it's thing, instead of emulating it. I still would like to check first if there is an index.phtml template