My host does not accept absolut php includes

Our support will answer all your general questions here.

Moderator: Rock

Post Reply
moremore5
Posts: 13
Joined: Sun Jun 14, 2009 10:22 am

My host does not accept absolut php includes

Post by moremore5 »

i have tried to add
<? virtual("/cgi-bin/te/in.cgi?p=default"); ?>
on my index.php but i always got the error.
Fatal error: Call to undefined function virtual() in /home/babes/public_html/index2.php on line 7

Then i have changed it to <? include("/cgi-bin/te/in.cgi?p=default"); ?>
and also <? include("cgi-bin/te/in.cgi?p=default"); ?>
but still got the error: Failed to open stream: No such file or directory

Then i have asked my host about it and they said.


"It appears you are trying to use a php include to call cgi which does not work on servers that execute php through suPHP. Since you are using Trade Expert, they do have other ways to do what you are trying to do which you should look in to those"

How can i include the "/cgi-bin/te/in.cgi?p=default" with suPHP installed on my server?
texpert
Site Admin
Posts: 719
Joined: Sat Mar 14, 2009 5:54 pm

Re: My host does not accept absolut php includes

Post by texpert »

You can't include it or invoke it using virtual ,because that is what your host tried to prevent with suPHP. You can try to use remote tracking option.
Open manual and scroll to the bottom of the manual index, you'll see remote tracking subject there. Exclude "sub." and just use "domain.com" and it should work.

regards,
Jim
Post Reply