What are some limitations of PHP?

What are some limitations of PHP?

Recently I answered a question on quora. I am reproducing it here again.

In my view question is not complete and does not provide context which has to be evaluated to answer.

So I am writing this answer based on two assumptions.

First of all I am assuming that questioner is evaluating few programming languages and wants to make a decision which language to use or learn?

One of the major feature of PHP is also its biggest limitation. It is loose type and does automatic data type conversion in most of the situations.…

Drupal vs Zend : which one should be used for application development?

Drupal vs Zend : which one should be used for application development?

“You have done that specific site in Zend, don’t you think our application is also suitable for Zend instead of Drupal”, I just got this email from a prospective client.

This question has been asked to me many times. I am a big fan of Drupal as well Zend, so this question always put me in my difficult zone. As I know both, I really can not take a stand against any one of them. Technically speaking, both are capable of handing any kind of project, although both have their pros and cons.…

PHP Functions to work with PHP Arrays

PHP Functions to work with PHP Arrays

This posts was written in year 2006 on 20th May. In one of my server crash, I lost my posts, Today I got it recovered from Archive.org, and representing it again.

 

Today, I am going to write about array PHP functions, these functions allow you to interact with and manipulate arrays in various ways.
Arrays are essential for storing, managing, and operating on sets of variables.

What are Arrays?

This is very easy to tell but sometime it is really difficult to understand the dynamics of arrays, after functions, arrays are one of the greatest mechanism of programming to solve the problem of data maintenance and presentation.…

How to optimize all databases and tabels on mysql server?

How to optimize all databases and tabels on mysql server?

Optimization of database tables in mysql is a process which has to be carried out regularly to make your database in good health.

According to mysql manual,

OPTIMIZE TABLE should be used if you have deleted a large part of a table or if you have made many changes to a table with variable-length rows (tables that have VARCHAR, VARBINARY, BLOB, or TEXT columns). Deleted rows are maintained in a linked list and subsequent INSERT operations reuse old row positions. You can use OPTIMIZE TABLE to reclaim the unused space and to defragment the data file.

Using PHP and Java in the Same App with PHP/Java Bridge

Using PHP and Java in the Same App with PHP/Java Bridge

In this article you will learn how to install and configure the PHP/Java Bridge and how to use Java classes in PHP scripts in a demo application. To use the PHP/Java bridge, you should have knowledge of Java SE and the PHP5 core, as well as how they interact.

PHP 4 supported an extension for combining PHP with Java, but to combine PHP with Java in PHP 5  you should install the PHP/Java Bridge, which the website describes as:”… an implementation of a streaming, XML-based network protocol, which can be used to connect a native script engine, for example PHP, Scheme or Python, with a Java virtual machine.”

Read complete article at PHP section of developer.com written by Octavia Andreea Anghel.…

Integrating Zend Framework with Drupal and WordPress

Integrating Zend Framework with Drupal and WordPress

Zend Framework is not only a framework but a robust library for many kind of operations and services. While working with Drupal or WordPress sometime we found that a good library for one particular operation is already available in Zend Framework.

You can easily use Zend Framework library in your projects with bothering about its app framework and MVC structure. Drupal and WordPress both have mechanism to use Zend framework in them without doing any major work.

Drupa module for Zend Framework

Its very easy to setup and use.…

PHP Functions to work with PHP functions

PHP Functions to work with PHP functions

In this article, I am going to write about the functions using which you can get the information about php functions.

For a full list of PHP functions you can visit http://www.zend.com/phpfunc/

Using these functions you can query the stats/status of your functions, these functions are very useful in dynamic application creation.

For example, using func_get_arg and func_num_args functions you can simulate the function overloading in PHP.

Read a good example for http://www.dubi.org/php-function-overloading

Functions I will write in this article are :-

get_defined_functions();

You want to how many functions are in your installation of PHP, just call this function, it will return an array of all php functions you can call.…