1) What is the php tag a) <php> </php> b) <php ... /> c) <?php ?> 2) How do you echo something in PHP a) echo["Hello World"] b) echo "Hello World" c) echo Hello World d) echo "Hello World"; 3) How do you concatenate a string? a) echo "Hello" .$var. "World"; b) echo "Hello" + $var + "World"; c) echo "Hello" plus $var plus "World"; d) echo concatenate("Hello" .$var. "World"); 4) What does PHP stand for a) Probably Hyped Programming b) PHP: HyperText Processor c) Print Hard Programs 5) What is the PHP logo a) b) c) 6) What is the difference between $_GET and $_POST a) It is the same b) IDK lol c) $_GET is used for a form with an method of $_POST, and $_POST is used for a form with an method of $_GET d) $_GET is used for a form with an method of $_GET, and $_POST is used for a form with an method of $_POST 7) Is PHP safe? a) Yes it is completely b) Not at all in any way c) Yes, provided you use PDO for SQL queries 8) What does htmlspecialchars() do? a) It creates random HTML characters b) It encodes special HTML special characters, instead of actually "executing the HTML code" c) It makes the HTML feel better than CSS and JavaScript 9) Can you use PHP with SQL a) Yep b) No c) WDYM??? d) IDK 10) Does htmlspecialchars() prevent SQL injection attacks? a) No, it doesn't. It isn't effective against SQL attacks. Using prepared statements is better b) Yes, It does, because it converts special characters, right?
0%
PHP
مشاركة
مشاركة
مشاركة
بواسطة
26gurudathmanus
CS
تحرير المحتوى
طباعة
تضمين
المزيد
الواجبات
لوحة الصدارة
عرض المزيد
عرض أقل
لوحة الصدارة هذه في الوضع الخاص حاليًا. انقر على
مشاركة
لتجعلها عامة.
عَطَل مالك المورد لوحة الصدارة هذه.
عُطِلت لوحة الصدارة هذه حيث أنّ الخيارات الخاصة بك مختلفة عن مالك المورد.
خيارات الإرجاع
الطائرة
قالب مفتوح النهاية. ولا يصدر عنه درجات توضع في لوحة الصدارة.
يجب تسجيل الدخول
النمط البصري
الخطوط
يجب الاشتراك
الخيارات
تبديل القالب
إظهار الكل
ستظهر لك المزيد من التنسيقات عند تشغيل النشاط.
فتح النتائج
نسخ الرابط
رمز الاستجابة السريعة
حذف
استعادة الحفظ التلقائي:
؟