Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

PHP Configuration and Data Types in Apache Web Server, Assignments of Web Application Development

The steps to configure PHP in Apache web server and the data types available in PHP. It provides a quick method to download, extract, configure, and test PHP files. It also explains the different data types supported by PHP, such as string, integer, float, boolean, array, object, null, and resource. Additionally, it compares the GET and POST methods in PHP, highlighting their differences in terms of visibility, security, restrictions on data length and type, encoding type, history, and caching.

Typology: Assignments

2022/2023

Available from 11/23/2023

rutvi-darji
rutvi-darji 🇮🇳

3 documents

1 / 6

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
01. EXPLAIN PHP CONFIGURATION STEPS IN APACHE WEB SERVER
Note that there's more than one way to configure Apache and PHP, but this is possibly the quickest
method.
Step 1: Download the PHP files. ...
Step 2: Extract the files. ...
Step 3: Configure php. ...
Step 4: Add C:\php to the PATH environment variable. ...
Step 5: Configure PHP as an Apache module. ...
Step 6: Test a PHP file.
02. WRITE DATA TYPES AVAILABLE IN PHP EXPLAIN IT
PHP Data Types
Variables can store data of different types, and different data types can do different things.
PHP supports the following data types:
String
Integer
Float (floating point numbers - also called double)
Boolean
Array
pf3
pf4
pf5

Partial preview of the text

Download PHP Configuration and Data Types in Apache Web Server and more Assignments Web Application Development in PDF only on Docsity!

01. EXPLAIN PHP CONFIGURATION STEPS IN APACHE WEB SERVER

Note that there's more than one way to configure Apache and PHP, but this is possibly the quickest method. Step 1: Download the PHP files. ... Step 2: Extract the files. ... Step 3: Configure php. ... Step 4: Add C:\php to the PATH environment variable. ... Step 5: Configure PHP as an Apache module. ... Step 6: Test a PHP file.

  1. WRITE DATA TYPES AVAILABLE IN PHP EXPLAIN IT PHP Data Types Variables can store data of different types, and different data types can do different things. PHP supports the following data types: String Integer Float (floating point numbers - also called double) Boolean Array

Object NULL Resource PHP String A string is a sequence of characters, like "Hello world!". A string can be any text inside quotes. You can use single or double quotes: Example

"; echo $y; ?> PHP Array An array stores multiple values in one single variable. In the following example $cars is an array. The PHP var_dump() function returns the data type and value: Example

writeMsg(); // call the function ?>

  1. explain any 2 conditional structure in php with example PHP Conditional Statements Very often when you write code, you want to perform different actions for different conditions. You can use conditional statements in your code to do this. In PHP we have the following conditional statements: if statement - executes some code if one condition is true if...else statement - executes some code if a condition is true and another code if that condition is false if...elseif...else statement - executes different codes for more than two conditions switch statement - selects one of many blocks of code to be executed PHP - The if Statement The if statement executes some code if one condition is true. Syntax if (condition) { code to be executed if condition is true; } PHP - The if...else Statement The if...else statement executes some code if a condition is true and another code if that condition is

false. Syntax if (condition) { code to be executed if condition is true; } else { code to be executed if condition is false; }

  1. WRITE A DIFFERENCE BETWEEN GET AND POST METHOD IN PHP