There is an incredible but little known built-in function with PHP that replaces all new line characters within a string with html <br /> tags. Its perfect if you ever want to display the contents of a text area within HTML.
$str = nl2br($str);
This will replace all new line characters with valid XHTML <br /> tags.
There is also an optional parameter to turn of XHTML and just use traditional <br> tags.
$str = nl2br($str, false)
For the first time in over 10 years, my RMTWeb site was down for four days as I struggled to figure out what had completely broken my wordpress installation. A blank white screen was all that greeted any visitor to the site. Scouring through the server logs revealed the culprit – Google Analytics! There seems to be a conflict between it and one of the ReWrite rules created by the WPSecurity Plugin. So it seems I had a choice to make – keep Google Analytics or keep WP Security…..
I first tried removing WP Security, but it places re-write rules in .htaccess files throughout the wordpress installation, so this didn’t solve the issue. Removing the Google Analytics plugin by deleting the whole folder out of FTP did the trick, and the site was back up and running in no time!
Since starting my own business back in 2006, its something that I get asked every few months by someone:
It’s always a tricky question to answer because there are so many different types of business. I also get asked what’s the best bit about running your own business, and having been an employee and now an employer, that I can answer more clearly.
One thing that it is important to stress is that running your own business involves so many decisions every day that if you are an on-the-fence sort of person, this is going to be difficult!
You will make plenty of decisions that in hindsight were not the best decisions, and the most important thing is that you learn from the not so great decisions so as to not repeat the mistakes.
So, if you have decided that you should start a business, the next question is whether you should go self-employed or start a limited company. I think that there is an easy way to decide this.
Do you have expensive personal assets like a car, house (with a mortgage) etc. that you don’t want to risk loosing?
If your answer to this is yes, then you should consider setting up a limited company. For some of my companies I have used https://www.rapidformations.co.uk – they have an online form that you use to add all your details and it costs about £15 and takes a couple of hours. Once you have set up a limited company it costs about £15 per year (that you pay to Companies House) to keep it registered.
If your answer is no, then you are probably better being a sole-trader. This makes your accounts much simpler, and you have less “with my company owner hat on” juggling to do. You ARE the company. One very important thing is that you have a completely separate business bank account for your business transactions. Don’t just use your current account, as at the end of the financial year this will make your life exceptionally complex.
The biggest obstacle you face in running a successful business is the ridiculously over-complex processes and hoops that the government makes you jump through. There are deadline dates, and if you miss them, the fines can sink a small business very quickly.
Keep a digital calendar, with reminders and always add the important dates in to it:
You can complete your annual accounts really easily, using an excel spreadsheet. The best way is to use Companies House. http:/www.companieshouse.gov.uk – you have to keep your limited company details up to date once per year on there anyway.
Find a company like Venture Mosaic that helps business getting started with their branding, materials and web presence as well as .
I was just asked by a local school how to make a post always appear on the home page – the answer is surprisingly simple, but if you don’t know where to look its rather difficult to find!
On the publish box to the right of the wordpress post in the editor, click on the Edit link next to Visibility: Public and then tick the Stick this post to the front page box.
Done! The post now stays at the top of the front/home page. All you have to remember to do is to un-stick it in the future!