Forum Moderators: coopster & phranque

Message Too Old, No Replies

Pulling a CGI script into an HTML page?

         

victoryrun

4:29 pm on Feb 9, 2003 (gmt 0)

10+ Year Member



I have a webpage that is made up of tables. I have a CGI program (it's a picture posting program) which calls all files from a directory on my server and shows them in a page. Problem is, you have to click a link called www.mydomain.com/cgi-bin/cgiprogram.pl to view these results (the photos). I want visitors to my website to be able to click the "photoalbum.html" link I have in my regular HTML and have the current results of that "cgiprogram.pl" to append into this "photoalbum.html". I haven't the FOGGIEST on script writing, about all I can do is modify ones I find for free, and I get lucky to do most of those. So I thought maybe an ILAYER on my HTML page would allow a piece of code to draw that cgi file. Is this accomplishable? How do I go about doing it?

Thanks tons,
Ramsey

andreasfriedrich

12:08 am on Feb 11, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



To use the AddType [httpd.apache.org] directive in a .htaccess file you need to have at least AllowOverride [httpd.apache.org] FileInfo privileges. If you don´t have sufficient privileges Apache [httpd.apache.org] will just silently ignore your settings in the .htaccess file. This will be the case even if mod_include [httpd.apache.org] is configured to handle .shtml files.

Andreas

Birdman

12:21 am on Feb 11, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Sorry to be off topic. Andreas, do your have your skin configured to make all those links automatically?

<added>Just wondering, since you've been ripping those links off pretty fast :))</added>

andreasfriedrich

12:30 am on Feb 11, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yes, I do. It will convert §mysql-functions§, php-functions(), /apache-directives/, %perl-functions% and some others like Perl [perl.com] MySQL [mysql.com] HTML4 [w3.org] CSS2 [w3.org] If I have the time I´d like to do HTML elements, CSS [w3.org] properties and RFCs as well.

Birdman

12:39 am on Feb 11, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Slick :)

andreasfriedrich

12:56 am on Feb 11, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It saves some time and I was tired of copying and pasting the same links time and again. It is done by the proxy server I posted here. It takes the posted data, decodes it, does the substitutions, encodes it again and sends it off. The /HTTP::Message/ class is even nice enough to correct the Content-Lenght field of the request header for me.

Andreas

This 35 message thread spans 2 pages: 35