Computing.Net > Forums > Web Development > FrontPage and PHP Files

FrontPage and PHP Files

Reply to Message Icon

Original Message
Name: smbotans
Date: September 22, 2006 at 20:34:10 Pacific
Subject: FrontPage and PHP Files
OS: Windows XP Home
CPU/Ram: AMD XP 2000 and 512 Megs
Comment:

hi all,

i have a customer who is running FrontPage 2003.

I did some SEO work for him in the process of which i changed some html files to php.

He says that now he can't open the php files in design view in FrontPage. But he can in code view.

I don't run FrontPage so i cannot troubleshoot the problem.

Anyone have any idea how my customer can view the php files in design view? Or any idea what the problem is?

Thanks in advance,

Serge

SEO Resources

Target the right Keywords

FREE SEO Report


Report Offensive Message For Removal


Response Number 1
Name: Michael J (by mjdamato)
Date: September 23, 2006 at 07:31:02 Pacific
Subject: FrontPage and PHP Files
Reply: (edit)

Not a FrontPage user myself, but the problem seems pretty evident. The Design View of FrontPage is a WYSIWYG editor. In other words, it interprets the code and renders it how it will look to the end user. Apparently FrontPage does not support PHP so it has no way to descipher the code for display.

The only workaround that I can think of which *might* work would be to include the php code within script tags or comment tags:

<script>
<?php
... php code
?>
</script>

Actually I think the comment approach would be the best.

Michael J


Report Offensive Follow Up For Removal

Response Number 2
Name: Michael J (by mjdamato)
Date: September 23, 2006 at 07:32:31 Pacific
Subject: FrontPage and PHP Files
Reply: (edit)

Whoops, forgot to format the comment code appropriately for the forum:

Michael J


Report Offensive Follow Up For Removal

Response Number 3
Name: smbotans
Date: September 23, 2006 at 19:33:15 Pacific
Subject: FrontPage and PHP Files
Reply: (edit)

hey michael,

interesting comment about FP not coping with PHP code ... i use Namo Webeditor and i have no problems with PHP even though it can't process it ... it still allows me to work with the pages in design mode

i will try your suggestions

thanks for that

serge

SEO Resource

FREE Keyword Report from Meta Keywords Advice


Report Offensive Follow Up For Removal

Response Number 4
Name: smbotans
Date: September 24, 2006 at 20:28:34 Pacific
Subject: FrontPage and PHP Files
Reply: (edit)

michael,

your suggestions did not work in the sense that if i did either one, then the php script would not run ... just letting you know

i did find an answer by googling the problem ... it was a case of letting FP know what to do with the php files

here is the info i got, in case others have the same problem:

- On the Tools menu, click Options, and then click the Configure Editors tab.
- In the Extensions list, locate and select the file extension that you want to use.
- In the Editors list, select FrontPage (Open as HTML).
- Click Make Default.
If the extension that you want does not appear, you must add it.

thanks for your help

serge

SEO Resource

FREE Keyword Report from Meta Keywords Advice


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: FrontPage and PHP Files

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software