Web Hosting Talk







View Full Version : PHP to HTML and back to PHP


Equilibrium
02-06-2002, 05:51 PM
Hello,

What I wanted to know is if I could take a PHP script, change its extension to HTML, edit it in frontpage and then change it back to PHP and will it still function as a PHP script properly?

Thanks


:)

Lats
02-06-2002, 06:02 PM
You'd be better off just using notepad, as FP will tend to mess around with the php code.

There are a couple of free php editors out there ie phpedit.


Lats...

ckpeter
02-06-2002, 07:36 PM
Originally posted by bahres
Hello,

What I wanted to know is if I could take a PHP script, change its extension to HTML, edit it in frontpage and then change it back to PHP and will it still function as a PHP script properly?

Thanks


:)

As long as you take care not to delete any php code block in frontpage, it should still function properly.

Peter

priyadi
02-07-2002, 04:22 PM
If you want to use PHP in Frontpage use <script language="php">...</script>. Frontpage tends not to mess inside the script block.