Showing posts from May, 2015

Remove extra linebreaks in Dreamweaver

While the document is open in Dreamweaver, press CTRL+F to load the Find & Replace dialog box. Do the search on the source code view.Check the box “Use regular expression” and uncheck any other boxes.Find: [\r\n]{2,}Replace: \nThen hit “replace all” That’s it!

Get the absolute path usign php

In your file like index.php write
echo dirname(__FILE__);