Ticker

6/recent/ticker-posts

Ad Code

Responsive Advertisement

The PHP 8 Learning Guide [2021 Edition]

The PHP 8 Learning Guide [2021 Edition], دليلك الكامل لفهم اساسيات لغة بي اج بي.

في هذه الدورة من بي إتش بي  [المرجع الشامل افترض الشخص اللي امامي لا  يعرف اي شيء عن عالم البرمجة اصلا

سأخذك خطوة بخطوة من الصفر

بي إتش بي (PHP: Hypertext Preprocessor، ‘الصفحة الرئيسية الشخصية كانت مجموعة من التطبيقات التي كتبت باستخدام لغة بيرل أطلق راسموس اسم Personal Home Page Tools (“المعالج المسبق للنصوص الفائقة”) هي لغة برمجة نصية صممت أساسًا من أجل استخدامها لتطوير وبرمجة تطبيقات الويب. كما يمكن استخدامها لإنتاج برامج قائمة بذاتها وليس لها علاقة بالويب فقط.[21]

بي إتش بي لغة مفتوحة المصدر ويطورها فريق من المتطوعين تحت رخصة بي إتش بي، تدعم البرمجة كائنية التوجه وتركيبها البنيوي يشبه كثيرًا التركيب البنيوي للغة السي، هذا بالإضافة إلى أنها تعمل على أنظمة تشغيل متعددة مثل لينكس وويندوز.

PHP is a general-purpose scripting language especially suited to web development. It was originally created by Danish-Canadian programmer Rasmus Lerdorf in 1994. The PHP reference implementation is now produced by The PHP Group. PHP originally stood for Personal Home Page, but it now stands for the recursive initialism PHP: Hypertext Preprocessor.

PHP code is usually processed on a web server by a PHP interpreter implemented as a module, a daemon, or as a Common Gateway Interface (CGI) executable. On a web server, the result of the interpreted and executed PHP code – which may be any type of data, such as generated HTML or binary image data – would form the whole or part of an HTTP response. Various web template systems, web content management systems, and web frameworks exist which can be employed to orchestrate or facilitate the generation of that response. Additionally, PHP can be used for many programming tasks outside of the web context, such as standalone graphical applications and robotic drone control. Arbitrary PHP code can also be interpreted and executed via a command-line interface (CLI).

The standard PHP interpreter, powered by the Zend Engine, is free software released under the PHP License. PHP has been widely ported and can be deployed on most web servers on almost every operating system and platform, free of charge.

The PHP language evolved without a written formal specification or standard until 2014, with the original implementation acting as the de facto standard which other implementations aimed to follow. Since 2014, work has gone on to create a formal PHP specification.

As of January 2021, 72% of PHP websites use discontinued versions of PHP, i.e. PHP 7.2 or lower, which are no longer supported by The PHP Development Team. A large additional fraction uses PHP 7.3, which is only (up to December 6, 2021) “supported for critical security issues only.” Over 40% of all PHP websites use version 5.6 or older, which not even Debian supports (Debian 9 supported version 7.0 and 7.1).

Beginner Friendliness

Easy to Get Started With

PHP was designed to make web development easier, and many beginners find it effortless to pick up and get started with. In fact, PHP code was so easy to pick up, many non-programmers end up being able to hack PHP code together without truly understanding the code. While good programmers will never copy and paste code they don’t understand, this speaks volumes about how easy it is to pick up PHP.

The latest version of PHP (PHP8) has fixed a lot of inconsistencies and fatal errors as well. PHP has a wealth of learning resources, but you should make sure to avoid outdated tutorials.

Flexible

PHP is a dynamically typed language. This means there are no hard rules on how to build features, and you’ll have more flexibility solving problems using different methods. Furthermore, PHP is also more forgiving of errors, so you’ll still be able to compile and run your program until you hit the problematic part.

Enregistrer un commentaire

0 Commentaires