What is pclose in PHP Filesystem

In this article I am going to explain about pclose function in PHP.
  • 1050

PHP pclose() Function

The filesystem pclose function closes a pipe opened by popen.

Syntax of pclose function

pclose(pipe)

Parameters in pclose function

It has only one parameter:

Parameter Description
pipe It specifies the pipe opened by popen.

Example of filesystem pclose function

<html>

<body>

<?php

$file = popen("/bin/ls","r");

pclose($file);

?>

</body>

</html>


You may also want to read these related articles :
here

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.