Two identical wp-includes directories on server

This is not an “executable directory”. The x means something different for directories: The execute bit allows the affected user to enter the directory, and access files and directories inside Source Also the * doesn’t mean executable for directories hear as you might think if you’ve read that answer. Instead it is just a directory … Read more

Cant get wordpress to work on subdirectory

so @funkysoul was kind of right in terms on installing php. It was still a nightmare to setup nginx the way i needed it, my solution is: location / { try_files $uri $uri/ =404; } location ^~ /blog { alias /srv/www/wordpress; try_files $uri $uri/ /index.php?/$1 last; location ~ \.php$ { index index.php; include snippets/fastcgi-php.conf; fastcgi_param … Read more

Creating directory in uploads: mkdir vs wp_mkdir_p

There is not much a difference but, for wp_mkdir_p() we can only pass the full path to attempt to create a folder. It is recursive directory creation function which check for the file_exists() or not. And moreover we don’t need to pass the folder permission because it checks for the parent directory permission and sets … Read more

How is a student directory best handled in WordPress?

You could create a custom post type ‘student’, with post thumbnails for the images. The post title would be their name, post content would be the blurb. If the code scares you, there are plugins to assist. Taxonomies are also available to you, which operate like categories and tags, but can be any set of … Read more

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)