Skip navigation.

FLY TO THE ZENITH OF SUCCESS

Arun Raj.R (Software Engineer)

What is PHP and its advantages and disadvantages..

,

Hypertext Preprocessor :: PHP some time I used to call Personal Home Page

PHP is an open source server side scripting language that mainly used for developing web applications and web services.

The PHP is very simple for a beginner, but offers many advanced features for a professional script writer.

Three main areas where PHP scripts are used :

1. Server-side scripting
2. Command line scripting
3. Writing desktop applications

Advantages :

1. Open source
2. Simple and very easy to learn.
3. Support for both structural programming and Object Oriented Programming. Use of variable variables $$var.
4. PHP can be used on all major operating systems, including Linux, many Unix variants (including HP-UX, Solaris and OpenBSD), Microsoft Windows, Mac OS X, RISC OS, and probably others. PHP has also support for most of the web servers today. This includes Apache, Microsoft Internet Information Server, Personal Web Server, Netscape and iPlanet servers, Oreilly Website Pro server, Caudium, Xitami, OmniHTTPd, and many others. For the majority of the servers PHP has a module, for the others supporting the CGI standard, PHP can work as a CGI processor.
5. One of the most Sexiest feature of PHP is that it can plugin with most of the databases. It support with Adabas D, dBase, Empress, FilePro (read-only), Hyperwave, IBM DB2, Informix, Ingres, InterBase, rontBase, mSQL, Direct MS-SQL, MySQL, ODBC, Oracle (OCI7 and OCI8), Ovrimos, PostgreSQL, SQLite, Solid Sybase, Velocis and Unix dbm
6. Power ful built in functions. click here to see all php functions
7. PHP also has support services using protocols such as LDAP, IMAP, SNMP, NNTP, POP3, HTTP, COM (on Windows)
8. PHP has extremely useful text processing features, from the POSIX Extended or Perl regular expressions to parsing XML documents. For parsing and accessing XML documents, PHP 5 standardizes all the XML extensions on the solid base of libxml2 and extends the feature set adding SimpleXML and XMLReader support.
9. Easy deployment and cost effective hosting.

Disadvantages :

1. Security flaws due to unknown vulnerabilities .
2. Not good to create desktop Applications

http://www.techaspirant.com/what-is-php-and-its-advantages-and-disadvantages/http://www.techaspirant.com/what-is-php-and-its-advantages-and-disadvantages/

Comparison between various programming languages

, , , ...

Today onwards I am willing to write series of articles about various programming languages. As a programmer we should compare all the programming languages, study its advantage and disadvantages . By these we can consult a correct platform for our clients and we can plug in this in appropriate situation. So advantages and disadvantages over the programming languages again converted for an advantages for the client.

First upon we discuss about programming languages.

A program is list of instructions that perform a particular task or algorithms. A programming language is a machine understandable artificial language that used to write the programs. All programming languages have its own syntax and semantics.

Programming must follow some methodology in programming .

During the year 70s and 80s, the primary software engineering methodology was structured programming. The structured programming approach to program design was based on the following methods:

* To solve a large problem, break down the problem into several pieces and work on each piece separately;
* to solve each piece, treat it as a new problem that can itself be broken down into smaller problems;
* repeat the process with each new piece until each can be solved directly, without further decomposition.

This approach is also called top-down program design.

The Language “C” is considered as a top Structural programming language.

The next was OOP (Object Oriented Programming):

This methodology is organized around “objects” rather than “actions” and data rather than logic. Objects is an identifiable entity with some characteristics and behavior. Object Oriented programming paradigm support the following idioms like information hiding, data abstraction, encapsulation, modularity, polymorphism, and inheritance.

The First OOP languages is “C++”. Then it enhanced by JAVA.

Aspect-oriented programming (AOP) is another programming paradigm that enhance modularity by allowing the separation of cross-cutting concerns, forming a basis for aspect-oriented software development.

These are the main programming paradigms. There is a lot of other paradigms . We will elaborate our knowledge by contributing your suggestions and information about it.

My new blog born

, ,

I was blogging for past 1.5 year with blog arunrajr.com and this operablog. But Nowadays my friends suggested to change my blog name and i was looking for good name for my technical blog . Finally i found the domain name Techaspirant.com is available on the net. Then i spoke this with iamatechie.com my friend and my Guru. He taught me asterisk and symfony frame work.

Finally now bloggig at http://techaspirant.com. What about this name ? please comment on this

thanks http://www.techaspirant.com

PHP:: How to split a large array in small pieces :: or split array into chunks

Hello All,
Yesterday i was searching for a solution to split large array into small pieces. Suddenly i noticed the that php have a built in function to split array into small pieces. It was very surprise to me ..
Here it is
Function : array array_chunk ( array $input , int $size [, bool $preserve_keys= false ] )

< ?php
$input_array = array('a', 'b', 'c', 'd', 'e');
print_r(array_chunk($input_array, 2));
print_r(array_chunk($input_array, 2, true));
?>

The output will be like this : -

Array
(
[0] => Array
(
[0] => a
[1] => b
)

[1] => Array
(
[0] => c
[1] => d
)

[2] => Array
(
[0] => e
)

)
Array
(
[0] => Array
(
[0] => a
[1] => b
)

[1] => Array
(
[2] => c
[3] => d
)

[2] => Array
(
[4] => e
)

)

Have fun Cheers

PHP:: How to split a large array in small pieces :: or split array into chunks

Hello All,
Yesterday i was searching for a solution to split large array into small pieces. Suddenly i noticed the that php have a built in function to split array into small pieces. It was very surprise to me ..
Here it is
Function : array array_chunk ( array $input , int $size [, bool $preserve_keys= false ] )

< ?php
$input_array = array('a', 'b', 'c', 'd', 'e');
print_r(array_chunk($input_array, 2));
print_r(array_chunk($input_array, 2, true));
?>

The output will be like this : -

Array
(
[0] => Array
(
[0] => a
[1] => b
)

[1] => Array
(
[0] => c
[1] => d
)

[2] => Array
(
[0] => e
)

)
Array
(
[0] => Array
(
[0] => a
[1] => b
)

[1] => Array
(
[2] => c
[3] => d
)

[2] => Array
(
[4] => e
)

)

Have fun Cheers

PHP code to find Duration of an Audio File

Here is the PHP function to calculated duration of “wav” or “GSM” files

First we open file using fopen. After we calculate the size of that file (inbytes) using filesize().

Then we unpack the audio File .

unpack(’vtype/vchannels/Vsamplerate/Vbytespersec/valignment/vbits’,$rawheader);

This will return following array

Array (
[type] => 1
[channels] => 2
[samplerate] => 44100
[bytespersec] => 176400
[alignment] => 4 [bits] => 16 )

from this array we get bytepersec.

Now it is very easy to find out the duration.. !!

$size_in_bytes/bytespersec.

Code is here.

public static function getDuration($file) {

$fp = fopen($file, ‘r’);
$size_in_bytes = filesize($file);
fseek($fp, 20);
$rawheader = fread($fp, 16);
$header = unpack(’vtype/vchannels/Vsamplerate/Vbytespersec/valignment/vbits’,
$rawheader);
$sec = ceil($size_in_bytes/$header['bytespersec']);
return $sec;

}

Have fun.

How to configure your system as webserver ? or Port forwarding

, , ,

Hello Guys,

It is very simple to make your own webserver.

Requirements.

1. Static IP address

2. Any webserver software (IIS, Apache,Tomcat any webserver )

3. Domain name with Managed DNS Service ( if you wish to have one domain name other wise you can use your ip address )

Simple Procedure.

1. Install you webserver on your machine.

2. Configure your modem.

1. Type 192.168.1.1

2. Provide default username and password (admin/admin)

3. Goto advanced Settings as shown in the figure



4. Add NAT virtual servers.

5. Save and reboot your system.

3. Now your server is ready . You can browse your computer by simply typing your IP Address in the address bar.

4. Add domain name

1. forward www/ @ to your IP address .

5. Now your webserver ready..

have fun

cheers.

I can’t believe that I completed 1 year in Ventures Unlimited

, , , ...

Today is a special day for me, Because i have completed 1 year in ventures unlimited solutions. Last one year i gone through number of incidents and various experiments. My achievements in the last one year is very much important to me.
in first of last year i studied symfony frame work, I love this framework as well , because we don’t want to write complete code for the project, Lazy folks never
like coding from the scratch. So really i love it, it is fully on MVC architecture. MVC was also familiar to me though J2EE and Struts,
After that i have developed some platform for mobile VAS like bulk sms , shortcode , mobile to bulk sms customized applications, SMPP Protocols. REST Services,
In betweenthis i studied network and wireless configurations :smile:

I have been participated in the project cycle for an online examination software. It was my big project. A lot of modules in it. frankly speaking i have been
touch with each and every modules in it. faced a lot of problems .. with ajax (asynchronous calls, security issues and more ). Actually it given good exposure to me .

Next was on telephony domain . That is vUvOice. It was a great exposure to me . Because no one get such a situation to study this. Actually we decided to work on this domain because of freshness of this domain.
Our company policy is to take risk on various domain and achieve the goal by making solutions for the realtime situation. I think our company is the first one working on this domain in India.
I’m telling about asterisk… !!! The open PBX software used for soft switching, IVR solutio.

Before here i worked in LogicManse Solution And Technologies . From there i studied J2EE struts etc

Probelm with sending email via smtp to google app

,

I am facing some problem with sending email to google app via smtp. The problem is that when i try to send email to say yourname@yourdomain.com hosted in google app. Then mail not delivering to that particular emailid. But all others in the same domain will get the email. i Don’t know what is the hell with this .

Tragedy With Lenovo Laptop

This a true story of mine. I brought a Lenovo 3000N200 series laptop one year back, exactly 21’st Feb 2008 from Dubai Shopping festival for Rs 35, 000. I was very satisfied with their product initially, as it is cost effective with good performance. But after 3 months of working my laptop charger burnt out. I called up the customer care (18004252666) asking for the replacement and they said because it is burnt, they can’t replace it. For me, living without laptop and internet is worst thing in my life.
Read the complete story from the authors bloghttp://www.iamatechie.com/lenovo-service-problems/
July 2009
M T W T F S S
June 2009August 2009
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31