|
|
Please consider registering: registration is fast, easy and free! Benefits of registration:
- Free advertising for your website: Every post in our forums goes towards a "credit" of ads, which are displayed on most pages of our forums. Each post gives you 400 ad impressions. To submit your ad, edit your profile.
- Discount at TemplateMonster: All our members enjoy a 10% discount at TemplateMonster.com!
|
- Private Messages: Exchange private messages with other members of the forums.
- Message Tracking/Subscription: phpBB enables you to subscribe to threads which interest you, and will then email you when a reply is posted. phpBB also remembers which posts registered users have read during a session, which means you can keep track of which posts you have already looked at.
|
|
| Author |
Message |
selpaw
WebHelper


Joined: 10 Jan 2002
Posts: 53
Location: Perth, Western Australia
|
Posted:
Sat Jan 19, 2002 8:47 am (11 years, 4 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: 17
Location: The Netherlands
|
Posted:
Sat Jan 19, 2002 7:30 pm (11 years, 4 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: 53
Location: Perth, Western Australia
|
Posted:
Sun Jan 20, 2002 4:47 am (11 years, 4 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: 199
Location: New Delhi, India
|
Posted:
Wed Jan 23, 2002 2:24 pm (11 years, 4 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: 53
Location: Perth, Western Australia
|
Posted:
Thu Jan 24, 2002 12:49 pm (11 years, 4 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.057889 seconds :: 18 queries executed :: All Times are GMT
Powered by phpBB 2.0
© 2001, 2002 phpBB Group :: Based on an FI Theme
| |