Forum Moderators: coopster
-How can I view a .php file in a WYSIWYG program (to update and improve HTML design), without needing to install PHP on my system?
Is this next question real difficult (for an "outsourced" coder with experience)?
-I want to "convert" a fairly simple 5 page site/ PHP script (all the pages are .PHP), into HTML templates with PHP "bits of code". This needs to be done without ruining a script that works well interacting with a database.
Any help would be great.
Thanks. :)
-How can I view a .php file in a WYSIWYG program (to update and improve HTML design), without needing to install PHP on my system?
It depends on how you write your PHP. If it is in the form:
<html>
<head>...</head>
<body>
Hello <?=$name;?>, it's <?=date("r")?>
</body>
</html>
Then dreamweaver can open it without much problem (may need to add a file extension of .php for html.
If, however, it's written:
<?php
print
"<html>
<head>...</head>
<body>
Hello $name, it's ".date("r")."
</body>
</html>";
It's a lot more difficult, i.e. give up trying.
I find the most efficient method is to use a template system - either homegrown, or one like Smarty, which will allow you to edit the HTML in isolation from the PHP.