How do I get the document root of my development server with cmd prompt?

when I create a development server on command prompt using php -S localhost:4000, unlike the youtube tutorial i am following, command prompt doesn’t return me the document root. Tutorial output: PHP 7.4.0 Development Server (http://localhost:4000) started Listening on http://localhost:4000 Document root is ______ Press Ctrl-C to quit. My output is just: PHP 7.4.0 Development Server…

Details

output file URI uploaded using wp_handle_upload

I’m uploading files into wordpress upload directory, but I’m not able to display uploaded file anywhere in theme i.e. in single.php my function.php if (isset($_FILES[‘uploadfile’][‘name’])) { if ( ! function_exists(‘wp_handle_upload’)) { require_once( ABSPATH . ‘wp-admin/includes/file.php’); } $movefile = $uploadedfile; $uploadedfile = $_FILES[‘uploadfile’]; $upload_overrides = array( ‘test_form’ => false ); $movefile = wp_handle_upload ($uploadedfile, $upload_overrides); if…

Details