How do you include a php file?

P

Paull

I'm using the phpBB forum and would like to include one the the topics in my

home page. FP won't let me include a file unless it's an html file. How do I
include
that php file into my home page?

Thanks!
 
T

Thomas A. Rowe

Use the PHP include statement.

Also you have to rename your home to have .php extensions.

To test this you will have do so on your live site.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
C

chris leeds

Glad you asked Paul!
here's the thing (I know because I'm just about done wrapping up about 1,000
hours worth of work on a php app specifically for FrontPage);
(the desktop program you're using) really doesn't like anything to do with
php. you can set php as a file FrontPage will edit and fp 2002 and up won't
/ shouldn't mess with the code much but you can forget about things like
themes (most parts of them), nav bars (FrontPage driven), and virtually any
other FrontPage save time component.

The reason I wanted to write my script in php is because of people using
FrontPage to author against a UNIX server.

so, given that FrontPage doesn't play nice with php and I really needed php
for the cross platform capability of my script I decided to really dig in
and get something worked out:
the verdict; FrontPage will work fantastically with php and include it's
shared borders, nav bars, and everything else, you just can't tell FrontPage
that the pages are php. look at this: http://demo.contentseed.com/sample
although these pages have the .htm extension I've had the server admin
process the .htm and .html pages past the php engine. it may sound
complicated but it's really not. there's no problem with overburdening the
server because the pages would have had to be php anyway.

so in short, my suggestion to you would be to have your server admin make
the mod to process the .htm pages past the php engine, don't rename it to
php and in fact, don't use the <? and ?> instead use <script
language="php"></script> to enclose your php include statement.

HTH

--
Chris Leeds,
Microsoft MVP FrontPage

The email address on this posting is a "black hole". I got tired of all the
spam.
Please feel free to contact me here:
http://nedp.net/contact/
 
S

Steve Easton

A little confused here Chris.
Why do you need php for FrontPage to author against a UNIX server??


--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 
?

=?Windows-1252?Q?Rob_Giordano_\=28aka:_Crash_Gordo

I believe part of the project uses php.




| A little confused here Chris.
| Why do you need php for FrontPage to author against a UNIX server??
|
|
| --
| Steve Easton
| Microsoft MVP FrontPage
| 95isalive
| This site is best viewed............
| .......................with a computer
|
| > Glad you asked Paul!
| > here's the thing (I know because I'm just about done wrapping up about 1,000
| > hours worth of work on a php app specifically for FrontPage);
| > (the desktop program you're using) really doesn't like anything to do with
| > php. you can set php as a file FrontPage will edit and fp 2002 and up won't
| > / shouldn't mess with the code much but you can forget about things like
| > themes (most parts of them), nav bars (FrontPage driven), and virtually any
| > other FrontPage save time component.
| >
| > The reason I wanted to write my script in php is because of people using
| > FrontPage to author against a UNIX server.
| >
| > so, given that FrontPage doesn't play nice with php and I really needed php
| > for the cross platform capability of my script I decided to really dig in
| > and get something worked out:
| > the verdict; FrontPage will work fantastically with php and include it's
| > shared borders, nav bars, and everything else, you just can't tell FrontPage
| > that the pages are php. look at this: http://demo.contentseed.com/sample
| > although these pages have the .htm extension I've had the server admin
| > process the .htm and .html pages past the php engine. it may sound
| > complicated but it's really not. there's no problem with overburdening the
| > server because the pages would have had to be php anyway.
| >
| > so in short, my suggestion to you would be to have your server admin make
| > the mod to process the .htm pages past the php engine, don't rename it to
| > php and in fact, don't use the <? and ?> instead use <script
| > language="php"></script> to enclose your php include statement.
| >
| > HTH
| >
| > --
| > Chris Leeds,
| > Microsoft MVP FrontPage
| >
| > The email address on this posting is a "black hole". I got tired of all the
| > spam.
| > Please feel free to contact me here:
| > http://nedp.net/contact/
| > --
| >
| >
| > | > > I'm using the phpBB forum and would like to include one the the topics in
| > my
| > >
| > > home page. FP won't let me include a file unless it's an html file. How do
| > I
| > > include
| > > that php file into my home page?
| > >
| > > Thanks!
| > >
| > > --
| > > Paull
| >
| >
|
|
 
B

Bob Lehmann

Why would anyone develop a web app targeting a specific dev environment?

Bob Lehmann
 
C

chris leeds

the dynamic nature of my script, and the way it lets users change their
content with just a browser.
I'd have gone with .asp and made my life easier but since lots of people use
UNIX servers I thought php would be more universal since it will run just
about the same on both UNIX and windows.

--
Chris Leeds,
Microsoft MVP FrontPage

The email address on this posting is a "black hole". I got tired of all the
spam.
Please feel free to contact me here:
http://nedp.net/contact/
 
C

chris leeds

I'm not sure what you mean;
by dev. environment do you mean FrontPage?
If so, I did this for two reasons. first to "give back" to the FrontPage
community, secondly because it's easier to target a niche for marketing
purposes.

people do it all the time; there's a whole bunch of FrontPage add-ins and
components that won't work with other editors.

If I missed your point let me know, I think I've invested enough time in
this stupid thing that I'll have a valid reason. ;-)


--
Chris Leeds,
Microsoft MVP FrontPage

The email address on this posting is a "black hole". I got tired of all the
spam.
Please feel free to contact me here:
http://nedp.net/contact/
 
S

Steve Easton

Aaah, ok. Now I understand.

;-)

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer

chris leeds said:
the dynamic nature of my script, and the way it lets users change their
content with just a browser.
I'd have gone with .asp and made my life easier but since lots of people use
UNIX servers I thought php would be more universal since it will run just
about the same on both UNIX and windows.

--
Chris Leeds,
Microsoft MVP FrontPage

The email address on this posting is a "black hole". I got tired of all the
spam.
Please feel free to contact me here:
http://nedp.net/contact/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top