Finding Paths on PHP | 2012-05-05

Technology Blog » Web Development

Just wanna keep a good note for determine paths.
Let say the Full URL is:

/var/www/pcinvent_com (May very if your server absoulte path is different)





Array ( [scheme] => http [host] => [path] => /page [query] => id=1&action=a )


Ok, what to do if you use CodeIginiter framework to get (Note that "/" at the end is included)
First, load the url Helper in Controller.

Then, ready to use:
echo base_url();