Perl Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPerl Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
  #1  
Old July 27th, 2000, 02:40 PM
explore explore is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Location: TX
Posts: 38 explore User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Send a message via AIM to explore
I am trying to use SSI (for the first time)
to display the contents of a file within an html form. For ex: a user views the form
and the current date is already filled in for them ( I know how to do that: <!--#config timefmt="%Y-%m-%d" --> <!--#echo var="DATE_LOCAL" --> )

I want to display the contents of my counter file within the job id field the user fills out. I tried : "<!--#echo var="../cgi-bin/data/counter.pl" -->" but it doesn't work.

The main goal is to give the user a predefined job number and I was using the counter to do that but it's not working..any suggestions?

Reply With Quote
  #2  
Old July 27th, 2000, 04:20 PM
RyanP
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
you can insert the output of a script with :

<!--#include virtual="scriptname.ext" -->

Reply With Quote
  #3  
Old July 27th, 2000, 05:01 PM
freebsd
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Yes, use <!--#include virtual="scriptname.ext" -->

>>"<!--#echo var="../cgi-bin/data/counter.pl" -->" but it doesn't work

Two mistakes here. First, you can't use echo var for that. Second, you can't use "../", that is for security reason and it's how SSI supposed to work. Please note, you also can't include up 1 directory level. To do that, you have to use "exec cmd" with full path.

Reply With Quote
  #4  
Old July 28th, 2000, 01:54 PM
explore explore is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Location: TX
Posts: 38 explore User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Send a message via AIM to explore
Thanks!

I tried that and received the following error.. any ideas why??

[Can't write to the data file! Counter not incremented!]8

Reply With Quote
  #5  
Old July 28th, 2000, 02:34 PM
explore explore is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Location: TX
Posts: 38 explore User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
Send a message via AIM to explore
Nevermind, I got it to work..my brain must think it's Monday :-). Thanks again!

Reply With Quote
  #6  
Old August 22nd, 2000, 08:49 AM
erinkw erinkw is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Posts: 4 erinkw User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I have tried to use the include virtual ssi but it displays all of the coding for the cgi file instead of executing it. i am also trying to pass a parameter and it says it can't find the .html file that the script looks for as a template file. I have run this script using exec cgi on a different server but me new ISP won't run this ssi command. Any suggestions on what the problem might be?

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPerl Programming > SSI Question


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway