
MC invalid lines

MC valid lines
If go to the Linux web server from Windows box using Putty terminal, some times you can see strange effect after GNU Midnight Commander (MC) start. MC window doesn’t show valid pseudo-graphics symbols which it uses for boxes and lines drawing. Look on example at the screenshot from the left. To make this visual presentation valid,

PHP-MySQL
There are advanced and comfortable tools to manage your MySQL databases. For example:
But sometimes you can not use those tools and need the ability to execute some SQL script on server by your own hands, easy and fast way. What to do in such situation? Use this PHP code to execute all SQL commands from SQL script text file, one by one:

WordPress for Joomla
Recently I setup and tuned
CorePHP WordPress for Joomla component for one of my clients site. It is the
TopPhoneShop.com
One task I had to resolve was to show all posts of the selected author if visitor click on the author name. I used WordPress
the_author_posts_link() function to get the URL to the author archive page.
It returned
www.yoursite.com?authour=nnn
URL instead of search engine friendly (SEF) permalink. In order to change that I use the way I was found at
codex.wordpress.org.
In order to setup the author permalink instead of
?authour=nnn I placed this code to the end of functions.php file at WordPress default used theme folder:

Your own php erorrs log
In case you are not able for some reasons to setup PHP error log through php.ini settings you can use this code to setup your own PHP error handler and thus write needed PHP errors/event into your own log file:

display_errors OFF
Some shared hosting providers don’t turn off php error showing by default. If you don’t change this default PHP configuration settings too, your blog has vulnerability issue or even security problem. Why I talk about security problem? Be cause of this can lead to exposure of the absolute path to your WordPress blog installation. Let’s check together. Put this little script into your blog root folder, for example name it phpinfo.php:
Call it from the browser as http://yourBlogURL/phpinfo.php
You will see standart ‘PHP Info’ page with values of different PHP configuration parameters. Check display_errors parameter value under ‘PHP Core section’ now.