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 this :
-- FROM ERROR LOG --
[Wed Jan 11 20:40:17 2006] [error] [client 127.0.0.1]
C:/websites/vhosts/dev/cgi-bin/test/test.jpg is not executable; ensure
interpreted scripts have "#!" first line, referer: http://dev-desk/cgi-
bin/test/test.pl
[Wed Jan 11 20:40:17 2006] [error] [client 127.0.0.1] (9)Bad file
descriptor: don't know how to spawn child process:
C:/websites/vhosts/dev/cgi-bin/test/test.jpg, referer: http://dev-
desk/cgi-bin/test/test.pl
-- END OF ERROR --
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 this :
-- FROM ERROR LOG --
[Wed Jan 11 20:40:17 2006] [error] [client 127.0.0.1]
C:/websites/vhosts/dev/cgi-bin/test/test.jpg is not executable; ensure
interpreted scripts have "#!" first line, referer: http://dev-desk/cgi-
bin/test/test.pl
[Wed Jan 11 20:40:17 2006] [error] [client 127.0.0.1] (9)Bad file
descriptor: don't know how to spawn child process:
C:/websites/vhosts/dev/cgi-bin/test/test.jpg, referer: http://dev-
desk/cgi-bin/test/test.pl
-- END OF ERROR --
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 ?