local folder permissions vs chown — security considerations

Wp-content contains plugins and themes. So, if I can read and write into those files, I could add malicious code very easily. This malicious code can then do interesting things. You are basically inviting a lot of trouble. As for not understanding permissions: http://www.thegeekstuff.com/2010/04/unix-file-and-directory-permissions/ http://codex.wordpress.org/Changing_File_Permissions

issues including a file from a plugin directory

The function plugin_dir_path has an misleading name, it doesn’t include a file from plugin directory, it just include a file from the same directory of the file passed as argument. When you call include( plugin_dir_path( __FILE__ ) . ‘test-plugin/needed_file.php’); from a file in theme directory, you are just trying to include a file from theme … Read more

How to copy one folder to another folder recursively

You can make use of the Filesystem API, especially the copy_dir() function – source – does seem to be what you are looking for. Take a look at the docblock from the above source link for a little bit more information: /** * Copies a directory from one location to another via the WordPress Filesystem … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)