List Info

Thread: -e problem




-e problem
user name
2006-12-15 20:24:21
On Dec 15, 2006, at 1:22 PM, Lou Hernsen wrote:

> the only thing i can think of at this point is that the
path may be
> different for the HTML code than the CGI code...
> and I feeel i'm about to just sit here and try that.
> that in the HTML the dir/dir/picture.jpg works
> but in the CGI the path may have to be
.../dir/dir/pictures.jpg
> to back out of the cgi dirs and into tthe html dir???
>
> main dir
>     cgi dir
>         project dir (where my cgi is)
>     html dir
>         image.dir (where the picture is)
>
> maybe????????

absolutely!

In your CGI script, you should reference the document root
directory  
-- preferably by using an environement variable like $ENV 
 (which may come from Apache's mod_perl).

Add a:   print '<p>$ENV &rarr; ' .
$ENV 
 . "</p>n";
to see what this might be on your system.  (Replace
'&rarr;' with  
'=&gt;' if you prefer)

Note that not all web servers give you a way to determine
the  
absolute location of the DOCUMENT_ROOT.

-Rob

Rob Biedenharn		http://agileconsultingl
lc.com
RobAgileConsultingLLC.com




Unsubscribing info is here: h
ttp://help.yahoo.com/help/us/groups/groups-32.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://g
roups.yahoo.com/group/perl-beginner/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http
://groups.yahoo.com/group/perl-beginner/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:perl-beginner-digest@yahoogroups.com 
    mailto:perl-beginner-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
    perl-beginner-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.c
om/info/terms/
 
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )