Re: Suggestions for creating an archive

2005-09-02 Thread Dermot Paikkos
On 2 Sep 2005 at 10:20, Perrin Harkins wrote: > On Fri, 2005-09-02 at 11:34 +0100, Dermot Paikkos wrote: > I don't really understand why you have two scripts. You should just let > apache handle serving the zip as a static file. It's much better at > that than any sc

Re: Suggestions for creating an archive

2005-09-02 Thread Dermot Paikkos
us as you have done. I too read soemwhere that the content-dispostion wasn't always correctly implemented. MS do have a doc on their knowledge base (q260519) about content-dispostion so they seem to think they implement it correctly. Thanx Perrin. You have been v. patient. Dp. ~~ De

Re: Suggestions for creating an archive

2005-09-01 Thread Dermot Paikkos
On 31 Aug 2005 at 13:48, Michael Peters wrote: > > There is a way to do it, defined as part of HTTP or MIME -- I can't > > quite remember. If you do an external redirect you won't have to bother > > figuring it out. > > If you are generating your own content headers you use the > Content-Disposi

Re: Suggestions for creating an archive

2005-08-31 Thread Dermot Paikkos
Excellent. I give it a try tomorrow. Dp. On 31 Aug 2005 at 13:48, Michael Peters wrote: > > > Perrin Harkins wrote: > > On Wed, 2005-08-31 at 18:38 +0100, Dermot Paikkos wrote: > > > >>Do you mean a redirect to a completely separate handler or cgi? > >

Re: Suggestions for creating an archive

2005-08-31 Thread Dermot Paikkos
On 31 Aug 2005 at 13:14, Perrin Harkins wrote: > On Wed, 2005-08-31 at 18:09 +0100, Dermot Paikkos wrote: > > $r->internal_redirect("myzip.zip"); > > That's supposed to be a URL: "/myzip.zip" > > I was actually thinking of an external redirect

Re: Suggestions for creating an archive

2005-08-31 Thread Dermot Paikkos
On 31 Aug 2005 at 12:40, Perrin Harkins wrote: Sorry I guess that should be $r->internal_redirect("http://austin/Myzip.zip";); That what the bad uri means. Still my archive file arrives empty even though the actual archive in /var/www/htdocs has files files in it. Dp. ~~ D

Re: Suggestions for creating an archive

2005-08-31 Thread Dermot Paikkos
eas? Should I be giving more content info? Dp. On 31 Aug 2005 at 12:40, Perrin Harkins wrote: > On Wed, 2005-08-31 at 17:18 +0100, Dermot Paikkos wrote: > > I need to create a archive file and send it back to the user. > > Either do a system call to zip, or use

Suggestions for creating an archive

2005-08-31 Thread Dermot Paikkos
ou do need to send a file as a filehandle, what are the other headers that need to be set, content_length, encoding and type and would the archiving process need to be done as a pipe? Sorry if I'm rambling here but I am don't know where to begin. Thanx. Dp. ~~ Dermot Paikkos

Re: Refresh referring page

2005-05-04 Thread Dermot Paikkos
e install apache server on my pc .and i am trying to run cgi > scripts.but iam getting the following error. in log files 1.Accept > mutex:sysvsem (Default :sysvsem) 2.caught SIGTERM,shutting down could > you plz help me regarding this > > On 5/4/05, Dermot Paikkos <[EMAIL PROTECTE

Re: Refresh referring page

2005-05-04 Thread Dermot Paikkos
gt; lot smarter IMHO than uploading files each time... > > Issac > > Dermot Paikkos wrote: > > Hi Ron, > > > > Yes I think I will do something like that. Instead of refreshing the > > page I am going to resubmit the form until all the files have been

Re: Refresh referring page

2005-05-04 Thread Dermot Paikkos
Hi Ron, Yes I think I will do something like that. Instead of refreshing the page I am going to resubmit the form until all the files have been processed. A counter and some javascript to submit the form on each page load should do it. Perhaps not a graceful solution but for me a quicker and

Re: Refresh referring page

2005-05-03 Thread Dermot Paikkos
icated. I was hoping for something in the HTTP headers that I could use that might ask for a new page if the existing one was a older than 30secs. I might have a look at the method above. > Issac Thanx. > Dermot Paikkos wrote: > > >Hi, > > > >MP2 RC5, Template,

Refresh referring page

2005-05-03 Thread Dermot Paikkos
Hi, MP2 RC5, Template, Image::Magick I hope this is not off topic, apologises if it is. I have a perl script written as a handler. It scans a dir for image files and offers the user a chance to convert them from tiff to jpeg. As there can be lots of files of some size, it can take some time f

Re: changing permissions in order to write a file in Mod_perl

2005-04-29 Thread Dermot Paikkos
toughest one. Yeap that final 10% is a killer. Dp. > > > On 4/29/05, Dermot Paikkos <[EMAIL PROTECTED]> wrote: > > I really don't know but I was just trying to set up something > > similar here and noticed that under MP1 you certainly couldn't, see > >

Re: changing permissions in order to write a file in Mod_perl

2005-04-29 Thread Dermot Paikkos
I really don't know but I was just trying to set up something similar here and noticed that under MP1 you certainly couldn't, see this article: http://perl.apache.org/docs/1.0/guide/install.html#Is_it_possible_to_r un_mod_perl_enabled_Apache_as_suExec_ And then I saw this on changes on MP2: "pe

Re: changing permissions in order to write a file in Mod_perl

2005-04-29 Thread Dermot Paikkos
o each others files. > > So it seems my mod_perl modules are running under a different user > than the suexec setting in httpd.conf > > Do I have to open up the permissions (ie make group apache writeable > for the folder) or is there some way I can temoprarily switch to uid >

Re: reading post data.

2005-04-26 Thread Dermot Paikkos
On 23 Apr 2005 at 16:16, jonathan vanasco wrote: > RC5 is slightly different from the namespace stuff, and you need to > run one of the svn branches of libapreq -- either trunk or multi-env > -- its under active development right now > > personally, i think libapreq is the best way to read GET/

Re: Help with request data

2005-04-22 Thread Dermot Paikkos
On 22 Apr 2005 at 10:30, Geoffrey Young wrote: > > MP2 RC5 > > > > I am moving from a MP1 to MP2 server and am having trouble. I have > > opted to re-write the scripts I had so I could add some more > > functions. > > > > I am struggling tring to find methods to access my form data and > > other

Re: Help with request data

2005-04-22 Thread Dermot Paikkos
On 22 Apr 2005 at 18:36, Markus Wichitill wrote: > > At the moment you'll have to pull the current version of apreq2 from > SVN for MP2-RC5. > > http://svn.apache.org/repos/asf/httpd/apreq/trunk thanx but I think I might be getting out of my depth. I'll wait till there's a full release. Dp.

Re: Help with request data

2005-04-22 Thread Dermot Paikkos
t replacement for $r->param('field_name') or > > $headers_in{'User-Agent'}? If not should I just continue as I am or > > are there better methods for getting at the request? > > > > Apologies in advance if I have missed this in the docs but I can't

Help with request data

2005-04-22 Thread Dermot Paikkos
Hi MP2 RC5 I am moving from a MP1 to MP2 server and am having trouble. I have opted to re-write the scripts I had so I could add some more functions. I am struggling tring to find methods to access my form data and other headers. I am currently using my $form_data = $r->the_request() and s

user-agent

2005-04-18 Thread Dermot Paikkos
Hi, mod_perl 2 RC5 What is the best (fastest) way to determine the request's user-agent? $r->header_in()? Thanx. Dp.

Re: Culture shock

2005-04-18 Thread Dermot Paikkos
r/handlers/server.html#Startup_File This worked. > > At a guess I would say I am using mod_perl 2 and I need to put > > something into the httpd to get 1 and 3 to work correctly but I don't > > > > know what. Can anyone advice me? > > > > Thanx. >

Culture shock

2005-04-18 Thread Dermot Paikkos
Hi I just installed a new server and started trying to port my old scripts to it when i noticed things have changed and I am a bit unsure of a few things. 1) rpm says that mod_perl 1.99 is installed but the httpd error_log does mention mod_perl on restarts: Apache/2.0.52 (Fedora) configure -

Re: request appears to be processed twice with PDF::Create

2004-08-04 Thread Dermot Paikkos
Accessing form multiples". I think you replied to it. Whenever I > > tried to loop through the incoming list of > > "user=dermot+paikkos&user=joe+blogs" I was only getting the first > > user. > > Although that's perl here's the explanation. >

Re: request appears to be processed twice with PDF::Create

2004-08-04 Thread Dermot Paikkos
in bold as each line is sent twice. What I was trying to do was create a hash with the user's name as a key ($users{"Dermot Paikkos"} = 0) and then increment the value once the file was read so I didn't open the file a second time. I am not sure if the child process would reall

Re: Accessing form mutiples

2004-07-30 Thread Dermot Paikkos
; > > Why are you using a hashref? do you really need it? > > > > Tom > > > > -- > > NEU: WLAN-Router fr 0,- EUR* - auch fr DSL-Wechsler! > > GMX DSL = supergnstig & kabellos http://www.gmx.net/de/go/dsl > > > > > -- > Report prob

Re: Accessing form mutiples

2004-07-30 Thread Dermot Paikkos
urprised as the cookbook says that using $r = shift "will remove any likes named pairs". That's why I am using Apache::Request. Thanx. Dp. On 30 Jul 2004 at 12:18, Michael wrote: > Dermot Paikkos wrote: > > Hi modperls, > > > > Apache/1.3.26 (Unix) m

Accessing form mutiples

2004-07-30 Thread Dermot Paikkos
$hash_ref->{$ref}\n"; # } foreach my $u (@users) { print STDERR "user = $u\n"; } return OK; } # End of handler 1; ~~ Dermot Paikkos * [EMAIL PROTECTED] Network Administrator @ Science Photo Library Phone: 0207 432 1100 * Fax: 0207 286 8668 -- Report problems: h

Re: request appears to be processed twice with PDF::Create

2004-07-30 Thread Dermot Paikkos
back one day later and hit the > same apache-child which already processed the first request, you won't > get anything. > > Tom > > Dermot Paikkos wrote: > > >Arnaud, > > > >I have found a way around this. I don't know if your inter

Re: request appears to be processed twice with PDF::Create

2004-07-29 Thread Dermot Paikkos
est twice and it is working with the first request not the second. Just a thought. Dp. On 29 Jul 2004 at 16:20, Arnaud Blancher wrote: > Dermot Paikkos a écrit : > > >Does this mean you have to go an clean up these files later > > > yes, if you dont want they stay on th

Re: request appears to be processed twice with PDF::Create

2004-07-29 Thread Dermot Paikkos
agent when using Apache::Request? I can't see it when I use this object. Thanx. Dp. On 29 Jul 2004 at 15:08, Arnaud Blancher wrote: > Dermot Paikkos a écrit : > > >Arnaud, > > > >Yes I am/was using I.E.6 I have installed Firefox 0.9 and it works > >fine. >

Re: request appears to be processed twice with PDF::Create

2004-07-29 Thread Dermot Paikkos
d. Dp. ~~ Dermot Paikkos * [EMAIL PROTECTED] Network Administrator @ Science Photo Library Phone: 0207 432 1100 * Fax: 0207 286 8668 -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/

request appears to be processed twice with PDF::Create

2004-07-29 Thread Dermot Paikkos
appears to run twice. By twice I mean that the output to STDERR when I am looping through the request starts again. It needs a uri like: http://www.server.com/junk?users=Dermot+Paikkos&auth=manager&dir=10-7- 04&submit=Go It modifies the date to match an existing dir and finds the

Filehandle and formats problem

2004-07-16 Thread Dermot Paikkos
Can't write to $fh: $! $?\n"; if (! -e $tempfile) { print STDERR "No tempfile created\n"; } else { my ($size) = (stat("$tempfile"))[7]; print STDERR "file exists, is $size\n"; }