weird characters before <?php in Frontpage

J

jatc

Hi, I have a weird problem with Frontpage. (I've tried to Google for
solutions, but could not find the right keywords to express the
problem, therefore my question to this newsgroup).

When I make a (new) php file in Frontpage 2007 that starts with the
php-tag: <?php; the frontpage editor is entering a few (3) non
readable characters in front of the php-tag. Result: a
'header("location: ...)' statement in the php-file not functioning
because the characters already sent to the browser.
The only work around I've found is exporting the php-file, read it
into a binary editor, trim the characters before the php-tag, save it
and import it into frontpage. A little inconvenient :))
A solution would be appreciated!
JAtC
 
T

Thomas A. Rowe

Set FP to open the PHP files with Notepad (text editor).

FP is not designed to work directly with PHP scripts when <? is used, however you and your web host
can configure PHP to use ASP style <% which would solve your problem.

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================
 

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