Thanks Gerald.
Now that I seen it again, I remember seeing it at one point in the docs when I
was looking for something else, but when I needed it I couldn't find it of
course :(
On 27-Apr-2000 Gerald Richter wrote:
>> $uploadfile = $query->param("upload");
>> $mime_type = uploadInfo($file)->{
> $uploadfile = $query->param("upload");
> $mime_type = uploadInfo($file)->{'Content-Type'};
>
> Is there a way of doing this with Embperl?
>From the docs:
When you have installed CGI.pm 2.46 or above you may also retrieve the
filename (local filename, as it was on the browser side) and the
info
Hey everyone,
I'm working on serveral Embperl scripts that insert and retrive Binary Large
Objects (BLOBs) into/from an Oracle database using DBI.
I'm currently getting the object (in this case an image) with code like this:
my $buffer;
my $data;
($data .= $buffer) while read ($fdat{image}, $bu
>
> Ok I have another question. Why doesn't <> work?
>
> It's supposed to set the default to 0, but it's still 3.
>
It does set it to zero, but only when you use the mod_perl handler and not
if you call Execute on your own. If you call Execute on your own, you need
to call the ScanEnvironement be
Ok I have another question. Why doesn't <> work?
It's supposed to set the default to 0, but it's still 3.
Please help.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
>
> Yes it does print 1. Problem still stands. :(
>
You could try to set $ENV{CONTENT_LENGTH} = 0 ; before the call to Execute,
but this really shouldn't be nessecary.
Maybe there is another call that tries to read the POSTed data a second
time?
Gerald
> > >
> > > options => HTML::Embperl::optDisableFormData
> >
> > But I am already using options => 256. Isn't it the same thing?
> >
>
> Yes it is, make sure that it really is set by inserting a
>
> [+ $optDisableFormData +]
>
> inside the called page. Should print 1. Does it?
Yes it does pr
At 5:33 AM +0200 4/26/00, Gerald Richter wrote:
> > Is there a way that I can make the cookie expire after say 15 minutes of
>> inactivity?
>>
>
>Currently not. You can only define a fixed time. Kee Hinckely has send a
>small module to the list, which should do this job. I plan to include
>suppor
> >
> > options => HTML::Embperl::optDisableFormData
>
> But I am already using options => 256. Isn't it the same thing?
>
Yes it is, make sure that it really is set by inserting a
[+ $optDisableFormData +]
inside the called page. Should print 1. Does it?
Gerald
---
> >
> > All this works perfectly via GET.
> > When using POST, the request hangs at the $r->content point.
> >
> > Why?
> >
>
> I guess your script has already read the POSTed data, before Execute is
> called. Now Embperl, which can't know that the data is already read, tries
> to read it again, a
>
> All this works perfectly via GET.
> When using POST, the request hangs at the $r->content point.
>
> Why?
>
I guess your script has already read the POSTed data, before Execute is
called. Now Embperl, which can't know that the data is already read, tries
to read it again, and hangs, because a
I am using embperl in a non-standard way to take care of old perl code which
has html embedded in it via print statements.
Here is a summarized top-to-bottom (1->2->3) overview of the architecture:
1. legacy.phtml
HTML::Embperl::Execute({ inputfile => 'legacy_pm.epl',
param => ['legacy.pm
>From Kee Hinckley:
>
> I'm building a number of Perl libraries that work with Embperl and
> which I hope to release once they are cleaned up.
>
> What are the namespace conventions for things like that? Should I
> call them HTML::Embperl::LIBRARY-NAME, or
> HTML::Embperl::SOME-PACKAGE-NAME-THATS
13 matches
Mail list logo