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.

Popular

Chapter III: Employment Contracts, Records and Wages - UAE Labor Law

Chapter III: Employment Contracts, Records and Wages - UAE Labor Law

Article 42 An apprenticeship contract is one whereby a firm owner undertakes to provide full vocational training consistent with the professional standards to another person who has completed at least 12 years of age, who, in turn, undertakes to work for the employer during the training period subject to such terms and for such period as mutually agreed. The apprenticeship contract shall be in w...

Online Shopping in the Middle East

Online Shopping in the Middle East

This online shopping site was set up by experts from the fashion and eCommerce industry. The site was established with a view to bringing the latest fashion offerings to the fashion lovers of Middle East. MarkaVIP sells fashion and designer items and home décor and electronic items across the UAE. We offer a wide range of internationally acclaimed brands that cater to members with diverse needs ...

14 Most Popular Online Stores in Dubai 2017 United Arab Emirates

14 Most Popular Online Stores in Dubai 2017 United Arab Emirates

Souq Enjoy the best online shopping experience from mobile phones, electronics, watches, clothing and more only on Souq.com UAE, KSA, Egypt, Kuwait.  Amazon Online retailer of books, movies, music and games along with electronics, toys, apparel, sports, tools, groceries and general home and garden items  Awok Get the best deals with the No.1 online shopping store in UAE, D...

Best deals in Dubai UAE with Awok.com

Best deals in Dubai UAE with Awok.com

Awok sells home appliances, electronic products, mobiles, tablets, jewelry and lot of more at exclusive discounts and low prices. Products are delivered within 12 to 24 hours by Awok’s own delivery vans, anywhere in the UAE. Best Online Deals of Crossbody Bag for Girls – Backpack for Girls Blue Black You might get a of sites in Dubai offering deals and discounts, but then my only issue is y...

Is forex legal in the United Arab Emirates? If yes, how are foreigners allowed to start currency trading in the UAE?

Is forex legal in the United Arab Emirates? If yes, how are foreigners allowed to start currency trading in the UAE?

It is legal in UAE. You will have to open an account with a registered bank that offers such services in the UAE. There are many foriegn banks that sell share trading, eg saxo bank. These products often include trading in curencies along with equities, futures and options. Answer: Yes Forex is legal in UAE, everybody is free to do forex trading. They just require a trading account which ...

  • 1613
  • Faqs
  • November 1, 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 - 2020