Re: ssi and Perl/CGI



On Sun, May 14, 2006 at 06:43:13PM -0400, Ricky Zhou wrote:

First, some tips for looking into further such problems:
* Check the error log-- the messages are usually pretty descriptive.

Unfortunately, I don't have access to the logs. As I mentioned in the
original email, it's a cheapo webhosting account without any shell
access. I can transfer files to and from what amounts to a home
directory for the account, which has a public_ftp directory and a
public_html directory and no logs (which I tend to guess would be in
/var anyway).


* Apache (which I'm assuming that you're using) has great
documentation (http://httpd.apache.org/docs/2.0/howto/ssi.html , for
example).

Thanks for the URL. I'll be going through that page with a fine-toothed
comb, now that I'm using (fighting with) SSI.



For your specific problem, try using <!--#include
virtual="/cgi-bin/bar.pl" -->

How do I go about passing variables to the script via include virtual
without using cookies, then? My understanding is that include virtual
won't allow passing variables via the URL (for example).


(For exec, it's exec cmd, not exec cgi).

I'll give cmd a whirl, though cgi seems to work great if all my page
content is coming from the CGI script. Is there some specific
difference in behavior between cmd and cgi in this of which I'm not
aware?

--
Chad Perrin [ CCD CopyWrite | http://ccd.apotheon.org ]
"There comes a time in the history of any project when it becomes necessary
to shoot the engineers and begin production." - MacUser, November 1990
.



Relevant Pages

  • Re: Need some problemsolving-cgi/xml
    ... Did you check the server logs to see what ... Have you tested the script at ... > I get a CGI timeout error. ... How can I combine all these xml files/xsl to ...
    (comp.lang.perl.misc)
  • Re: IIS-bug - CGI-applikation terminates when loading standard DLL
    ... >> I am developing CGI applications, and have run into a problem wich looks ... we've purchased which are running on an win2k3 IIS 6.0 server. ... Hit refresh and the page will load fine second time round. ... Perusing the Event logs, HttpErr logs, web logs shows nothing untoward at ...
    (microsoft.public.inetserver.iis)
  • Re: CGI apps in C?
    ... Another poster suggested using FastCGI. ... being accessed - in particular to prevent one site's CGI from being able to ... there are many other bottlenecks you may reach on your webserver ... Much better to monitor your utilisation and logs carefully. ...
    (freebsd-isp)
  • Re: Script to Search and Delete Files from Remote Machines
    ... Put this in a bat file and run from CMD: ... Make sure you have a folder named 'logs' on C drive, each computer will have its own log file in that directory. ... i need my script to pick machine names from a text ...
    (microsoft.public.windows.server.scripting)
  • Re: files with strange permissions and attribute
    ... Can you please provide the syntax for this cmd? ... which logs should I be looking at? ... Saqib http://www.linkedin.com/in/encryption ...
    (RedHat)

Loading