Write a PHP script to get the document root directory under which the current script is executing, as defined in the server's configuration file

  • برمجة بي اتش بي

Write a PHP script to get the document root directory under which the current script is executing, as defined in the server's configuration file.

الأجوبة

<?php
// getenv() gets the value of an environment variable
$rd = getenv('DOCUMENT_ROOT');
echo $rd."\n";
?>
هل كان المحتوى مفيد؟

تبحث عن مدرس اونلاين؟

محتاج مساعدة باختيار المدرس الافضل؟ تواصل مع فريقنا الان لمساعدتك بتأمين افضل مدرس
ماهو التخصص الذي تبحث عنه؟
اكتب هنا...