logo
Apr
26
Marijan Šuflaj

Adjustable visit counter

Here’s a simple tutorial on how to create a simple and adjustable visits counter. Our counter will use MySQL database to store information about visitors. If someone wants I can make a small tutorial on how to rebuild it to use XML instead of MySQL database.

Read the rest

Apr
19
Marijan Šuflaj

Multi-query function

I needed a function that will take a string or a file and then split it into small SQL queries. I found few functions on Internet but they did not work as i expected. They all had following principle of work:

  1. Take a string
  2. Use function explode and “;” as a delimiter to create an array
  3. Execute each row in array

Read the rest

Apr
13
Marijan Šuflaj

5 useful functions

I would like to share with you a couple of functions that use a lot and I consider them quite useful.

Read the rest

Apr
10
Marijan Šuflaj

Compare the right way

When I was programming today I got into a small problem, which I quickly solved, but it gave me a very good idea for a tutorial. Namely, what happened to me? I worked on an easy loop through array with use of functions current and next. I created custom array with custom values, and when I started the code, I did not get what I’ve expected.

Read the rest

Apr
7
Marijan Šuflaj

Exceptions in PHP

PHP supports two ways of reporting the problem in the code. Errors and exceptions . What’s the difference then?

First at all, exceptions are object-oriented way of processing errors, while error are procedural (using functions) way of reporting the problem. Which of them is better to use? Definitely exceptions, as they offer much more control over the code. PHP has a standard class Exception, which can be extended.

Read the rest

Apr
6
Marijan Šuflaj

Hi to you all

Hi, this is my first post here. I’ll introduce myself to you. So, my name is Marijan and I come from Croatia. I’m 18 years old and I program in PHP. Since I got a lot of help from sites that have PHP, MySQL and other web programing language tutorials, I decided to make one by my self.

Read the rest

logo
Powered by Wordpress | Designed by Elegant Themes | CopyRight ©2010 php4every1.com