Click to See Complete Forum and Search --> : include cgi...is this possible


digital_storm
05-12-2005, 03:17 AM
Hello

Lets say I have made a cgi script called C1. Is it possible in another cgi scrip (C2) include C1 like (below) and C1 get executed in C2?

if(true){
----include and execute C1 script--------------------
}else{
print("Cant access");
}

if yes how do I do that?

Thanks in advance!

/D_S

Nedals
05-12-2005, 03:17 PM
http://search.cpan.org/~gaas/libwww-perl-5.803/lib/LWP/UserAgent.pm

winged1
05-12-2005, 09:33 PM
you would 'require' the second .cgi, which would then retain any variables that where common.