Skip navigation.

exploreopera

| Help

Sign up | Help

Notes to myself

my scrap book for notes and thoughts

Ampersand before function name in PHP

function &getDictionary() {


If you put an ampersand before your function name, the function will return a reference to a variable instead of the value.

How to use chmod recursively

To use chmod recursively, use this

chmod -R o+w app/locales


it will add write access for other users to all the files and directory under
app/locales
.

How to create a soft link

, ,

Use this command to create soft symbolic link

ln -s /original/file /new/link


For example if you want to use your php on your LAMPP installation globally known, use this

ln -s /opt/lampp/bin/php /usr/bin/php