PHP, HTML, CSS, JQUERY, MYSQL Tutorials

999Tutorials.com – Your Tutorial Spot

Entries Tagged ‘PHP’

Get first key, last key, first value and last value in Array

Associative arrays are great, and they work perfectly when working with foreach. But what do you do if you just want the first key in the array or the last value?

PHP String functions: implode

A couple of years ago we published a short article with some tips on good string functions. Didn’t think it would be that appreciated, but lots of people has emailed us and thanked us for the examples and ideas on how to use the functions. So here we go again, a new function to explain: [...]

Our Experience Changing to Wordpress

For a long time this site has been running on a custom written script. It has worked well, but one month ago we decided to migrate to wordpress. Here is our experience and tips for others thinking of making the change.

Optimize MySQL tables simple

Just like you need to defrag and check your file system, it’s important to do the same thing with MySQL tables. If you don’t, you might end up with slow and corrupted database tables. Follow this easy tutorial to set up an automatic optimization for your db.
Speed in MySQL is all about how fast the [...]

Sub queries

Mysql now offers sub queries/sub selects. They can help you write faster and shorter code. You don’t need to do that much programming in PHP, just let mysql do the work
A new thing in MySql 5 is the possibility to use something called “sql subqueries”. It can be a very powerful new tool [...]

Schedule scripts to run

Schedule your daily work like checking logfiles, cleaning up old data in your web systems. Let automated scripts take care of this, learn how to use “Cronjob” for this.
We developed a site where the visitors can sell their used stuff. The add process is made up by three steps, and for some reason some people [...]

Print from javascript

You can’t actually print a document from javascript, but you can open the print dialog to the user.
Did you know that it’s possible to popup the print dialog window to your users?

How to change web host

There are lots of things to think of before you change web hosts. I give you a list of things you should not forget and also give you tips on how to handle the server change without problems.
Are you thinking of changing web host?
First, think about it once again!
Second, read my tips so you don’t [...]

Protect web directories

Sometimes you need to put important but secret data on a web site. Then it’s important to protect it from other persons! Let’s say your web stats, your admin section or just your private photo album

Classes and objects in PHP

There are many ways to create programming code. One of the easiest but most powerful is to start using object oriented way to think and work. I will give you the basic how you create a class, and why.