Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I have a new website and I want to include a perl chat script in a specific table on every page. I can get the SSI to work perfectly if the files calling the chat script are in the main directory. But if I call the chat script from a different file than my main directory, it can't find it.
That's the code I am trying to use to call the CGI script. This is on a sub domain (cgi.domain.com) so that's why there's a folder /cgi/, but it's the main folder on this sub domain.<!--#include virtual="/home/richards/public_html/cgi/chat.cgi"-->
It works for all files calling the chat script in the /cgi/ folder but anything outside this folder (ie: /cgi/tutorials/, /cgi/about/) can't locate it.
This is an example of the error using the exact code as shown above.
Does anyone know what I did wrong? The file path IS right.unable to include file "/home/richards/public_html/cgi/chat.cgi" in pa +rsed file /home/richards/public_html/cgi/tutorials/index.shtml
Thanks.
Retitled by davido.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: OT: Using global SSIs
by saskaqueer (Friar) on Jan 14, 2005 at 05:35 UTC | |
by Anonymous Monk on Jan 14, 2005 at 06:27 UTC | |
by Joost (Canon) on Jan 14, 2005 at 11:32 UTC | |
by radiantmatrix (Parson) on Jan 14, 2005 at 17:02 UTC |