Skip to content

Instantly share code, notes, and snippets.

<?php
/**
* Get basedir
*/
function basedir( $docroot = '/' )
{
$docroot = rtrim($docroot, '/\\').DIRECTORY_SEPARATOR;
$basedir = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);
if (isset($_SERVER['PATH_INFO'])) {
@soundws
soundws / httpd-php54.conf
Created March 20, 2012 11:45
PHP5.4 on Apache2.2 add configration
#
# PHP 5.4 Add Configration
#
# conf/extra/httpd-php54.conf
#
#
# Add in conf/httpd.conf
#
# Include conf/extra/httpd-php54.conf
#