[ php ] 2011 september 19

PHP Code if(post_password_required() || (!comments_open() && is_page() && $app->post->getCommentCount() < 1)) return; Code Dissection 1. if — Statement . Conditional Statement. if statement – use this statement to execute some code only if a specified condition is true 2. post_password_required() — WordPress API post_password_required (line 558) Whether post requires password and correct password has been …

wordpress on debian howto

Installation 1. apt-get install wordpress 2. apt-get install proftpd 3. apt-get install mysql-server-5.1 Configuration file 1 #cat /etc/wordpress/htaccess # For rewrite rules needed for making WordPress URL friendly # See Options -> Permalinks for details and please use the defaults, # especially in mind when hosting several blogs on one machine! ## ## Configuration for …