Page 1 of 1

local php includes

Posted: Fri Nov 18, 2005 2:59 pm
by bazz
Hi folks, this is my first visit here and I am desperate :(

My isp has disabled part of my service because I had used http includes to pull in perl files and html files from another webspace. Both my own spaces, they say I must do it locally to reduce the looping.

Now I have got working again for the html files but not, for the perl files.

Please help
This works for the html files.

Code: Select all

<?php include '/domains/234/3456/html/headers_and_footers/mysite/header.html'; ?>

But what will work for the perl files in my cgi-bin

bazz

Posted: Fri Nov 18, 2005 4:55 pm
by Ambush Commander
Assuming that you want to get the processed information from the perl files (not the perl's source code), you can try shell_exec() although you're probably better off just porting the Perl code to PHP.