Professional Documents
Culture Documents
Web development refers in general to the tasks associated with developing websites for
The web development process includes web design, web content development, client
side/server side scripting and network security configuration, among other tasks.
.يشير تطوير الويب بشكل عام إلى المهام المرتبطة بتطوير مواقع الويب لالستضافة عبر اإلنترنت
الخادم/ تتضمن عملية تطوير الويب تصميم الويب وتطوير محتوى الويب والبرمجة النصية من جانب العميل
That is to say that it generally refers to the portion of the site, app, or digital product
وهذا يعني أنه يشير بشكل عام إلى جزء الموقع أو التطبيق أو المنتج الرقمي الذي سيرى المستخدمون
.ويتفاعلون معه
Web Development 4
languages, including HTML, CSS, and JavaScript, as well as frameworks like Bootstrap
ً
وCSS وHTML بما في ذلك، عادة إلى امتالك فهم قوي للغات البرمجة سيحتاج مطورو الواجهة األمامية
If Front-End Developers are responsible for how a digital product looks, Back-End
This means they’re responsible for overseeing what’s under the hood, including database
فإن مطوري الواجهة الخلفية يركزون، إذا كان مطورو الواجهة األمامية مسؤولين عن مظهر المنتج الرقمي
، بما في ذلك تفاعالت قاعدة البيانات، هذا يعني أنهم مسؤولون عن اإلشراف على ما هو تحت الغطاء
Back-End Developers have to know how to build servers with modern frameworks (while
developing custom APIs and serving static websites and files), and how to manage
Typically, they use server-side languages, including PHP, and Python, as well as tools
معرفة كيفية إنشاء خوادم بأطر عمل حديثة (أثناء تطوير واجهات برمجةBack-End يجب على مطوري
. وكيفية إدارة قواعد البيانات والبيانات على خادم الويب، )تطبيقات مخصصة وخدمة مواقع ويب وملفات ثابتة
ً
باإلضافة إلى أدوات بما في ذلك، Python وphp بما في ذلك، عادة ما يستخدمون لغات من جانب الخادم
Oracle وMySQL
Programming languages for Web 7
1-Client –Side Programming Code running in the browser is known as client-side code
(programming) and is primarily concerned with improving the appearance and behavior of
This includes selecting and styling UI components, creating layouts, navigation, form
validation
تعرف التعليمات البرمجية التي يتم تشغيلها في المستعرض باسم التعليمات البرمجية من جانب العميل
والتحقق من صحة، والتنقل، وإنشاء التخطيطات، يتضمن ذلك تحديد مكونات واجهة المستخدم وتصميمها
النموذج
Programming languages for Web 8
2-Server –Side Programming mostly involves choosing which content is returned to the
The server-side code handles tasks like validating submitted data and requests, using
databases to store and retrieve data and sending the correct data to the client as
required.
تتضمن برمجة مواقع الويب من جانب الخادم على اختيار المحتوى الذي يتم إرجاعه إلى المتصفح استجابة
.للطلبات
واستخدام قواعد، يعالج الكود من جانب الخادم مهام مثل التحقق من صحة البيانات والطلبات المقدمة
البيانات لتخزين البيانات واستردادها وإرسال البيانات الصحيحة إلى العميل كما هو مطلوب
Web Communication 9
Web pages are stored on a Web Server to make them available on the
Internet for the users
Web Server is a computer with high processing speed and connected to the
Internet.
Web Server is used to host and display the Web pages on a Web browser.
Web browser displays the Web pages using the HTTP Protocol.
HTTP Protocol is a protocol that specifies how a Web page will be retrieved
from the Web server.
Web Development 10
including:
Graphic design
Information design
Multimedia
Introduction to PHP 11
PHP is the most commonly used programming language for the web today. PHP is very
PHP is a server side scripting language. that is used to develop Static websites or
شائع ج ًدا ألنها تحتوي على بنية بسيطة نسبيًاPHP .ما للويب اليوم
ً هي لغة البرمجة األكثر استخداPHP
تُستخدم لتطوير مواقع الويب الثابتة أو مواقع الويب الديناميكية أو.لغة برمجة نصية من جانب الخادم
.تطبيقات الويب
Introduction to PHP 12
Introduction to PHP 13
In order to develop and run PHP Web pages, vital components need to be installed on
Web Server - PHP will work with virtually all Web Server software, including
Microsoft's Internet Information Server (IIS) but then most often used is freely
Database - PHP will work with virtually all database software, including Oracle but most
من اجل تطبيق اوامر ، PHPالبد من تثبيت حزمة برامج ( (Apatch , MySQL , PHP) AMPبيئة عمل
تطبيقات )PHP
AMPمتاح لجميع أنظمة التشغيل .وعمل حزمة AMPتحويل جهاز الحاسوب الى Local Server
حزمة AMPكثيره جدا ومتعددة وتتوافق مع جميع انظمه التشغيل سوف نستخدم في تطبيقاتنا برنامج
XAMPP
Setting Up Your Workspace >>> XAMPP 16
MySQL database engine, and PHP programming packages. It is compiled and maintained
by Apache.
هو خادم ويب مفتوح المصدر ومتعدد األنظمة األساسية يتكون من خادم ويب ومحرك قاعدة بياناتXAMPP
XAMPP provides an easy-to-use control panel to manage Apache, MySQL, and other
والبرامج األخرى دون استخدامMySQL وApache لوحة تحكم سهلة االستخدام إلدارةXAMPP يوفر
.األوامر
https://www.apachefriends.org/download.html
Install AMP (XAMPP) 18
Step 1: Click on the above link provided to download the XAMPP server according to
واختار االصدار االنسب لكXAMPP انقر فوق االرتباط أعاله المقدم لتنزيل خادم:1 الخطوة
(32bit or 64bit)
Install AMP (XAMPP) 19
Step 2: After downloading XAMPP, double click on the downloaded file. A window will
Step 3: Here, select the components, which you want to install and click Next.
.Next حدد المكونات التي نريد تثبيتها ونضغط على االمر، هنا:3 الخطوة
Install AMP (XAMPP) 21
Step 4: Choose a folder where you want to install the XAMPP in your system and
click Next.
.Next فيه في النظام ونضغط على االمرXAMPP يتم تحديد المجلد الذي نريد تثبيت:4 الخطوة
Install AMP (XAMPP) 22
XAMPP.
button
PHPهي لغة برمجية شائعة .يمكن كتابة برامج PHPعلى أي محرر ،مثل Notepad -و ++ Notepadو
بعد كتابة البرنامج بالغة PHPتحفظ هذه البرامج بامتداد ، .phpعلى سبيل المثال ،
Firstprog.php
عندما تم تثبيت خادم XAMPPتم اختيار محرك األقراص D.لذلك سيكون مسار المجلد هو
البرنامج السابق FirstProg.phpالبد ان يتم حفظه داخل المجلد htdocsحتى يكون البرنامج
برامج ال PHPتعمل على مستعرض ويب مثل Chrome -و Internet Explorerو Firefoxوسوف نشرح
بعد ما تم حفظ البرنامج FirstProg.phpداخل المجلد htdocsواصبح داخل Local server
نقوم االن بتشغيل برنامج XAMPPونضغط على االمر Startلتشغيل Apacheو .MySQL
اآلن ،افتح متصفح الويب واكتب http: //localhost/FirstProg.phpفي نافذة المتصفح ،سوف يتم
او يمكن ايضا الذهب الى اي متصفح ونكتب على العنوان localhostسوف تظهر لنا جميع اسماء ملفات
Basic PHP Syntax 26
Generally, a PHP file contains HTML tags and some PHP scripting code.
<?php
?>
Basic PHP Syntax 27
Function "echo" to output the text “This is PHP output" on a web page
Basic PHP Syntax 28
Working with Variables 29
. متبوعة باسم المتغير$ يتم التصريح عن المتغير باستخدام عالمة، PHP في
Variable names are case-sensitive ($age and $AGE are two different variables)
) متغيرين مختلفين$ AGE و$ age ( أسماء المتغيرات حساسة لحالة األحرف على سبيل المثال
one thing to notice about PHP is that it provides automatic data type conversion.
ً
.تحويال تلقائيًا لنوع البيانات يوفرPHP يجب مالحظته ان
So, if you assign an integer value to a variable, the type of that variable will
automatically be an integer.
.حا تلقائيًا ً فسيكون نوع هذا المتغير عد، إذا قمت بتعيين قيمة عدد صحيح لمتغير، لذلك
ً دا صحي
Then, if you assign a string to the same variable, the type will change to a string.
. فسيتغير النوع إلى سلسلة نصية، إذا قمت بتعيين سلسلة نصية لنفس المتغير، بعد ذلك
Working with Variables 31
<html>
</body>
</html>
Working with Variables 32
Working with Variables 33
Working with Variables 34
Variable Type Casting 35
أن تكون المتغيرات من نفس نوعC# يتطلب إجراء العمليات الحسابية باستخدام متغيرات في لغة مثل
.البيانات
In other languages such as C#, you have to cast the variables. The code below shows
.C # يوضح الكود أدناه نوع التحويل في. يجب عليك صب المتغيرات، C# في لغات أخرى مثل
Variable Type Casting 36
Type Casting in C#
Variable Type Casting 37