Apache Stopped Working After PHP Upgrade – How to Fix

If you are often working with PHP upgrades, you should do this automatically – you already know all the issues you might face. But if it’s done for the first time, it is quite hard to find your problem. I will tell you about the most common issue and about the applicable actions to fix this. When you… Read More »

How to Modify Default Virtualhost Template in Directadmin

If you own a Direactadmin server, most probably you would like to add something to default virtualhost settings, when a new user is created. You might need any specific php settings, or anything related to Apache – this doesn’t really matter. Let’s see where we can modify these settings; you will need SSH access to your server as… Read More »

Function to Extract The Value From a String With PHP

If you’re working with text information, you often need to extract some parts of text from articles, web pages and so on. You can use regular expressions for this, but if you’re not familiar with them, you’ve got to use string functions of PHP. When I didn’t know what regular expressions are, I’ve written a function that extracts… Read More »

How to Create All Possible Word Combinations from a String With PHP

Sometimes you need to change the word order in a line for some reason. I am going to show you a PHP solution that allows you to create all possible word combinations from a string. The code below should explain you all operations that are performed. <? // Factorial function fact($s){ if ($s==0) return 1; else return $fact… Read More »