Jean-Christophe,
It seems reasonable for me that Embperl "executes" the .pdf files
since to told it to do in your httpd.conf
Why don't you just put your links something like this:
Well, maybe I should reword my question.
I want to place links to PDF files on my site like :
Click here to downlo
Well, maybe I should reword my question.
I want to place links to PDF files on my site like :
Click here to download
And I want to log the fact that someone downloaded the file.
So I set Apache up so that all PDF files are handled by Embperl :
EMBPERL_OBJECT_BASE base.epl
SetHandler perl-s
Hello,
I have a site where the config is a little strange. It works for years but I
just discovered it fails for (at least) one file. Here is the scenario :
I want to log (in a DB) all PDF downloads. So I set up things this way :
EMBPERL_OBJECT_BASE base.epl
Disregard... It was a permissions problem. needed to chmod 755 on my
second "menu" directory.
*slaps head*
thanks,
brian
> Hi all. Ran into a strange problem with embperl. When I try to access a
> file three directories deep in my web site (/menu/dev/menu/index.html) I
> get
Hi all. Ran into a strange problem with embperl. When I try to access a
file three directories deep in my web site (/menu/dev/menu/index.html) I
get an apache forbidden error and following error in my httpd error log:
[Tue Mar 07 14:36:56 2006] [crit] [client 167.73.110.8] (13)Permission
denied
At Thu, 12 May 2005 12:51:43 +0300, Michael Stepanov wrote:
> It seems that file was uploaded but before reading procedure was
> started file handler was closed by
> some reason.
[...]
> I use: - Linux RedHat 9, Embperl/2.0b9, Apache/2.0.40,
> mod_perl/1.99_07-dev, Perl v5.8.0
Hrm. A problem matc
Thanks, Gerald for your quick answer. I've resolved that problem. It's
related with old version of Embperl and latest version of CGI. You've
fixed that bug in 2.0b11: Fixed problem with CGI.pm 3.01+, which
deletes uploaded files, when CGI object is destroyed.
So, after upgrating Embperl till l
Hi,
>
> Recently, I've found in Apache log file that message:
> Warning in Perl code: readline() on closed filehandle
> fh1C%3A\fts\receive\PBW036H3.023
>
> It seems that file was uploaded
I guess there was some thumb client (maybe a robot) which pass invalid data
to your form.
> but
Dear all,
I have a strange problem with upload file. It was happened only once but
I'm afraid that
it can be again.
I have a some form like that:
Select File:
In upload.epl I just get filehandler and use it as method's argument:
my $up_obj = new UploadFile();
$up_obj->uplo
Am Montag, 4. August 2003 13:10 schrieb Torsten Luettgert:
> On Son, 2003-08-03 at 20:06, Gerald Richter via COM.BOX TEMA wrote:
> > > For your escaping use the $req->Escape from Embperl (I don't know if it
> > > is available in Embperl2 - Gerald?).
> >
> > Yes, it's available in Embperl 2, but you
>
> You should not use CGI inside Embperl because it will try to read the
> form fields again and conflict with Embperl, and make your app BIG.
>
Yes, that the problem here
> For your escaping use the $req->Escape from Embperl (I don't know if it
> is available in Embperl2 - Gerald?).
>
Yes, it'
Hi,
I found a message from Gerald that explains this:
Embperl 1.3.4 and 2.0b8 has an undocumented (should be in the docs in
the
next release) method to do escaping:
[-
$r = shift ;
# second parameter: 1 html escape, 2 url escape (same as $escmode)
$escaped = $r -> Escape ($ENV{REQUEST_URI}, 2)
What about the URI::Escape module?
Should it be used at all, maybe for non-OO use of 1.3 ? Should be
mentioned in the documentation, how to escape /unescape form data. I for
one missed a brief explanation of this.
Knut Behrends
--
Hi,
You should not use CGI inside Embperl because it will try to read the
form fields again and conflict with Embperl, and make your app BIG.
For your escaping use the $req->Escape from Embperl (I don't know if it
is available in Embperl2 - Gerald?).
Regards,
--
Luiz Fernando Ribeiro
Engenho S
Hi,
today I tried to migrate from Embperl 1.3.6 with apache 1.3.27
to apache 2.0.40-21.3 (from RedHat 9) plus mod_perl 1.99_09 and
Embperl 2.0b9.
First, everything seems to work well. I made a test page:
test page
[-
++$udat{'blah'};
$a = localtime();
print OUT "The time is $a, and you'r
>
> Earlier I had such configuration:
>
>
> .
> PerlSetEnv EMBPERL_ALLOW (\.epl$|\.html$|\.htm$|\.jpg$|\.gif$|\.css$)
> PerlSetEnv EMBPERL_FILESMATCH "\.epl$|\.htm$|"
> PerlSetEnv EMBPERL_URIMATCH "\.epl$|\.htm$|"
> ..
b6 uses native Apache configuration directives, so either s
Hello Gerald,
Friday, March 15, 2002, 4:53:35 PM, you wrote:
>>
>> Does DirectoryIndexerl 2.06b import Apache parameter DirectoryIndex ?
>> I have 403 Forbidden after trying to access to the root directory.
>> With 1.3.4 it's ok.
>>
GR> You are right, that's a bug in 2.0b6. I will take a look a
>
> Does DirectoryIndexerl 2.06b import Apache parameter DirectoryIndex ?
> I have 403 Forbidden after trying to access to the root directory.
> With 1.3.4 it's ok.
>
You are right, that's a bug in 2.0b6. I will take a look at it and let you
know how to fix it
Gerald
--
Does DirectoryIndexerl 2.06b import Apache parameter DirectoryIndex ?
I have 403 Forbidden after trying to access to the root directory.
With 1.3.4 it's ok.
--
Best regards,
Victor mailto:[EMAIL PROTECTED]
---
I too have problems with modules in EmbPerl.
I tried to concentrate SQL functions in a module.
Now when I use them in simple SELECT and output
page, 98% of the time all is working, but
in 1% I get an error in the module and in
1% I get an error on the embperl page that
uses the module.
There seem
I have no idea, really. I'm not totally fluent in embperl / perl (yet :).
I've been doing something like this in my embperl scripts:
[-
use strict;
use MyPackage;
use vars qw ($dbh $sth $etc $foo $baz);
$dbh = dbConnect(); # dbConnect comes from MyPackage
-]
S
Hi Wim,
At 10:36 AM 4/19/2000 -0700, you wrote:
> While I'm quite new to embperl (but using it daily), I think I've seen this.
> It seems like the [+ +] block isn't seeing the $mvar of the [- -] block.
Thanks for the pointer. I tried it out, but unfortunately it didn't fix it.
I even changed
While I'm quite new to embperl (but using it daily), I think I've seen this.
It seems like the [+ +] block isn't seeing the $mvar of the [- -] block.
Try adding "use strict;" and "use vars qw ($mvar);" before the "use foo" in the
[- -] block and see what happens.
On 19-Apr-2000 Steven D. Arnold
Hi,
I have installed mod_perl and EmbPerl successfully. All the tests work and
I can do simple EmbPerl scripts. However, I'm trying to do a script that
is a little more complicated. The script reads:
Some Plain tests for Embperl
[-
use foo;
$mvar = foo->new();
-]
[+
24 matches
Mail list logo