How To

PHP: How to Append an XML File with PHP’s DOMDocument Object

How To Compress a Directory with the tar Command and Exclude Certain Files, tarball exclude files

When creating a tar-ball (compressing a directory of files), you may exclude certain files by using the –exclude flag. The –exclude flag will also work with a wild card “*”. Here is an example of how to tar-ball a directory from the parent directory and exclude certain files:

IMPORTANT: Be sure to use the… Read more How To Compress a Directory with the tar Command and Exclude Certain Files, tarball exclude files

FIXED: Grunt Dploy Not Pushing Files

I was trying to set up Grunt to deploy to my development server. According to the output in the terminal all went well. However no files were being uploaded.

When setting up the info in my grunt.js file, I had used the full path as output by the “pwd” command like this:

}… Read more FIXED: Grunt Dploy Not Pushing Files

How To Fix: “Errno::ENOENT: No such file or directory @ rb_sysopen – undefined” Grunt Error

While setting up a grunt.js file, I ran into the following stubborn error.

After having Googled several solutions to the problem. I ended up updating my Ruby and uninstalling and re-installing nodejs among other things. It turns out I had a misspelling in the directory of the key-data pair inside the grunt.js file. I… Read more How To Fix: “Errno::ENOENT: No such file or directory @ rb_sysopen – undefined” Grunt Error

How To Make Directory Recursive Command Line Make Directory Recursive mkdir -p

On occasion, like when working with ZendFramework, you may want to build a directory tree. Did you know you can build a recursive directory tree? Here’s how: mkdir normaly works like this:

To build a directory and another directory inside of it you can do the following:

You can even make a grandchild… Read more How To Make Directory Recursive Command Line Make Directory Recursive mkdir -p