Module 1 Flashcards
When was PHP 1.0 developed?
1994/1995 by Rasmus Lerdorf
Why did Rasmus Lerdorf developed PHP?
To know how many visitors were reading his online resume
In the year 1994/1995, PHP 1.0 was based on what?
PERL/CGI script
What does PHP mean?
Personal Home Page
In the year 1997, PHP 2.0 was based on what?
based on C
What was the other name of PHP in 1997?
Form Interpreter
How many users used PHP 3.0 in 1998?
50,000 users used PHP to enhance their web pages.
When did developers join Rasmus Lerdorf?
1998 with PHP 3.0
In 1999, who helped Rasmus Lerdorf develop PHP 4.0?
Zeev Suraski and Andi Gutmans
When was PHP the most popular scripting language by Netcraff userbase?
1999 (PHP 4.0)
This version of PHP is dubbed as the Zend scripting engine.
PHP 4.0 (1999)
In May 22, 2000, PHP was turned into a recursive acronym, what is the name?
PHP: Hypertext Preprocessor
What version of PHP had improved OOP?
PHP 5.0 (July 13, 2004)
This version of PHP has try/catch exception handling.
PHP 5.0 (July 13, 2004)
What version of PHP was not released?
PHP 6
What are the PHP Key Categories?
- Practicality
- Power
- Possibility
- Price
This key category talks about how PHP is a loosely type language (no explicitly create, typecast, or a destroy variable).
Practicality
This key category talks about how PHP has more libraries and thousands of functions.
Power
This key category talks about how PHP has native support for more than 25 database products.
Possibility
This key category states that PHP is both structured and object-oriented.
Possibility
This key category states that PHP is free of charge.
Price
True or False
Zeev Suraski and Andi Gutmans were the one who contributed the most in PHP development.
True
True or False
PHP key categories are practicality, prowess, possibility, and price.
False - practicality, power, possibility, and price
True or False
PHP is an embedded language that is commonly embedded on CSS.
False - embedded on HTML
True or False
PHP is a client-side scripting language that runs its application on a web server.
False - PHP is a server-side scripting language
True or False
Much of the PHP syntax were derived from C language.
True
How many PHP domains were installed in May 22, 2000 (PHP 4.0)
3.6 million
What are the Linux OS software requirements?
(FUCKLSD)
- Fedora
- Ubuntu
- Centos
- Kubuntu
- Linux
- Suse
- Debian
What are the Windows OS software requirements?
(Windows prefix)
- XP
- Me
- Server 2008
- 7
- 8
- 2000
What are the Mac OS software requirements?
(Big cats)
- Cheetah
- Puma
- Jaguar
- Leopard
- Snow Leopard
- Panther
- Tiger
- Lion
What are the Web Browser software requirements?
The common ones (MIGOS) + MRSAD
- Maxthon
- Rockmelt
- SeaMonkey
- Avant Browser
- Deepnet Explorer
What are the Web Server software requirements?
(GAIN)
- Google Web Server
- Apache
- IIS7
- NGINX
What are the server side scripting language software requirements?
(PPAPJR)
- PHP
- Python
- ASP
- PERL/CGI
- Java
- Ruby
What are the Database software requirements?
(PISSMO)
- Postgre
- IBMDB2
- SQLite
- SQL Server
- MySQL
- Oracle
What are the Code Editor software requirements?
(BEANND)
- Bluefish
- Eclipse
- Aptana
- Netbeans
- Notepad++
- Dreamweaver
What are the other software requirements?
(CHAJJXW)
- CSS
- HTML
- AJAX
- jQuery
- JavaScript
- XAMPP
- WAMP
Where is XAMPP installed?
C Drive (C:\xampp)
Where should all PHP files be saved?
C:\xampp\htdocs
Where can we test the PHP script file?
localhost/file_name
What are the tags of PHP scripts?
- Standard ( <?php … ?> )
- Short Open ( <? … ?> )
- Script ( <script 1anguage="php”> … </script> )
- ASP style ( <% … %> )
This PHP command is a language construct that is used to output one or more strings.
echo
Aside from echo, what can be used to output strings?
print, printf
What are the types of PHP comments?
Single Line:
- C syntax (//this is a comment)
- PERL syntax (#this is a comment)
Block Comments: /this is a comment/
What is the indicator that an item is a variable in PHP?
$ ($myVar)
This type of string interprets all characters as literal strings.
Single Quote Strings (‘ 'tis a fookin' string’ )
What is used to display a single quote character inside a single quote string?
backslash ( \ )
This type of string allows the use of variables.
Double Quote Strings (“$varSong is a banger”)
What operator is used to concatenate strings?
dot operator (“abc”.”def” = “abcdef”
What is the echo syntax?
echo (string argument1 [, … string argumentN])
echo “<p>ECHO!</p>”;
What is the print syntax?
print (argument)
print (“<p>PRINT</p>”);
What is the printf syntax?
printf (string format [, mixed args])
printf (“<p>%s</p>”, “PRINTF”);
This printf type specifier is considered as an int but is presented as binary.
%b
This printf type specifier is considered as an int but is presented as ASCII value.
%c
This printf type specifier is considered as an int but is presented as signed decimal.
%d
This printf type specifier is considered as an float but is presented as float.
%f
This printf type specifier is considered as an int but is presented as octal.
%o
This printf type specifier is considered as an string but is presented as string.
%s
This printf type specifier is considered as an int but is presented as unsigned decimal.
%u
This printf type specifier is considered as an int but is presented as lowercase hex.
%x
This printf type specifier is considered as an int but is presented as uppercase hex.
%X
What are the PHP datatypes?
- Scalar
- Compound
This is the generic name assigned to any data sharing a common set of characteristics.
Datatype
This datatype is capable of containing a single item of information.
Scalar Datatype
This datatype allows for multiple items of the same type to be aggregated under a single representative entity.
Compound Datatype
What is the cast operator for array conversions?
(array)
$x = (array) $str
What is the cast operator for boolean conversions?
(bool) or (boolean)
What is the cast operator for integer conversions?
(int) or (integer)
What is the cast operator for 64-bit integer conversions?
(int64)
What is the cast operator for object conversions?
(object)
$obj = (object) $str
What is the cast operator for float conversions?
(real) or (double) or (float)
What is the cast operator for string conversions?
(string)
True or False
There is Type Juggling in PHP
True
This function returns the type of the variable.
gettype()
This function converts a given variable to a specific type.
settype()
What are the predefined type identifiers in PHP?
is_type()
types: array, bool, float, integer, null, numeric, object, resource, scalar, string
What PHP version had enterprise development?
PHP 4.0 (May 22, 2000)
How many domains installed PHP 5.0?
19 million
Valid or Invalid
$var = “abc”.”def”;
Valid
True or False
Variables in PHP are not explicitly declared.
True
True or False
PHP can only run on Windows based OS.
False - PHP can run in Windows, Mac, and Linux
What is the new language feature in PHP 6?
foreach loops