Mail Index
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ApacheGallery] .cache vs GalleryCacheDir in v0.7
Dallas Engelken wrote:
I have one other problem that is probably related to my apache conf
setup. running redhat 8 and apache 2.0, i cant get CGI to pass
param()'s across when it references P1010038.JPG?width=800 -
param('width') should = 800, but it's undefined. it's like it doesnt
parse CGI params when the file name is .JPG? is there a rewrite rule
or something i'm missing???
Thanks,
Dallas
anyone have any idea on this part? CGI param() doesnt seem to store a
damn thing when i try to use the slideshow or get a different
resolution of the photo. i assume it's because the filename ends in
.JPG and CGI ignores it?
dallas
okay, here is a lot more info on my CGI.pm params problem... hopefully
someone can tell me what the quick fix is that i'm missing. i promise
i'm done posting message after this, so please dont scream :)
i changed
my %cookies = fetch CGI::Cookie;
if ($cgi->param('width')) {
to
my %cookies = fetch CGI::Cookie;
print STDERR "A::G width param is " . $cgi->param('width') . "\n";
if ($cgi->param('width')) {
and changed
$tpl->assign(WIDTH => ($width > $height ? $width : $height));
if ($cgi->param('slideshow') && $cgi->param('slideshow') ==
$interval and $nextpicture) {
to
$tpl->assign(WIDTH => ($width > $height ? $width : $height));
print STDERR "A::G slideshow param is " . $cgi->param('slideshow') .
"\n";
if ($cgi->param('slideshow') && $cgi->param('slideshow') ==
$interval and $nextpicture) {
tailing my error log shows...
A::G width param is
A::G slideshow param is
A::G slideshow param is
A::G slideshow param is
A::G slideshow param is
A::G slideshow param is
[Fri Dec 19 21:58:27 2003] [error] [client 10.1.1.1] File does not
exist: /var/www/html/pics/2003-12/2003-12-19/.cache, referer:
http://redhat.kicks-ass.net:8000/pics/2003-12/2003-12-19/PC190017.JPG?slideshow=15;width=640
based on the referer address you see in the error, those params should
have values... if i override the param with something like
print STDERR "A::G width param is " . $cgi->param('width') . "\n";
$cgi->param('width','1024');
print STDERR "A::G overridding width param as " .
$cgi->param('width') . "\n";
if ($cgi->param('width')) {
it will display the image in 1024x768
error_log snip....
A::G width param is
A::G overridding width param as 1024
A::G slideshow param is
so it's definitely a CGI.pm or apache problem i'm dealing with here on
the initial request... its like it just ignores the
$ENV{'QUERY_STRING'}... guess i could change to forms and try a POST
instead of GET, but i'm doubting that will help since CGI.pm is not
picky about the method.
thanks again..
dallas
_______________________________________________
users mailing list
users@xxxxxxxxxxxxxxxx
http://ufo.hestdesign.com/cgi-bin/mailman/listinfo/agusers