The UAE's Leading B2B and B2C portal

HaiUAE - Expats Guide to UAE and Local Business Directory

Top 10 PHP Tips for Developers:

September 11, 2018 / 187 / Category : Tech

1) Go OOP:

OOP is basically a technique for programming with the utilization of classes, or Objects, which integrate like things, evacuate the requirement for redundancy of code and play out the essential assignments of generation just.

2) Stay Away from Anything Ending With_once() :

It is important to note that () essentially gives us a notice in the event that it falls flat while requiring to use () ends the content with a lethal mistake when it comes up short. What we keep in mind is that incorporate once () and require once () is to a great degree hard on server assets.

3) Develop With Error Reporting On:

The first thing to do when beginning another venture is to turn blunder answering to E_ALL, and just turn it off within ten seconds. Other than that, with blunder giving an account of, one can get any little mistakes that will inevitably grow up cause issues.

4) Use A Framework If You Need One:

Frameworks assistance helps a person in the monotonous, despite the fact that it can be figured out how the systems work first keeping in mind the end goal to make things basic. One also stands less possibility of composing awful code when another person has composed the vast majority of it.

5) Use PHP's Inbuilt Functions:

If anyone wishes to count the number of keys in an array, they can loop through the array and simply increment a value for each iteration. Or just use the built-in PHP function count (), which does just what it should. PHP has many built-in functions that can do what you need them to, so check out the manual to make sure the task is done in the best way possible.

6) Protect Your Database:

The best and most secure path is to utilize mysql_real_escape_string() to be added to the database. This capacity makes all strings safe as far as statements and different capacities that can hurt the database or contain noxious code, so utilize it to make sure you have ventured out the security of your information. Additionally to approve all POST and GET strings, never utilize $_REQUEST, and ensure all shape submitted information is of the correct sort and incentive before adding it to a database question.

7) Use POST Not GET:

This isn't generally conceivable, in light of the fact that GET is easy to copy. Basically, add something to address bar and get it hacked. GET is the easy method to do pagination and permalinks, yet when utilizing structure accommodation particularly, remain with the POST, it's more secure.

8) Draw before You Code:

Wireframe your projects. It is very important to actually give the mechanics of your application some thought before sitting down to start coding.

9) Understand Your Project:

One cannot code a project that they do not fully understand. If one does not understand exactly what it needs to do, and how it needs to it, one cannot build it.

10) Code:

On the off chance that one could make one thing through to anybody perusing this, this is it. One can't turn into a decent designer by perusing. One can't turn into a decent designer by watching somebody create. The unparalleled attempted and confided in strategy, is to really compose code. In any case, construct genuine articles! Try not to go and code something that you have no enthusiasm for, or will never utilize. Fabricate what you like, and you will be energized and intrigued by it, and you will learn. At that point, make it magnificent, expand upon it, and improve it.


Martyr's Day 2016

Martyr's Day 2016

Martyr's Day will be observed every year on 30 November in the United Arab Emirates. Year Date Day Holiday 2016 30 Nov Wed Martyr's Day It is a time of remembrance for those who have sacrificed their lives in the service of their country. Schools will close and both government and private-sector workers will have the day as a paid day off. UAE National...

Checklist for Hiring a Maid Company in the UAE

Checklist for Hiring a Maid Company in the UAE

Hiring a maid is not an uncommon practice here in the UAE. Here, women from various nations congregate to earn their living as housemaids, carrying out chores and saving enough to send money back to their families in their home countries. While having a maid may seem like a luxury to many, it can actually come as a boon, especially when you're juggling a job, children and household tasks. It's ...

Do I need a UAE Partner to form a company in Dubai Free Zone?

Do I need a UAE Partner to form a company in Dubai Free Zone?

One of the many advantages of setting up a company in DAFZA is that it allows 100% foreign ownership. You do not need a UAE Partner to form a company at DAFZA. We have tried our best to compile maximum information about Starting a Business in Dubai Free Zones. Please visit our Freezones Guide if you are looking for answers of the following: Dubai Offshore Company, Freezone Company Formation...

Whats the fine for 70% tint?

Whats the fine for 70% tint?

Asking for a friend who wants to install 70% on his 4x4 mitsubishi

  • 722
  • Faqs
  • March 9, 2018
List of Recruitment Agencies in Dubai

List of Recruitment Agencies in Dubai

Complete List of Agencies, Apply for Jobs Agency Name Phone Number Link Accel HR Consulting +971 4 352 4561 Upload CV MGR Management Consulting +971 4 364 9347 Upload CV ANOC +971 4 311 6888 Upload CV JoyIn Solutions +971 4 553 8776 Upload CV Aarch Consulting +971 4 358 2126 Upload CV Accel HR Consulting +971 4 352 4561 Upload CV ACR ...

  • 3494
  • Jobs
  • November 2, 2016

Claim your free HaiUAE Business Page Get Started

By continuing past this page, you agree to our Terms of use, Cookies policy and Privacy policy. © 2017 - 2019