public marks

PUBLIC MARKS from calipussoftware with tags technology & php

24 February 2015 07:30

How to Use jQuery’s $.ajax() Function

(via)
In our previous blog(What is AJAX and How it works ?), we discussed about AJAX and how to implement the same using jQuery. We did try to learn the same with the help of an basic example. In this tutorial, we are going to take it from there and will try to understand about the various available parameter in ajax function. Though we can’t cover all as it is a long list which you can read here but we shall cover the important parameters. But before that, let’s take another example.

What is AJAX and How it works ?

(via)
There will be hardly any web application in ear of web 2.0, which does not employ AJAX. Actually, you can’t imagine an interactive application without AJAX. AJAX is an integral part of web development stack. In this tutorial, we shall explain about AJAX and how can we implement AJAX. Let’s start with what wikipedia says about AJAX. 1. A method for exchanging data asynchronously between browser and server, thereby avoiding page reloads. The XMLHttpRequest (XHR) object is usually used, but sometimes an IFrame object or a dynamically added tag is used instead. 2. A format for the data sent to the browser. Common formats include XML, pre-formatted HTML, plain text, and JavaScript Object Notation (JSON). This data could be created dynamically by some form of server-side scripting.

20 February 2015 13:45

What is spl_autoload_register, spl_autoload and autoload

(via)
PHP does have some awesome function which can be very handy. SPL register function is one of them, we are going to talk about. As PHP manual says spl_autoload_register — Register given function as __autoload() implementation So what exactly it means ? Let’s try to understand with the help of an example. function Autoloader($className) { require_once $path.$className.'.php'; } spl_autoload_register('Autoloader'); $myObj = new MyClass(); Here we have just instantiated a class named as “MyClass” with out specifying include or require statements.

16 February 2015 05:15

How to Install FFmpeg in Ubuntu/Mint 17 (Part -1) - Latest Technology

(via)
FFmpeg is a free software project that can record, convert and stream audio and video. It is a very fast video and audio converter. The syntax of FFmpeg’ command is ffmpeg [global_options] {[input_file_options] -i input_file} ... {[output_file_options] output_file} ... You can install FFmpeg in two ways : 1. Install From Repository 2. Download Source Code and compile it. Let’s first discuss about installing from Ubuntu Repository.