Advertisement:

Author Topic: Some alternative instead $_SERVER variable  (Read 168 times)

fog

  • Hero Member
  • *****
  • Posts: 1062
Some alternative instead $_SERVER variable
« on: March 05, 2019, 07:18:09 pm »
Hi, exists some safe alternative to not use global variable $_SERVER['DOCUMENT_ROOT']; ?

Thanks in advance
Regards

dev101

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2155
  • osclass.work
Re: Some alternative instead $_SERVER variable
« Reply #1 on: March 06, 2019, 01:09:10 am »
Why it isn't safe? It's a server defined parameter. Also, Osclass has Params class.