B
BlinKol
Considering a script that needs a fixed stock of images during its
process and knowing that this stock shouldn't be accessible out of the
script, where would you install these images ?
In my mind, the best would be to upload them in the same directory as
the Perl script himself, but it doesn't work : server-log says that the
image file is not exacutable and that it don't know how to handle it.
Here is a short test script to show what I want to say :
-- BEGIN OF /cgi-bin/test/test.pl SCRIPT --
#!c:/perl/bin/Perl.exe
print "Content-type: text/html\n\n";
print "<HTML><BODY>";
print "<img src='/cgi-bin/test/test.gif' border=0>";
print "</BODY></HTML>";
exit 0;
-- END OF SCRIPT --
The image doesn't appear in browser and server's error log says :
"script not found or unable to stat: C:/sites/vhosts/dev/cgi-
bin/test/test.gif, referer: http://dev-desk/cgi-bin/test/test.pl"
Also, this test has been ran in Apache/ActivePerl under Windows, whitout
permission concern.
Do you have an idea about this error ? How would you do ?
process and knowing that this stock shouldn't be accessible out of the
script, where would you install these images ?
In my mind, the best would be to upload them in the same directory as
the Perl script himself, but it doesn't work : server-log says that the
image file is not exacutable and that it don't know how to handle it.
Here is a short test script to show what I want to say :
-- BEGIN OF /cgi-bin/test/test.pl SCRIPT --
#!c:/perl/bin/Perl.exe
print "Content-type: text/html\n\n";
print "<HTML><BODY>";
print "<img src='/cgi-bin/test/test.gif' border=0>";
print "</BODY></HTML>";
exit 0;
-- END OF SCRIPT --
The image doesn't appear in browser and server's error log says :
"script not found or unable to stat: C:/sites/vhosts/dev/cgi-
bin/test/test.gif, referer: http://dev-desk/cgi-bin/test/test.pl"
Also, this test has been ran in Apache/ActivePerl under Windows, whitout
permission concern.
Do you have an idea about this error ? How would you do ?