Fast way to get the base dir of a page


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. $baseURL = dirname($_SERVER['REQUEST_URI']);

Report this snippet


Comments


You need to login to view comments.