Previous Thread
Next Thread
Print Thread
Rate Thread
#102371 03/04/2001 7:51 PM
Joined: Mar 2001
Posts: 4
APN
Offline
Junior Member
Junior Member
Offline
Joined: Mar 2001
Posts: 4
How the heck do u add ssi in a cgi file?

Sponsored Links
#102372 03/04/2001 10:39 PM
Joined: Feb 2001
Posts: 2
Junior Member
Junior Member
Offline
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!

#102373 03/04/2001 10:58 PM
Joined: Sep 2000
Posts: 755
P.I.T.A. / Programmer
P.I.T.A. / Programmer
Offline
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
#102374 03/04/2001 11:55 PM
Joined: Feb 2000
Posts: 4,625
Member
Member
Offline
Joined: Feb 2000
Posts: 4,625
You could use the Apache::SSI module

#102375 03/06/2001 9:48 AM
Joined: Mar 2001
Posts: 4
APN
Offline
Junior Member
Junior Member
Offline
Joined: Mar 2001
Posts: 4
thanks anways

Sponsored Links
#102376 03/20/2001 3:24 AM
Joined: Oct 2000
Posts: 76
Member
Member
Offline
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

#102377 03/21/2001 5:28 PM
Joined: Aug 2000
Posts: 1,290
Addict
Addict
Offline
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 ]


- Custom Web Development
http://www.JCSWebDev.com

Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)