Tag Archive for path

Get Internal URL from URL Alias

<?php drupal_lookup_path('source',$url_alias); ?>

source

Retrieve the physical location of a dynamic dataset, file or folder in SAS

data mydata.class;
set sashelp.class;
run;
 
libname mydat6 v6 "%sysfunc(pathname(mydata))";
 
data mydat6.class6;
set mydata.class;
run;

source

Canonical absolute path

function canonpath ()
{
echo $(cd $(dirname $1); pwd -P)/$(basename $1)
}

source

Find absolute path of Bash script

abspath="$(cd "${0%/*}" 2>/dev/null; echo "$PWD"/"${0##*/}")"

source

getting current filename physical path

<!--- Get expanded path of the BASE path. --->
<cfset strPath = ExpandPath( "./" ) />

<!--- Get the expanded path of the CURRENT template path. --->
<cfset strPath = GetDirectoryFromPath(	GetCurrentTemplatePath()) />

source

Create a textfile listing all paths to a certain file or wildcard.

Function writeAllPaths([string]$fromFolder,[string]$filter,[string]$printfile) {
Get-ChildItem -Path $fromFolder -Recurse $filter | Select-Object -Property FullName > $printfile
}

source

Set Linux environment variables JAVA_HOME & PATH globally using /etc/profile

export JAVA_HOME=/usr/lib/jvm/default-java/jre
export PATH=$JAVA_HOME/bin:$PATH

source

get absolute server path

$serverPath = dirname(__FILE__);

include($serverPath . "/includes/someFile.php");

source

Filtering the Find command

find . ! -name "*constants.sass" ! -path "*landing_page*" -name "*sass"

source

AS Flash Lite1.1 MCのダイナミックテキストにテキストを送る

// root以下にbox_mcを配置して、その中に変数=numdisplayのダイナミックテキストを配置
tellTarget("/box_mc"){
numdisplay = /:collectionLabel add ": " add /:currentImage;
}

source