لغة PHP — الصفحة ٩٦

الفصل ا Echo basename("c:/apache/htdocs/test/p042.php"); echo "<BR> Dir Name is :"; Echo dirname("c:/apache/htdocs/test/p042.php"); // Change Chmod ("c:/apache/htdocs/test/p042.php", 0777); Chown ("c:/apache/htdocs/test/p042.php", Ahmed); // copy Copy (c:/apache/htdocs/test/p042.php" "c:/apache/htdocs/test/p043.php"); // Free space echo "<BR> Free space = "; Echo diskfreespace ("/"); $array1= file (c:/apache/htdocs/test/p042.php'); // Exist If (file_exists (c:/apache/htdocs/test/p043.php")) { Echo "<BR> File found"; } else { Echo "<BR> file not found"; } // Size and Type echo "<BR> Size and Type of file :"; Echo filesize ("c:/apache/htdocs/test/p043.php") ; Echo filetype ("c:/apache/htdocs/test/p043.php"); ?> الدوال Functions 97
ص ٩٦

النص مستخرج آليًّا من صور الكتاب، وقد يقع فيه خطأ.