Skip to main content
Participant
December 18, 2010
Question

Two Lines added at the end of every .php file!

  • December 18, 2010
  • 1 reply
  • 283 views

So, I've been using dreamweaver as a CMS applications; however, I've just run into a major problem where tons of my .php files have had two lines appended to the end, which in php is a code breaker.  Anyway to stop this, or at the least delete all these new lines!

This topic has been closed for replies.

1 reply

David_Powers
Inspiring
December 18, 2010

Thread has been moved to the Dreamweaver Application Development forum, which deals with PHP and other server-side issues.

I have been using Dreamweaver for PHP development for many years. Extra lines are never added to the end of pages unless you put them there yourself or something else in your setup is adding them.

If you are concerned about extra lines at the end of PHP scripts, omit the closing ?> tag. This is not only recommended practice, it's mandatory in the Zend Framework Coding Standard for PHP. See http://framework.zend.com/manual/en/coding-standard.php-file-formatting.html.