#perl - Sat 17 Mar 2007 between 00:01 and 00:17

NY Lost Funds



butterballhow do i configure perl/apache to include the path to the current perl script in the list of places to look when opening files using relative paths?
what should i add to PERL5LIB
Randalwhat is "perl/apache"?
butterballi'm executing a script from the browser http://domain.tld/script.pl and using a relative path to open a file ./stuff/temp but it can't find the file
Randalyou're using CGI?
butterballunless i use the absolute path /var/www/vhost/domain.tld/stuff/temp
actionRandal waits
Randalwaits
butterballi guess so
Randalyou don't know?
mod_cgi?
butterballlet me look
actionRandal rolls eyes
Randalrolls eyes
actionRandal . o O (why do so many people try to get in over their head with web apps?)
Randal. o O (why do so many people try to get in over their head with web apps?)
butterballyes cgi
and mod_perl is enabled too
RandalUh, which is it then?
scripts are run by CGI
butterballcgi
Randalso why talk about mod_perl?
that's distracting
which version of apache? 1 or 2?
butterballok sorry
2
RandalHmm. I seem to recall that apache2 doesn't necessarily cd to the script
is there anything weird going on like setuidwrapper?
or wahtever that's called?
butterballno just using HTTP::Cookies
Randal"suexec"
is suexec enabled?
butterballno
RandalOK.
that's good, because I'm never sure what that does to the script. :)
butterball:)
Randaldid you try to print pwd from the script to see where it actually is?
actionCPAN upload: Data-Dumper-Again-0.0002 by FERREIRA
CPANupload: Data-Dumper-Again-0.0002 by FERREIRA
Randal#!/bin/sh \n echo content-type: text/plain \n echo \n pwd
something like that
butterballwell i know where the script is
but it doesn't
RandalRight, but you don't know what the pwd of the script is when it's running, do you?

Page: 2 9 16 23 30 37 44 51 58 65 72 79 86 93 

IrcArchive

NY Lost Funds