basename( ) function in PHP

karthikeya Boyini
Updated on 24-Jun-2020 08:37:40
The basename() function gets the the filename component of a path. The file path is set as a parameter.Syntaxbasename(file_path, suffix)Parametersfile_path − Set the path of file or directory to be checked. Required.suffix − Set the extension of the file. Optional.ReturnThe basename() function returns the basename of the file.ExampleThe following is an example that checks for file “new.php” and returns the basename with the extension since we added the suffix parameter. Live DemoOutputnew.phpExampleLet us see another example that checks the file and display the basename without the extension. Live DemoOutputnew

Align the grid inside the container using CSS

Daniol Thomas
Updated on 24-Jun-2020 08:37:31
You can try to run the following code to align the grid inside the container using the justify-content property:ExampleLive Demo                    .container {             display: grid;             background-color: gray;             grid-template-rows: 120px 90px 100px;             justify-content: space-evenly;             padding: 20px;             grid-gap: 20px;          }          .container > div {             background-color: yellow;             border: 2px solid gray;             padding: 35px;             font-size: 30px;             text-align: center;          }                     Game Board                1          2          3          4          5          6          

Create caption for a table in HTML?

George John
Updated on 24-Jun-2020 08:37:29
Use the tag to add a caption to a table. You can try to run the following code to include a table caption in HTML −ExampleHere, we have added a table caption “Indian Cricketers” −                    table, th, td {          border: 1px solid black;          }                     Cricketers                Indian Cricketers          Name                       Sachin Tendulkar                                 Virat Kohli                    

chgrp()function in PHP

Samual Sam
Updated on 24-Jun-2020 08:37:16
The chgroup() function updates the file group. Remember that only the superuser has the authority to change the group of a file arbitrarily,Syntaxchgroup($file_path, group)Parametersfile_path − Set the path of file or directory to be checked. Required.group − Set the new user group name or number.ReturnThe chgroup() function returns.True, on success,False, on failureExampleThe following is an example that checks for file “one.txt” and changes its file group.OutputTRUE TRUE

chmod() function in PHP

karthikeya Boyini
Updated on 24-Jun-2020 08:36:25
The chmod() function changes the file mode. It returns TRUE on success and FALSE on failure.Syntaxchmod($file_path, file_mode)Parametersfile_path − Set the path of file or directory to be checked for existence. Required.file_mode − Set the mode with values. The description of file_mode parameter is shown belowFile Mode parameterSet the file mode with the following four values.zeropermission for ownerpermission for the owner’s user grouppermissions for restThe following are the values to set multiple permissions. You need to add the following numbers −1 = execute permissions2 = write permissions4 = read permissionsReturnThe file_exists() method returns.True, on successFalse, on failureExampleThe following is an example ... Read More

Create an ordered list in HTML

Sravani S
Updated on 24-Jun-2020 08:36:04
The HTML tag is used for creating an ordered list. You can try to run the following code to create an ordered list using the tag −The HTML tag supports the following additional attributes −AttributeValueDescriptioncompactautofocusDefines if compact rendering is required.reversed reversedSpecifies the order of the list (descending).start numberSpecifies the initial number to start the list.typeAaIi1Specifies the style of the list.ExampleYou can try to run the following code to create an ordered list using the tag −           HTML ol Tag               Programming Languages:                Java          C++          C          

chown() function in PHP

Samual Sam
Updated on 24-Jun-2020 08:35:29
The chown() function changes the file owner. Set a new owner for any file. This function won’t work for remote files.Syntaxchown($file_path, $user );Parametersfile_path − Set the path of file or directory to be checked. Required.user − Set the new owner name or id.ReturnThe chown() method returns.True, on successFalse, on failureExampleThe following is an example that set new owner for file “demo.txt”.Let us see another example, wherein a new user is set for file “new.txt”.Example

GSM Architecture

Samual Sam
Updated on 24-Jun-2020 08:33:50
Global System for Mobile communication (GSM) architecture comprises of the following components −Mobile Station : The mobile station is the mobile phone, which comprises of the mobile handset and SIM card. The mobile handset comprises of the transceiver, the display and its processor. SIM stands for SubscriberIdentity Module. It is a removable chip that contains account information of the subscriber and connects the handset to the mobile network system.Air Interface : The air interface is the interface between the mobile station and the Base Transceiver Station. It is also called the UM interface as it is analogous to U interface ... Read More

Different Types of Process Schedulers

Ricky Barnes
Updated on 24-Jun-2020 08:33:06
Process Scheduling handles the selection of a process for the processor on the basis of a scheduling algorithm and also the removal of a process from the processor. It is an important part of multiprogramming operating system.There are many scheduling queues that are used in process scheduling. When the processes enter the system, they are put into the job queue. The processes that are ready to execute in the main memory are kept in the ready queue. The processes that are waiting for the I/O device are kept in the I/O device queue.The different schedulers that are used for process ... Read More

Create a responsive pagination with CSS

Chandu yadav
Updated on 24-Jun-2020 08:32:29
You can try to run the following code to create a responsive pagination with CSSExampleLive Demo                    .demo {             display: inline-block;          }          .demo a {             color: blue;             float: left;             padding: 3px 8px;             text-decoration: none;          }                     Our Quizzes                          
Advertisements