Archive | Languages RSS feed for this section

CLI has stopped working

“CLI has stopped working” is an error that you may encounter when running command-line PHP scripts in Windows.  This has been reported frequently by CakePHP users when their “bake” scripts crash.  My particular experience with this issue occurred while running PHPUnit tests from the command line. The top search result as well as others indicates [...]

7 Comments Continue Reading →

PHP on Windows 2003 IIS 6 Displays 404 Page Not Found

After Installing PHP 5 using the Windows installer on Windows 2003 you may find that IIS displays a “Page Not Found” 404 error for every .php page. This is a perplexing error because is it not actually a real 404 error. The file is really there, but IIS is unable to process it based on [...]

19 Comments Continue Reading →

Send an Email via SMTP with C#

For whatever reason the web is filled with outdated examples of sending email with C#. This an example using .NET 2.0 First, be sure to import the Mail libs at the top of your class: using System.Net.Mail; Then in your code where the email will be sent: MailMessage msg = new MailMessage(); msg.From = new [...]

4 Comments Continue Reading →

Introducing Phreeze PHP Framework

We are proud to announce the release of Phreeze Framework for PHP.  Phreeze is an open source framework that allows PHP developers to generate a working web application in just a few clicks.  The generated application includes ExtJS DataGrids with AJAX pagination and sorting and server-side validation implemented, and a forms with server-side input validation. [...]

Leave a comment Continue Reading →

NHibernate.MappingException: Unknown entity class

The dreaded “NHibernate.MappingException: Unknown entity class” exception thrown by NHibernate in your .NET web application indicates that the class you are trying to map in your .hbm.xml file cannot be located for some reason. The first thing to check is to right-click on each of your .hbm.xml files and make sure the Build Action property [...]

62 Comments Continue Reading →