Question is not specific to PHP only, it is generic for Web development, language will not matter.
PHP has session tokens through which server will identify the session id of a specific user, (this is similar to many other languages). These tokens can be sent via cookies or via embedding in urls. In terms CSRF attacks, urls one are much better but these also expose many other security issues as token is embedded automatically (if you did not change your ini settings) to urls.…
You will find lots of guides and articles on the internet about what you should do to be a good programmer. A lot has been written on what we should do to excel in any field.
In my view, its not only what we do which make us good in our profession. It mostly depends on what we should not do which make us excel at our work.
In this article I am making short list of two things which any programmer should not do.…
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.…
“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.…
If you are doing programming, You must have used random numbers. They are useful in many situations when you want to give some randomization to your program output like lottery draw, random banners generation, random user display etc.
In PHP rand function is being used to generate random numbers, but is it really random number generator? Take a look at the following code.
What this function will do? If you are thinking that it will produce 50 random numbers, you just need to run this code.…
Web programming is not only about how you develop your applications, its also about how you deploy your application or website.Although control panels are being provided by almost every shared hosting company using which we can easily deploy our applications but as soon as application grows in terms of size or scalability we need to put that on virtual dedicated or dedicated or in a cloud server like amazon EC2 .
Linux system administration is specialized field in itself but if as a programmer you also know how to handle some common tasks you can get good turn around as well as can optimize your application for performance.…
Bigdata is the word which is being used very often but yet to be defined properly. How much data can be classified as big data? Does big data only means big in size or big in complexity or both? If hard disks can be clubbed together to store very very large amount of data then why whole world has become so obsessed with big data? Is it something different from traditional DBMS?
There are many questions which may come to the mind of a person who is starting his journey with big data.…
Algorithms are defined sets of instructions to solve a problem or achieve something. Almost every process in computer world can be classified as an algorithm, still it is most difficult part of computer science for many learners.
Algorithms are necessary to make your programs intelligent and efficient. They can make your program rock and it can stand out in front of competition. You need to be good at analysis, understanding and draw abstraction to get good hold on this subject.
In this post I am trying to compile a list of algorithms which every program should know.…
I am enlisting 15 questions related to Magento ecommerce system. If you can answer these questions, you can consider yourself as a good beginner in Magento.
To understand Magento you should cover at least following areas :
- Store Management
- Product Management
- Category Management
- Inventory Management
- Understanding of product variables
- Layout and themes
- Cache Management
- Backup and Restoration of Backup
- Extension Overview
1. What is Magento and how it is different from other e-commerce solutions available in the market?
2. How to create new Magento extensions?…
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.
Magento is one of popular and robust e-commerce system which is based on the Zend Framework by Zend. It gives good tools and mechanism to operate your e-commerce websites and even multiple stores on different urls via single admin section.
Drupal is one of the best open source CMS having power of ease of use and lots of available modules which helps to build new functionality for users. It has powerful cck module for managing different meta values of a content entity.…
Many people hate Magento and hate it upto a level where they really do not want to hear anything in favor of it. Most of them have some valid reasons (based on their personal experiences) and many of them hate it just to hate it.
On this page I am compiling a list of complains against Magento as an e-commerce system. I am not going to counter them or justify Magento in light of these complaints, I am compiling this list so you can take a balanced view before taking any decision in favor of or against Magento.…
I came across this good collection of some good suggestions by Guido Jansen about Magento speed optimization. Most of suggestion are not exclusive Magento, but totality it is good list to optimize any Magento or PHP based application. As of he has not finished his target of listing 101 suggestions, but a must read for anyone who wants to optimize Magento speed.
Phing is a PHP project build tool based on Apache Ant. A build system helps you to perform a group of actions using a single command. If you’re wondering why PHP needs a build tool, consider a work flow where you write code and unit tests on your local machine, and if the tests pass you upload the code to staging/production server and make any changes to the production database. Without a build file, you’ll need to go through each step manually.…
I am really disappointed and I should emphasis, REALLY disappointed. I have gone through an online ebooks library promoted and managed by a big publication house named Packt Publishing (http://www.packtpub.com)yesterday and I was surprised to see their bad user interface in ordering system as well as major bad logical and technical decisions while planning and developing the website.
Usually I did not write reviews, but today I am writing this because I want to let other people know “How bad their site is?”..…