PHP code corrupts

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I work on a couple of php sites that use PHP to pull the page title and meta
info from a database (all pages are .php). Sometimes when I open a site live
from the server in frontpage 2003 the php code gets corrupted with letters
instead of symols example - <? will turn into alt;? and " will turn into ";
this seems to happen off and on with the same sites that are hosted on
different servers. I checked tools>options>configure editors and it's set for
open as text should this be set to something else? If not what could be
causing this and how do I fix it.
 
I've done a bunch of PHP work with FrontPage and haven't had it happen to
me.
I rarely do it live on the server.

one thing you could do is use <script language="php">and </script> instead
of <? and ?>.

--
Chris Leeds,
Microsoft MVP-FrontPage

ContentSeed: great tool for web masters,
a fantastic convenience for site owners.
http://contentseed.com/
 
Chris thank you for your suggestion, I'm not as experienced with php as you
are can the script language be placed within the title tag and meta info tags?
 
Back
Top