Forum Moderators: open

Message Too Old, No Replies

Frontpage 2003 & PHP

How to insert a PHP template

         

slbuff

2:05 pm on Sep 17, 2005 (gmt 0)



Ok, first, I'm totally ignorant to PHP. So I didn't write the PHP template I'm only trying to add it to my site. I didn't think my not knowing PHP was going to be a problem since I'm just trying to plug it in. Obviously I was wrong.

I've tried inserting the page, pasting the code in code view and the include page function. I've also turned off the sharepoint and asp functions.

Does anyone know of anything else I can try? Any help is GREATLY appreciated.

Thanks!

Corey Bryant

5:21 pm on Sep 19, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What is happening when you try to view the PHP on the website? Does your hosting company support PHP?

-Corey

bill

2:39 am on Sep 20, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Wouldn't you need to have PHP installed locally to test those pages on the development machine?

slbuff

3:37 am on Sep 20, 2005 (gmt 0)



My hosting company does support the php. When I upload them as a stand alone page they display fine, the problem is I'm trying to insert it in my template. If I save the page as a php page it displays the actual php code. If I just save it as .htm it's blank.

Is it possible to even add it to a table?

jk3210

3:52 am on Sep 20, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Tools => Options => Configuration Editors

Under "Extensions" select "php, php2, php3, php4" and set their "Editor" to "FrontPage Open as Html (Default)"

bill

3:53 am on Sep 20, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



You need to have PHP installed if you want to render PHP locally on your home/work PC. Otherwise you'd have to load the pages to your host to see the PHP in action. Unless your host is configured to parse .htm pages as PHP then I'd suggest you name those pages with a .php extension.