PHP

PHP Basics : Removing White Space / HTML Tags From A String

Hey Wuup readers. I’ve got a simple post here for those learning PHP, or even the more seasoned programmer. If you’re looking for a simple way to to remove white space from strings, and strip html tags from strings too, try this out. It can be handy if you don’t want people to abuse a form or field in an application: <?php $example = " test  ff       1  <br > </p> hi...

read more

PHP String Functions

I’ve been doing an awful lot of string manipulation while creating the Spyda content management system (working title theKore) so I thought I would make todays article about the PHP functions I use most regularly for cleaning up and manipulating content entry. strip_tags First up and I would say the most important for content entry that you are not responsible for. Not using this function...

read more

PHP Basics : Removing White Space / HTML Tags from a String

Hey Wuup readers. I’ve got a simple post here for those learning PHP, or even the more seasoned programmer. If you’re looking for a simple way to to remove white space from strings, and strip html tags from strings too, try this out. It can be handy if you don’t want people to abuse a form or field in an application: <?php $example = " test  ff       1  <br >...

read more

The long overdue CRON job

So, CRON jobs. I’ve always known about them, in fact I used to use variations of them in my first job. They’re scheduled tasks set to fire at a particular time or date, or with a particular frequency. We used these left, right and centre to fix anything that we knew would creep out of synch with everything else. From updating internal mail systems, linking to online software and importing...

read more

PHP Basics: Exceptions: Throw and Catch Tutorial

Hi there, Today we are talking about PHP excetions, very handy stuff you know, and available from PHP5 and onwards (current at time of this article), the throw and catch is similar to other programming languages which also use ‘Try’ and ‘Catch’ exceptions. The point of these exceptions, is that PHP can be ‘thrown’ something, and errors can be caught by the...

read more

PHP Basics: Boolean Logic Tutorial

Hi there PHP fans! (lol I sound like an American sports commentator). Ok we’re going to take a look at PHP Boolean logic, it’s a tutorial, so we’ll take you through it simply and give you some examples. Easy peasy! – It won’t take long. PHP Boolean Type Booleans are the simplest php ‘type’. A boolean expresses a ‘truth’ value. It can only be...

read more

PHP Basics: Replace Characters & Google Maps

Hi All, Generic article greeting input here! Replace Characters with this Easy PHP Script I recently decided that with some enquiry forms that I wanted to send out a link to Google maps so that the person who recieves the enquiry can locate them on the map easily. I didn’t want the hassle of setting up a SOAP service or anything like that, so this just manipulates a URL query. One thing I...

read more

PHP Basics: IP Banning Script

At some point or another you’re going to want to know how to do this. You’re in luck, as it’s pretty easy to do. Reasons to ban an IP You may have visitor logging and you notice some unusual behaviour, for safety, it’s a good idea to ban this individual, and you can even give them a message if you wish in your ban, that way they can explain themselves, or bugger off. You...

read more

What your site searches can tell you

How do you know if your SEO efforts are really working? Are people finding what they’re looking for on your website? Here is the system I use on my sites to keep track of what people expect to find. From the outside … If you don’t have access to server logs, or even if you do, go to http://www.bbclone.de and get bbclone, the php-based web counter on steroids. It provides only...

read more

Submit a Game to Be Reviewed

Hi there, Christmas time comes around once per year, personally I’d rather it was like a leap year, once very four, but I don’t write the rules… anyway… If there’s a particularly good game or any particularly bad game, any genre, any platform, let us know in the comments below, and we’ll go out, buy it and review it. To be honest I’m a violent person. So...

read more