|
Author |
Message |
billdavies
Senior WebHelper
Joined: 22 Jan 2002
Posts: 107
Location: UK
|
Posted:
Mon Dec 15, 2003 6:59 pm (20 years, 6 months ago) |
|
Hey,
Is there an equivalent of php includes that can be used in cgi files?
Thanks |
|
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Mon Dec 15, 2003 7:07 pm (20 years, 6 months ago) |
|
|
|
|
billdavies
Senior WebHelper
Joined: 22 Jan 2002
Posts: 107
Location: UK
|
Posted:
Mon Dec 15, 2003 8:33 pm (20 years, 6 months ago) |
|
I had a look, and I don't think it is.
If it is then it's a bit too much for what I want so may have to do it manually unless anyone has any good ideas?! |
|
|
|
|
adam
Forum Moderator & Developer
Joined: 26 Jul 2002
Posts: 704
Location: UK
|
Posted:
Wed Dec 17, 2003 11:57 am (20 years, 6 months ago) |
|
you could use the system command to run another script, other than that I don't know |
________________________________ It's turtles all the way down... |
|
|
|
Zeke
Junior WebHelper
Joined: 30 Jan 2004
Posts: 1
|
Posted:
Fri Jan 30, 2004 1:51 pm (20 years, 4 months ago) |
|
Try this: obviously replace it with the file you want to include.
require "header.pl" || die("Cant find header.pl");
You may get an 'INC' error so in the case add this line to your script. This tells the require where to find the file.
use lib qw(pathtofile);
Ive just used this to create a 'template' system for one of my assignments.
Hope this helps, sorry for the slow response Ive only just found this site. |
|
|
|
|
|
|
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.12564 seconds :: 17 queries executed :: All Times are GMT
Powered by phpBB 2.0
© 2001, 2002 phpBB Group :: Based on an FI Theme
| |