[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] More path problems (nonMac)



Alrighty, times flies when you are reading manuals huh?  Well, anyways, I
have yet another problem with paths, but it runs on an Apache server


Using this URL:  blatz/cgi-bin/dolphinative/quiz.pl/quiz.html, I get an
error that says this cannont be found:  /quiz.html.

The problem is that I can not figure out where that extra slash is comming
from.

I tried intersiting a document root type setup, ($full_path =
$document_root . $quiz_file) but it still can not find it, the same type of
error, but without the /, instead it is the $document_root value.

#$document_root = "<usr/src/apache_1.1.1/cgi-bin/dolphinative>";
#$images_dir = "/images";
$quiz_file = $ENV{'PATH_INFO'};

if ($quiz_file) {
    $full_path = $quiz_file ;
} else {
    &return_error (500, "CGI Quiz File Error",
                        "A quiz data file has to be specified.");
}

open (FILE, "<"  . $full_path) || &return_error (500, "CGI Quiz File Error",
                                     "error line Cannot open quiz data file
[$full_path].");

You can seee the full program at this url:

http://www.dolphinative.com/quiz.txt

Thanks in adavance

__________________________________________________
Dolphinative Images                               )
--------------------------------------------------(
Adam Berns                  ) phone  916.242.1594 )
adam@dolphinative.com       ( fax    916.242.1597 (
http://www.dolphinative.com )                     )
---------------------------------------------------