|
|
Joined: Mar 2001
Posts: 4
Junior Member
|
Junior Member
Joined: Mar 2001
Posts: 4 |
How the heck do u add ssi in a cgi file?
|
|
|
|
Joined: Feb 2001
Posts: 2
Junior Member
|
Junior Member
Joined: Feb 2001
Posts: 2 |
I'm with ya brother. I'm trying to do a left side SSI menu. Putting in the header doesn't do diddly.
Some guru please help the newbies!
|
|
|
|
Joined: Sep 2000
Posts: 755
P.I.T.A. / Programmer
|
P.I.T.A. / Programmer
Joined: Sep 2000
Posts: 755 |
CGI scripts are not parsed, so you cannot call others via traditional SSI tags.
You will need to either include the code you want to execute in your script, or you will need to require the script you wish to use, and call the appropriate sub routines
--mark
"Annnnnnnndd now, opening for Iron Maiden...... WYLD STALLYNS!!!" --Bill S. Preston, Esquire and Ted "Theodore " Logan
|
|
|
|
Joined: Feb 2000
Posts: 4,625
Member
|
Member
Joined: Feb 2000
Posts: 4,625 |
You could use the Apache::SSI module
|
|
|
|
Joined: Mar 2001
Posts: 4
Junior Member
|
Junior Member
Joined: Mar 2001
Posts: 4 |
|
|
|
|
Joined: Oct 2000
Posts: 76
Member
|
Member
Joined: Oct 2000
Posts: 76 |
I also ran into this problem when trying to install WebTrends Live using they're ssi code. It didnt work , now I know why!
Thanks!
-Ghoste
|
|
|
|
Joined: Aug 2000
Posts: 1,290
Addict
|
Addict
Joined: Aug 2000
Posts: 1,290 |
A round about way is by adding a require line..
require '/aaa/bbb/ccc/domain_name/dir/file.txt';
the create a file (file.txt, or whatever you want to call it) and add your stuff to be pulled in. In your new file you will have:
$value='
content you want pulled in
';
1;
The $value can be whatever you wish. Then in the cgi file you place the tag $value where you want the code pulled in. It *usually* works fine. Code the file 666 and you're ready to try it. Upload it in ascii.
Make backups of everything before playing!
[ March 21, 2001: Message edited by: DCF ]
[ March 21, 2001: Message edited by: DCF ]
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 87
Joined: December 2001
|
|
Forums63
Topics37,573
Posts293,925
Members13,849
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|