PHP Practice Questions
PHP Practice Questions
DE704 Group-2C
Assignment
Submission Last Date: 20th April 2020
1) Create a database in MYSQL and name it as “buildings”. Create the following table
name it as “lpu_apartment” under “buildings” database and insert any 3 records.
Write a PHP program to update any one of the record from “subject” table
Write a PHP program to create the following table name it as “country” under “globe”
database.
4) Create a database in MYSQL and name it as “Graphics”. Create the following table name
it as “software” under “Graphics” database and insert any 3 records.
Write a PHP program to update any one of the record from “software” table
5) Write a PHP program to draw the following objects with the suitable border
colours and fill it with co-related colours.
6) Write a PHP program to draw the following objects with the suitable border
colours and fill it with co-related colours
.
7) Write a PHP program to draw the following objects with the suitable border
colours and fill it with co-related colours.
8) Write a PHP program to draw the following objects with the suitable border
colours and fill it with co-related colours.
9) Write a PHP program to draw the following objects with the suitable border
colours and fill it with co-related colours.
10) Write a PHP program to draw the following objects with the suitable border
colours and fill it with co-related colours.
11) Write a PHP program to draw the following objects with the suitable border
colours and fill it with co-related colours and modify an image as shown below.
12) Write a PHP program to draw the following objects with the suitable border
colours and fill it with co-related colours and Get a portion of the image
13) Write a PHP program to draw a right triangle, this generates the image in Figure
14) Write a PHP Program to create a pdf file and insert the footer with suitable text
and to print the text on top and bottom of the page.
15) Write a PHP program to draw the Rectangle and fill it with Blue Color. To draw
any four different shapes of Aarcs inside the Rectangle box and save it as
“new.png”.
16) Write a PHP program to rotate the above created image with height*0.9 and
width*0.9
17) Write a PHP Program to create a pdf file and insert the Header with suitable text
in single page and to print the text on top and bottom of the page.
18) Write a PHP Program to create a pdf file and insert the hyperlink of
http://www.yahoo.com to navigate to second page with suitable text in first page.
To insert the hyperlink http://www.gmail.com to navigate to second page with
suitable text in gmail web-page
19) Write a PHP Program to create a pdf file and to insert page numbers (like as
page: 1 / total pages: 2) and logo in every page in header / footer.
20) Write a PHP Program to a create a pdf file and to print the message of “CAP777-
PHP Assignment” at text top-left, top-right, middle, bottom-left and bottom-right
of the page.
21) Write a PHP Program to create a pdf file and print the text “Hi, Good Morning”
with various text type: arial and formatting styles such as italic, underline and
bold.
22) Write a PHP Program to create a pdf file and insert the Header with suitable text
in single page. To print the text on top and bottom of the page.
23) Write a PHP Program to create a pdf file and insert the Footer with suitable text.
To print the text on top and bottom of the page.
24) Write xml program to create student-results XML file by student id, name, phone
number, subject1 marks, subject2 marks, subject3 marks, subject4 marks and
Results.
Write a PHP program to retrieve the student-results details from student-results
XML file
25) To Create an XML document using PHP with help of any example such as
employee or customer database
26) Write a PHP program to convert an XML string into an object, then output keys
and elements of the object with help of PHP simplexml_load_string() Function
27) Write xml program to create the following employee xml file.
Write a PHP program to retrieve the employee details from employee XML file