Code: Select all
<?php
200 lines of php
.
.
.
?>
500 lines of javascript
200 lines of HTML
<?php
while(true)
{
?>
200 more lines of HTML inside the php loop
.
.
<?php
if(true)
{
?>
more HTML code inside php if
.
.
.
<?
// close for if
}
?>
yet more HTML
<?php
// closing bracket for while loop
}
?>
As you can see this is becoming a nightmare to manage.
Tell me. Is there a dissadvantage to writting these pages in PURE php?
Then when I need to print out HTML or Javascript, simply use print() statements or echo's?
I know that maybe it puts a little more calculation time into the server but the code is so complicated it is hard to maintain it.
Also most IDE's that I have used cannot parse PHP, javascript, and HTML all on the same file. So now I cannot use code formatters and such. And I don't get color coding.
So is it bad to write pages in pure PHP???
thanks