Click here to Skip to main content
15,914,220 members
Home / Discussions / Web Development
   

Web Development

 
QuestionReg : IIS Pin
venkatasivaramaprasad6-Apr-07 0:00
venkatasivaramaprasad6-Apr-07 0:00 
AnswerRe: ??????? Pin
Bradml5-Apr-07 22:17
Bradml5-Apr-07 22:17 
GeneralRe: ??????? Pin
hiral_shah5-Apr-07 22:19
hiral_shah5-Apr-07 22:19 
Questionmin-width and IE6 Pin
Matt Newman5-Apr-07 10:58
Matt Newman5-Apr-07 10:58 
AnswerRe: min-width and IE6 Pin
Shog95-Apr-07 19:43
sitebuilderShog95-Apr-07 19:43 
GeneralRe: min-width and IE6 Pin
Matt Newman6-Apr-07 3:00
Matt Newman6-Apr-07 3:00 
Questionjavascript function help [modified] Pin
ExLR8R5-Apr-07 6:27
ExLR8R5-Apr-07 6:27 
AnswerRe: javascript function help Pin
ExLR8R11-Apr-07 8:34
ExLR8R11-Apr-07 8:34 
Questioncustom validator Pin
jayvaishnav825-Apr-07 5:12
jayvaishnav825-Apr-07 5:12 
AnswerRe: custom validator Pin
Bradml5-Apr-07 20:58
Bradml5-Apr-07 20:58 
AnswerRe: custom validator Pin
hiral_shah5-Apr-07 22:22
hiral_shah5-Apr-07 22:22 
Questionajaxcontroltoolkit Pin
AnhTin4-Apr-07 18:56
AnhTin4-Apr-07 18:56 
QuestionInvoking a modal popup from the codebehind Pin
bgriffin_tpa4-Apr-07 7:05
bgriffin_tpa4-Apr-07 7:05 
AnswerRe: Invoking a modal popup from the codebehind Pin
badgrs5-Apr-07 3:41
badgrs5-Apr-07 3:41 
GeneralRe: Invoking a modal popup from the codebehind Pin
bgriffin_tpa5-Apr-07 5:12
bgriffin_tpa5-Apr-07 5:12 
AnswerRe: Invoking a modal popup from the codebehind Pin
Paddy Boyd5-Apr-07 4:21
Paddy Boyd5-Apr-07 4:21 
GeneralRe: Invoking a modal popup from the codebehind Pin
bgriffin_tpa5-Apr-07 5:15
bgriffin_tpa5-Apr-07 5:15 
QuestionBest Web 2.0 website? Pin
wojti4-Apr-07 4:25
wojti4-Apr-07 4:25 
AnswerRe: Best Web 2.0 website? Pin
Vasudevan Deepak Kumar4-Apr-07 7:04
Vasudevan Deepak Kumar4-Apr-07 7:04 
QuestionRe: Best Web 2.0 website? Pin
badgrs5-Apr-07 3:39
badgrs5-Apr-07 3:39 
AnswerRe: Best Web 2.0 website? Pin
Bradml5-Apr-07 3:41
Bradml5-Apr-07 3:41 
AnswerRe: Best Web 2.0 website? Pin
Guffa5-Apr-07 14:56
Guffa5-Apr-07 14:56 
Questionwhy Activex control is loaded only once Pin
indian1434-Apr-07 2:15
indian1434-Apr-07 2:15 
QuestionAny cgi/perl/ssi programmers here? Pin
benjymous4-Apr-07 1:24
benjymous4-Apr-07 1:24 
I'm being driven mad trying to find a solution that something that should be deceptively simple

I have a small cgi script /cgi-bin/time.cgi that takes an optional "start" argument

The functionality should be like this

* When the script is called with the start param, it sets a variable to the current time
* Every subsequent call should display the difference from that time (and thus let me profile different SSI includes to work out which bits are slow and need optimising)

example profile test page:
<--#include virtual="/cgi-bin/time.cgi?start=1" -->
<--#set var="SOMEVAR" value="some value" -->
<--#include virtual="/header.shtml" -->
<--#exec cmd="/cgi-bin/time.cgi" -->
<--#include virtual="/cgi-bin/maincontent.cgi?$QUERY_STRING" -->
<--#include virtual="/cgi-bin/time.cgi" -->
<--#include virtual="/footer.shtml" -->
<--#include virtual="/cgi-bin/time.cgi" -->


My big problem comes with the "start" functionality - for the life of me I'm unable to set an ENV variable from within a cgi script and have it visible to the next script (vars set in SSI, such as SOMEVAR in the example can be seen within the cgi)

Any ideas?

Here's the perl code in time.cgi
#! /usr/bin/perl

use Time::HiRes;
use CGI;

my($cgiquery) = new CGI;

print "Content-type: text/html\n\n";

if( $cgiquery->param('start') )
{
  print "<-- start -->\n";
  $ENV{'PROFILE_TIME'} = Time::HiRes::time;
}
else
{
  print "<-- continue -->\n";
}

my ($starttime) = $ENV{'PROFILE_TIME'};

print "<-- PROFILE: ";
print Time::HiRes::time - $starttime;
print " --> \n";
print "<-- starttime = $starttime -->\n";



QuestionFull Tooltip not working with Firefox Pin
Nilesh Thakkar4-Apr-07 1:02
Nilesh Thakkar4-Apr-07 1:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.