Greenguy's Board

Greenguy's Board (http://www.greenguysboard.com/board/index.php)
-   Programming & Scripting (http://www.greenguysboard.com/board/forumdisplay.php?f=15)
-   -   PHP problem (http://www.greenguysboard.com/board/showthread.php?t=45939)

BigVikingAl 2008-03-08 03:01 PM

PHP problem
 
I have a new page:

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

that is blank except for the php include:

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 12:35 AM

It should be:

PHP Code:

<? 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 01:11 PM

Quote:

Originally Posted by BigVikingAl (Post 392463)
I have a new page:

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

that is blank except for the php include:

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


All times are GMT -4. The time now is 04:41 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc