Skip to content

DigitalTekkie

A space for solutions

  • Home
  • Contact
  • Tag Index

Category: PHP

Home » PHP

Display current server path

Posted on December 4, 2019December 4, 2019 by Kevin

To get your current working directory: echo getcwd(); (documentation) To get the document root directory: $_SERVER[‘DOCUMENT_ROOT’]; To get the filename of the current script: $_SERVER[‘SCRIPT_FILENAME’];

Continue Reading
PHP Leave a Comment on Display current server path
All Tags
Android (2) Android Issues (2) CentOS 7 (3) CWP (1) CWP7 (16) Lint Issues (1) Linux (1) NextGEN Gallery Plugin (3) NGG (1) React Native Issues (2) React Native on Android (2) Ubuntu (1) WordPress (5) WordPress Hacks (5) WordPress Plugins (3)
Categories
  • CentOS
  • iOS
  • Linux
  • NextGEN Gallery
  • PHP
  • React Native
  • WordPress
  • WordPress Plugins
Recent Posts
  • How to change directories when access denied in Ubuntu and su isn’t working
  • Running jQuery code after deferred loading jQuery Library in WordPress
  • How to Display 9999 Galleries on the Manage Galleries
  • 404’s created /every new WP user getting their own author page
  • Android Build Exception – Process ‘command ‘node” finished with non-zero exit value 1
Copyright 2025 - DigitalTekkie - digitaltekkie.com | Theme Name: WP Bootstrap 4