Web Design

Explore the principles of web design

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

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

Where is httpd.conf file?

Looking for Apache 2 web server configuration file httpd.conf? The httpd.conf directory may be found in different directories depending on which linux flavor you are using. ( Red Hat, CentOS, Ubuntu and XAMPP, Mac OS X). httpd.conf location for each operating system: Operating System / Linux Distro httpd.conf Location CentOS 5.2 /etc/httpd/conf/httpd.conf CentOS 5.3 /etc/httpd/conf/httpd.conf… Read more Where is httpd.conf file?

drush cc Not Showing All Options (only showing 2 options cancel and drush)

Trying to clear your Drupal site chache with drusch cc or drush cc all? Drush should out put a list in response that looks like this:

But instead, you may see something that looks like this:

Chances are you are not in the document root of the Drupal site on which you are… Read more drush cc Not Showing All Options (only showing 2 options cancel and drush)

Drupal: How to solve Warning: file_put_contents The file could not be created

Sometimes when migrating or setting up a local development site you may run into an error that looks like this:

Likely the Drupal temp directory isn’t writable. An easy fix for this is to navigate to /admin/config/media/file-system and enter the correct temporary directory or if you’re not sure what it should be, then delete… Read more Drupal: How to solve Warning: file_put_contents The file could not be created

Linux: Which command

The “which” command will reveal the absolute path of the executable file called when issuing a command. The linux which command is useful in determining if you may need to add a path to your $PATH variable in your ~/.profile file in order to be able to issue the command.

The above example echos… Read more Linux: Which command