Log in

View Full Version : PHP problem


BigVikingAl
2008-03-08, 04:01 PM
I have a new page:

http://www.webcamstarlets.com/test/webmaster.html

that is blank except for the php include: <? include "../webmasters.html";?>

Here is the page that include is pointing to:

http://www.webcamstarlets.com/webmasters.html

But when the first page is typed in nothing from the include is dispalyed. Do I maybe have to activate a php usage function to use php on a new domain?

Any help would be appreciated.

ronnie
2008-03-09, 01:35 AM
It should be:

<? include("/path/to/file/webmasters.html"); ?>

I've always used the full path, never tried the ../ And with full path, it works no matter what page you put it on, or any directory or sub.

nicedreams
2008-03-12, 02:11 PM
I have a new page:

http://www.webcamstarlets.com/test/webmaster.html

that is blank except for the php include: <? include "../webmasters.html";?>

Here is the page that include is pointing to:

http://www.webcamstarlets.com/webmasters.html

But when the first page is typed in nothing from the include is dispalyed. Do I maybe have to activate a php usage function to use php on a new domain?

Any help would be appreciated.

You need the full path in the include statement from your home dir. Plus you would need php parsing enabled on your server if you are going to call php commands in a html file.

Jimmy