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
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
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
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
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
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:
I would like to share with you a couple of functions that use a lot and I consider them quite useful.
Read the rest
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
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