3.230.76.153 |    

Navigation

Google Advertisement

All snippets of the tag directory

1-5 of 5 Entries

listing
(PHP::Function)
Created by Marko Schulz at 2010-02-08 22:49:26
/** * This function open a defined directory and read all file into an array $file * and all directory into an array $dirs. You can filter the search by * regular expression. To hide hidden files/directories, set the last parameter as True. * * ...

basedir
(Perl::Snippets)
Created by Marko Schulz at 2010-01-20 13:42:03
my $base_dir = rindex ($0, "\\"); $base_dir = rindex ($0, "/") if ($base_dir < 0); my $script_dir = substr( $0, 0, $base_dir); chdir( $script_dir );

rmdir_recursive
(PHP::Snippets)
Created by Marko Schulz at 2010-01-20 12:52:35
// if ( rmdir_recursive( '/var/www/php' ) ) { // echo "Directory -/var/www/php- deleted"; // } // // ***************************************************************** // This function delete a directory and the files within. function rmdir_recurs...

libdir
(Perl::Snippets)
Created by Marko Schulz at 2008-12-27 03:44:26
BEGIN { my $prefix = $ENV{'HOME'}."/bin/perl"; my $libdir = ${prefix}."/lib"; unshift(@INC, $libdir); } # Display all package paths: print $_."\n" foreach (@INC);

dirname
(Python::Function)
Created by Marko Schulz at 2008-12-27 02:48:46
def dirname( file ): """dirname --- Get the directory name of a defined file path. (string) string dirname( (string) file )""" from os import path return path.abspath(path.dirname(file))

1-5 of 5 Entries
Search
 
Full text search by name and content of a snippet.

User online
There are 3 users online.

Tags Cloud

Latest snippets
str2seconds
(Bash::Function)
is_integer
(Bash::Function)
file_rotate
(Bash::Function)
confirm
(Bash::Function)
is_workingtime
(Bash::Function)
last day of last month
(Bash::Snippets)
crypt_apr1_md5
(PHP::Function)
crypt_apr1_md5
(Perl::Function)
transparent
(CSS)
rfc2822Toiso8601
(PHP::Function)