weird characters before <?php in Frontpage

  • Thread starter Thread starter jatc
  • Start date Start date
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
 
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
==============================================
 
Back
Top