Posts tagged with ‘programming’

How to hide .svn folders in Eclipse or Aptana

advertisement

By default, eclipse and Aptana, didn’t hide .svn folders in the project listing. Follow the steps below to hide the .svn folder in Eclipse and Aptana:-

Continue reading How to hide .svn folders in Eclipse or Aptana »

Symfony: How to escape hash # character in yaml

advertisement

Just a quick note for myself to escape # character in yaml – Symfony. When i’m trying to load batch data, some of the record seems not imported successfully especially with hash # character. By default, all the string behind the hash # character is treated as comment.

Here’s the example to escape hash # character:-

Continue reading Symfony: How to escape hash # character in yaml »

PHP Programming: The difference between require() and include()

advertisement

php, programming, php programming, open source, php function
Many friends ask me what’s the difference between require() and include(). Here is the explaination from PHP manual.

From PHP manual:-

require() and include() are identical in every way except how they handle failure. include() produces a Warning while require() results in a Fatal Error. In other words, don’t hesitate to use require() if you want a missing file to halt processing of the page. include() does not behave this way, the script will continue regardless. Be sure to have an appropriate include_path setting as well.

Continue reading PHP Programming: The difference between require() and include() »