Forum Moderators: coopster

Message Too Old, No Replies

php includes called from with cgi file

is it possible?

         

derek mcgilvray

9:17 pm on Nov 28, 2006 (gmt 0)

10+ Year Member



Hi folks,
I have cgi files and want to 'include' a php file for the header and footer - is it possible, or do I need to change the .cgi extension?
Any help would be much appreciated,

Derek

jatar_k

10:43 pm on Nov 28, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



so is the the cgi file perl? there is also php cgi.

if it is perl I believe you need some kind of exec to include the output of the script as opposed to the content

derek mcgilvray

9:05 pm on Nov 29, 2006 (gmt 0)

10+ Year Member



Thanks for your offering jatar_k, I'm not sure if it's perl or php but I messed around a bit and was able to put the content of the php include files directly into the cgi script and all's working well now. Thanks again for your help.

jatar_k

12:45 am on Nov 30, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



no problem, I assume it was php then ;)