local php includes

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
bazz
Forum Newbie
Posts: 1
Joined: Fri Nov 18, 2005 2:54 pm

local php includes

Post 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
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post 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.
Post Reply