0% found this document useful (0 votes)
27 views

Linux Directory Structure

A PHP test requires creating a Linux folder structure displayed as a hierarchical tree starting from "/root". Clicking "+" opens a popup to add a file or directory with a unique name, while "-" removes empty directories except "/root". The tree must store and retrieve from a MySQL database without frameworks using standard PHP functions, with front-end support from a JavaScript framework.

Uploaded by

vivekvikisingh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views

Linux Directory Structure

A PHP test requires creating a Linux folder structure displayed as a hierarchical tree starting from "/root". Clicking "+" opens a popup to add a file or directory with a unique name, while "-" removes empty directories except "/root". The tree must store and retrieve from a MySQL database without frameworks using standard PHP functions, with front-end support from a JavaScript framework.

Uploaded by

vivekvikisingh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Duration : 2hrs

PHP Test
Create a Linux Folder Structure page displaying a hierarchical tree that begins
from root directory “/root”. The symbols “(+) (-)“, where “(+)” and “(-)“ are links.
Clicking on “(+)” should open a popup that asks for a name and whether the node
is a file or a directory. This rule applies to all nodes in the tree that are directories.
Clicking on “(-)“ removes selected file/directory, only empty directories can be
deleted. This rule applies to all nodes except “/root” directory. Make sure the
directories/files in the same level can’t have similar names, A warning message
should be displayed in case we try to create a folder/file with the same name in the
same level. Also there should be a functionality to rename files/directories. Write
PHP script to display and store hierarchical tree to MySQL DB. Do not use PHP
frameworks or libraries. Use standard PHP functions. For the front-end you can
use vuejs/angularjs/reactjs/knockoutjs/any other javascript framework.

You might also like