When creating a post using TinyMCE, the output contains the HTML doctype along with other HTML tags that I do not want. I only want the output to contain the content of the post that will be stored in the database and used on other…
XML Serialization in C# works fairly well and is relatively easy, but XML itself makes life hard at times. JSON is always the best route to go, but when you have no option, you must deal with some badly formatted XML objects that do not…
I was recently setting up PHP 5.6 on IIS 8.5 and hit an error. C:Program Files (x86)\PHP\v5.6\php-cgi.exe - The FastCGI process exited unexpectedly I had been following a guide and this one didn't make much sense. After trying to endlessly debug this I found out…
When it comes to handling datetime on SQL server it can get quite error prone when you are dealing with different regions and end up getting an out or range date exception if you are trying to add a date that is in EU date…
There are a few ways to make a http request in PHP. The most robust way to do it is with curl and based on how complex the query is, maybe your only option. If you are just making a basic enough request, the amazingly…
When pulling comments from a database table, it can be very costly when you are performing a query that will automatically sort all of the comments into the parent-child hierarchy. Every extra ms your SQL server spends performing calculations is time that is wasted. If…
Sometimes you get hit with a load capacity issue that you may have not expected. For example, you have created a site with multiple scripts and these scripts are now being accessed so much that the one server isn't able to cope with all of…
Often it can be quite hard to debug SQL errors when using PHP since PHP will often throw a generic error that doesn't really help you diagnose the situation. Other times you may not want to allow PHP errors to be shown. A quick way…
When using SVN via command line you can view the details of previous revisions by viewing the SVN log. Call the log along with the number of revisions you want to have returned to you will display the message left when the file was committed, number of lines…