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

RSS Icon Subscribe to comments

You need to login to post a comment.