XFileSharing Pro - php include not being executed in the templates

Message
Author
clkweb
Posts: 6
Joined: Mar 22, 2009 8:13 pm

php include not being executed in the templates

#1 Postby clkweb » Apr 29, 2009 3:33 am

I tried to put a php include code in the main.html template in the public_html/cgi-bin/Templates directory but it does not seem to execute the code.

When I created a file and put it on the root directory /public_html/ and put the same php include codes..it works so that means my server and .htaccess is working fine.

Is there any restriction on those Templates inside the cgi-bin directory?

Appreciate anyone's help on this.

User avatar
PilgrimX182
Posts: 2186
Joined: Mar 22, 2006 1:39 pm

#2 Postby PilgrimX182 » Apr 29, 2009 5:56 am

It's not possible to use PHP in these template. This is PROS for your security anyway.

clkweb
Posts: 6
Joined: Mar 22, 2009 8:13 pm

#3 Postby clkweb » Apr 29, 2009 7:36 am

Is there any workaround? There must be a way right? Because I need to put the include code to show my top link exchange partners I have. It is required to run a link exchange script that I bought.

Please help.

PilgrimX182 wrote:It's not possible to use PHP in these template. This is PROS for your security anyway.

publicmedia24
Posts: 8
Joined: Jan 02, 2009 3:52 pm

#4 Postby publicmedia24 » Apr 29, 2009 7:07 pm

I want to use a banner rotator for my advertising and i will include this with php include tag.

greetz
chris

clkweb
Posts: 6
Joined: Mar 22, 2009 8:13 pm

#5 Postby clkweb » Apr 30, 2009 7:09 am

Have you tried it? Did it work?

publicmedia24 wrote:I want to use a banner rotator for my advertising and i will include this with php include tag.

greetz
chris

publicmedia24
Posts: 8
Joined: Jan 02, 2009 3:52 pm

#6 Postby publicmedia24 » Apr 30, 2009 1:28 pm

No, any idea how to use it ?

regards
Chris

User avatar
PilgrimX182
Posts: 2186
Joined: Mar 22, 2006 1:39 pm

#7 Postby PilgrimX182 » Apr 30, 2009 7:57 pm

This is not possible with current templates.

publicmedia24
Posts: 8
Joined: Jan 02, 2009 3:52 pm

#8 Postby publicmedia24 » Apr 30, 2009 8:07 pm

PilgrimX182 wrote:This is not possible with current templates.
i do that with an iframe in the main.html

so it works for me, it is ok ^^

regards
Chris