Welcome To Snipplr


Everyone's Recent Snippets Tagged path



1 2 Next »
initial code and concept bitten from: http://drupal.org/project/menutrails
3 1082 posted 15 years ago by electblake
0 1031 posted 15 years ago by electblake
0 1225 posted 15 years ago by zartgesotten
0 790 posted 15 years ago by xupisco
Because different systems put it in different places.
0 861 posted 15 years ago by alvarezrilla
2 1160 posted 15 years ago by marcelodornelas
The PATHNAME function can be used to retrieve the physical location of a file or directory. This can be especially useful when reassigning engines for a libref using the Macro Language. Here we want to write a Version 6 copy of the data set CLASS...
0 2204 posted 15 years ago by webonomic
This is useful for when a Wordpress environment goes live; typically the uploads have an absolute URL.
5 1389 posted 15 years ago by Jamie
If the official codex approach (http://codex.wordpress.org/Changing_The_Site_URL) is causing you problems, give this a try. Be sure to change the constant declarations and modify table names as necessary for your instance. Confirmed working with WP v...
1 1452 posted 15 years ago by johnandrewsroot
0 2171 posted 15 years ago by Kototama
0 1243 posted 16 years ago by iloveitaly
for cmdparsing
0 1323 posted 16 years ago by tandouri
File.Basename - A library that provides unix-like tools 'dirname' and 'basename'
0 876 posted 16 years ago by quickredfox
When using `ln` to create a link in a different directory, the semantics of creating hard and symbolic links differ. That is because a hard link contains a direct reference to its target's data, while a symbolic link is just a string containing a (p...
1 1208 posted 16 years ago by deepsoul
The following shell function returns the canonicalised abolute path of a file. It resolves symbolic links, /./ and /../ as applicable. This was adapted from various sources. Related snippets on snipplr are [Find absolute path of Bash script](http:...
0 1015 posted 16 years ago by deepsoul
Gets the absolute path of the script itself even when it's executing, not just a simple "pwd".
1 1239 posted 16 years ago by loungerdork
First of all, for all Stackoverflow.com members who have seen my question about this snippet on Stackoverflow, yes I am the same person as WebDevhobo. Last time I asked a question about something I posted here I got a bucketload of comments saying I...
1 2029 posted 16 years ago by Vordreller
In this case I'm looking for image sources in html and placing them in array.
1 1285 posted 16 years ago by leonbda
One thing that always bothered me about Classic ASP is that there isn't an easy way to get the entire url. So I devised a function that will get the full path including the query string.
2 5537 posted 17 years ago by neal_grosskopf
This is useful if you have some optional functionality being done which is quite slow on nfs. For example, I have a script that adds scm (svn/git/etc) info to my prompt, but I wouldn't want that when I'm in a repository on an nfs mount.
0 1209 posted 17 years ago by kergoth
Suppose you created a script chart.rb in /home/foo/ruby/mylib direcory. Now, you want to use this in the app.rb located in /home/foo/ruby/scripts. In ~/.bash_profile:
0 991 posted 17 years ago by cczona
4 1317 posted 18 years ago by dmarten
0 1088 posted 18 years ago by whitetiger
0 1035 posted 18 years ago by whitetiger
0 1051 posted 18 years ago by whitetiger
0 1411 posted 18 years ago by whitetiger
1 2 Next »