logo
Jun
29
Marijan Šuflaj

jQuery AJAX tutorial

This tutorial cover some of basics about jQuery and AJAX. We will build AJAX form submit where we will have 1 field. If we lave it blank and submit our form, we will get error message. If we fill it with some data we will get that text. We will also add some loader image.

Read the rest

Jun
24
Marijan Šuflaj

PHP Antispam

Today web programmers have big problems with spam comments. There are a lot of tutorials about captchas and how to implement them, so I will not cover it here (I can do it f next tutorial if you wish). Anyway, I will show you some other methods that are good. Note that none of them is not 100% secure.

Read the rest

Jun
5
Marijan Šuflaj

PHP Disk Space Explorer Class

In this tutorial I’ll show you how to create a script that will create graphs. Those graphs will contain information about your files, their extensions and their size. We will use Google and their API for creating graphs. So lets start.

Read the rest

Jun
1
Marijan Šuflaj

Where to post tutorials

When writing tutorials you want that they are seen by a lot of people. For that i use 7 internet pages where i publish links to them. Process is simple. Write few information, provide post url, press submit button and your tutorial is in their database. I’ll write something about for 3 of them because they have a lot of visitors.

Read the rest

May
8
Marijan Šuflaj

Search class

I’ve made a class that will search files for a given word/words. All you have to do is set parent folder, query and you’ll get results.
Script uses objects and I plan to make it better and more features. For now it’s very simple.

Read the rest

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

Previous Entries Next Entries

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