You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by CraigT <ct...@yahoo.com> on 2007/11/24 12:26:19 UTC
[users@httpd] how to preload a dll and loading a .js into a .cgi in
cgi-bin
Hello,
I hope this is the right place for these 2 questions.
1) How can I preload a dll. I preload language modules (Perl) in a startup
file executed in the HTTPD file.
I think this is the place, but I don't know how to do code it.
2) How can I load a Javascript file into a .CGI file residing in the cgi-bin
directory. I can't load .JS files from anyplace into a .CGI file in this
directory. I can load .JS files into .HTML files in the root however.
I'm thinking that an adjustment in the HTTPD file is necessary, but I need
some guidance.
Thanks in advance for any help.
craigt
--
View this message in context: http://www.nabble.com/how-to-preload-a-dll-and-loading-a-.js-into-a-.cgi-in-cgi-bin-tf4865564.html#a13923980
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] how to preload a dll and loading a .js into a .cgi in cgi-bin
Posted by Vincent Bray <no...@gmail.com>.
On 27/11/2007, CraigT <ct...@yahoo.com> wrote:
> I'm not sure what 'top posting' is. Am I doing something wrong?
http://catb.org/jargon/html/T/top-post.html
> I had tried to load the C DLLs from several places like the Perl/lib
> directory. Apache will not start and I get no error messages.
You still haven't cleared up what these files are for. If they're cgi
binaries, as one would expect given their presence in a directory
called 'cgi-bin', try running them on the command line. You should see
a Content-Type: line followed by whatever content they generate. If
you don't see that, then they're not cgi binaries and you should ask
whoever provided them for installation instructions.
> I get no Apache error messages when the .JS file does not load (using
> <script src=). The only error I get is a browser (IE) error message of
> 'Object expected.'.
That would indicate that there's either an error serving those files
(see the error log as mentioned previously), or that they're not
javascript files.
The following tools might help to see what's being served:
http://wiki.apache.org/httpd/WatchingHttpHeaders
--
noodl
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] how to preload a dll and loading a .js into a
.cgi in cgi-bin
Posted by CraigT <ct...@yahoo.com>.
noodl,
I'm not sure what 'top posting' is. Am I doing something wrong?
I had tried to load the C DLLs from several places like the Perl/lib
directory. Apache will not start and I get no error messages.
I get no Apache error messages when the .JS file does not load (using
<script src=). The only error I get is a browser (IE) error message of
'Object expected.'.
craigt
noodl wrote:
>
> On 25 Nov 2007, at 13:29, CraigT wrote:
>> I have tried the LoadFile directive but Apache would not start.
>> That's
>> why I was asking if there was a way to do it in the startup.pl file.
>> The commands that I tried follow and were placed at the end of the
>> HTTPD
>> file.
>>
>> LoadFile "C:/usr/www/steepusa/cgi-bin/perlchartdir5005.dll"
>> LoadFile "C:/usr/www/steepusa/cgi-bin/perlchartdir5004.dll"
>> LoadFile "C:/usr/www/steepusa/cgi-bin/perlchartdir58mt.dll"
>> LoadFile "C:/usr/www/steepusa/cgi-bin/perlchartdir58.dll"
>> LoadFile "C:/usr/www/steepusa/cgi-bin/perlchartdir56mt.dll"
>> LoadFile "C:/usr/www/steepusa/cgi-bin/perlchartdir56.dll"
>
> Are these files cgi scripts? I would guess so as they're in a
> directory called cgi-bin, but then again I'm not sure with .dll file
> extensions.
>
> If they are cgi scripts, then LoadFile is very much the wrong way to
> have apache reference them. Did this system you're installing come
> with installation instructions?
>
>> I have been trying to load a .JS file in a script tag in my cgi
>> script's
>> html. I have tried loading from directories above and below the
>> cgi-bin
>> directory and can't seem to get it to work. Do I need to adjust the
>> HTTPD somehow?
>
>
> We need to see errors from your error log related to the requests for
> the javascript files. There could be any number of reasons for these
> requests to fail.
>
> [rant]
> Please don't top-post.
> [/rant]
>
> --
> noodl
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/how-to-preload-a-dll-and-loading-a-.js-into-a-.cgi-in-cgi-bin-tf4865564.html#a13971779
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] how to preload a dll and loading a .js into a .cgi in cgi-bin
Posted by Vincent Bray <no...@gmail.com>.
On 25 Nov 2007, at 13:29, CraigT wrote:
> I have tried the LoadFile directive but Apache would not start.
> That's
> why I was asking if there was a way to do it in the startup.pl file.
> The commands that I tried follow and were placed at the end of the
> HTTPD
> file.
>
> LoadFile "C:/usr/www/steepusa/cgi-bin/perlchartdir5005.dll"
> LoadFile "C:/usr/www/steepusa/cgi-bin/perlchartdir5004.dll"
> LoadFile "C:/usr/www/steepusa/cgi-bin/perlchartdir58mt.dll"
> LoadFile "C:/usr/www/steepusa/cgi-bin/perlchartdir58.dll"
> LoadFile "C:/usr/www/steepusa/cgi-bin/perlchartdir56mt.dll"
> LoadFile "C:/usr/www/steepusa/cgi-bin/perlchartdir56.dll"
Are these files cgi scripts? I would guess so as they're in a
directory called cgi-bin, but then again I'm not sure with .dll file
extensions.
If they are cgi scripts, then LoadFile is very much the wrong way to
have apache reference them. Did this system you're installing come
with installation instructions?
> I have been trying to load a .JS file in a script tag in my cgi
> script's
> html. I have tried loading from directories above and below the
> cgi-bin
> directory and can't seem to get it to work. Do I need to adjust the
> HTTPD somehow?
We need to see errors from your error log related to the requests for
the javascript files. There could be any number of reasons for these
requests to fail.
[rant]
Please don't top-post.
[/rant]
--
noodl
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] how to preload a dll and loading a .js into a
.cgi in cgi-bin
Posted by CraigT <ct...@yahoo.com>.
Thanks for replying noodl.
I have tried the LoadFile directive but Apache would not start. That's
why I was asking if there was a way to do it in the startup.pl file.
The commands that I tried follow and were placed at the end of the HTTPD
file.
LoadFile "C:/usr/www/steepusa/cgi-bin/perlchartdir5005.dll"
LoadFile "C:/usr/www/steepusa/cgi-bin/perlchartdir5004.dll"
LoadFile "C:/usr/www/steepusa/cgi-bin/perlchartdir58mt.dll"
LoadFile "C:/usr/www/steepusa/cgi-bin/perlchartdir58.dll"
LoadFile "C:/usr/www/steepusa/cgi-bin/perlchartdir56mt.dll"
LoadFile "C:/usr/www/steepusa/cgi-bin/perlchartdir56.dll"
I have been trying to load a .JS file in a script tag in my cgi script's
html. I have tried loading from directories above and below the cgi-bin
directory and can't seem to get it to work. Do I need to adjust the
HTTPD somehow?
Thanks,
craigt
noodl wrote:
>
> On 24 Nov 2007, at 11:26, CraigT wrote:
>> 1) How can I preload a dll. I preload language modules (Perl) in a
>> startup
>> file executed in the HTTPD file.
>> I think this is the place, but I don't know how to do code it.
>
> I'm not exactly sure what you're asking here, but you might need the
> LoadFile directive.
>
>> 2) How can I load a Javascript file into a .CGI file residing in the
>> cgi-bin
>> directory. I can't load .JS files from anyplace into a .CGI file
>> in this
>> directory. I can load .JS files into .HTML files in the root
>> however.
>> I'm thinking that an adjustment in the HTTPD file is necessary, but
>> I need
>> some guidance.
>
> Again, this doesn't make much sense. What does it mean to load a
> javascript file in to a cgi script?
>
> Perhaps you're using a script tag in your cgi script's html that
> expects to be able to request a javascript file that's in the cgi-bin
> directory? That typically won't work, as traditionally the name cgi-
> bin refers to directories that contain only executable cgi scripts.
>
> --
> noodl
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/how-to-preload-a-dll-and-loading-a-.js-into-a-.cgi-in-cgi-bin-tf4865564.html#a13935584
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] how to preload a dll and loading a .js into a .cgi in cgi-bin
Posted by Vincent Bray <no...@gmail.com>.
On 24 Nov 2007, at 11:26, CraigT wrote:
> 1) How can I preload a dll. I preload language modules (Perl) in a
> startup
> file executed in the HTTPD file.
> I think this is the place, but I don't know how to do code it.
I'm not exactly sure what you're asking here, but you might need the
LoadFile directive.
> 2) How can I load a Javascript file into a .CGI file residing in the
> cgi-bin
> directory. I can't load .JS files from anyplace into a .CGI file
> in this
> directory. I can load .JS files into .HTML files in the root
> however.
> I'm thinking that an adjustment in the HTTPD file is necessary, but
> I need
> some guidance.
Again, this doesn't make much sense. What does it mean to load a
javascript file in to a cgi script?
Perhaps you're using a script tag in your cgi script's html that
expects to be able to request a javascript file that's in the cgi-bin
directory? That typically won't work, as traditionally the name cgi-
bin refers to directories that contain only executable cgi scripts.
--
noodl
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org