|
Author |
Message |
selpaw
WebHelper
Joined: 10 Jan 2002
Posts: 55
Location: Perth, Western Australia
|
Posted:
Sat Jan 19, 2002 8:47 am (22 years, 3 months ago) |
|
is it possible?
what i would like to do.. is run/execute "lala.cgi" and when it runs.. it also includes "lala2.cgi" is this possible? and if so how?
a bit like how ssi work im thinking??
ty |
________________________________ Luke
Selpaw Web Directory |
|
|
|
Jos
Ex Team Member
Joined: 08 Jan 2002
Posts: 36
Location: The Netherlands
|
Posted:
Sat Jan 19, 2002 7:30 pm (22 years, 3 months ago) |
|
Warp wrote: |
is it possible?
|
It's possible but so see the output of the second script on the same time cann't. You can place on the top of a script the follow :
$Run_another = `/usr/bin/perl -w second.cgi > test.html`;
The second.cgi is starting the same time and the output is in test.html. This only a sample but play with this and it can be usefull. |
________________________________ Jos
** Team Member ** http://www.josvanras.com ** |
|
|
|
selpaw
WebHelper
Joined: 10 Jan 2002
Posts: 55
Location: Perth, Western Australia
|
Posted:
Sun Jan 20, 2002 4:47 am (22 years, 3 months ago) |
|
and how would include the html file?
sorry, but I have a problem going off and learning perl/programing etc... (my way of thinking doesnt help!)
thanks Jos, |
________________________________ Luke
Selpaw Web Directory |
|
|
|
jayant
Team Member
Joined: 07 Jan 2002
Posts: 262
Location: New Delhi, India
|
Posted:
Wed Jan 23, 2002 2:24 pm (22 years, 3 months ago) |
|
Warp wrote: |
and how would include the html file?
sorry, but I have a problem going off and learning perl/programing etc... (my way of thinking doesnt help!)
thanks Jos,
|
following is the code to read any file:
Code: | $file = '/path/to/a/file'; # Name the file
open(INFO, $file); # Open the file
@lines = <INFO>; # Read it into an array
close(INFO); # Close the file
print @lines; # Print the array
|
also see the following
Code: | open(INFO, $file); # Open for input
open(INFO, ">$file"); # Open for output
open(INFO, ">>$file"); # Open for appending
open(INFO, "<$file"); # Also open for input
|
|
________________________________ Jayant Kumar
Member of the 4WebHelp Team
Nibble Guru - Computing Queries Demystified
GZip/ Page Compression Test |
|
|
|
selpaw
WebHelper
Joined: 10 Jan 2002
Posts: 55
Location: Perth, Western Australia
|
Posted:
Thu Jan 24, 2002 12:49 pm (22 years, 3 months ago) |
|
thanks for the replies/help...ill give the suggested solution a go this weekend.... thanks |
________________________________ Luke
Selpaw Web Directory |
|
|
|
|
|
You cannot post new topics in this forum. You cannot reply to topics in this forum. You cannot edit your posts in this forum. You cannot delete your posts in this forum. You cannot vote in polls in this forum.
|
Page generation time: 0.217509 seconds :: 19 queries executed :: All Times are GMT
Powered by phpBB 2.0
© 2001, 2002 phpBB Group :: Based on an FI Theme
| |