Archive for the ‘Development’ Category

if php expert editor slows down

If your PHP Expert Editor software (author: Ankord Development group) gets very slow, most probably the issue is caused by the fact that there are too many cursor positions remembered in the configuration file of php expert editor. Php expert editor saves current cursor position for every file you open in php expert editor. All […]

Leave a Comment

concrete5 – cms of the future?

Some time ago I found concrete 5 among the featured products on SF. I was quiet interested in trying that software. Starting with you. The archive of the latest version is just 3MB (usually heavy cms software takes much more space). The software is released under friendly MIT license and that is good for developers […]

Comments (3)

replace substring in mysql fields

Any webmaster face with a problem when he or she needs to change something due to updated details, for example, SKU#, phone number, or anything else that has been renamed and the change should be done in appropriate mysql table fields. Of course, you can open phpmyadmin and edit records one by one, but why […]

Leave a Comment

how to make 301 redirect

Assuming you want to forward old traffic from old domain olddomain.com to new domain newdomain.com, use the following .htaccess file: <IfModule mod_rewrite.c> RewriteEngine On Options +FollowSymLinks RewriteBase / RewriteCond %{HTTPS} on RewriteCond %{HTTP_HOST} ^(www\.)?olddomain\.com$ [NC] RewriteRule (.*) https://www.newdomain.com/$1 [R=301] RewriteCond %{HTTPS} !on RewriteCond %{HTTP_HOST} ^(www\.)?olddomain\.com$ [NC] RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L] </IfModule>

Leave a Comment

mod_rewrite not working

I will be updating this post with issues about mod_rewrite and its resolution ways. 1. I’ve faced with the problem when I worked with denwer (dklab solution, author: Dmitry Koterov), the following .htaccess was not working and returned 404 error: RewriteEngine On Options +FollowSymLinks RewriteBase / RewriteRule ^something/(.*)$ script.php [L] How It was resolved: I […]

Leave a Comment

css vertical-align

Recently I faced with a problem trying to figure out how to make div content vertically aligned to bottom. I failed. The issue is that vertical-align doesn’t work for block elements. Workaround solution is to put the div content inside table and apply vertical-align to td: <div class="class"><table><tr><td>content</td></tr></table></div> .class table { height: 100%; } .class […]

Leave a Comment

how to remove padding in IE

Inexperienced XHTML integrator might get stuck with an IE problem when there is space appeared without any reasons. For example, it can happen if you create a small div block with little height: <div style=”height: 2px;background-color: green;”> It will not be 2px in IE. It will be more. Try this solution: <div style=”height: 2px;font-size:2px;line-height:1px;background-color: green;”>

Leave a Comment

How to learn php

Tips for php beginner I learned php basics in 2 weeks. More than 2 years passed since that time and I’m still learning php. So my first tip is «Don’t try to learn everything in php. You don’t need it to be sucessful php programmer.» Here is a short plan on how to start learning […]

Leave a Comment

minimal font size supported by browsers

Do you know that the minimal font-size that can be set in CSS and will be supported by Opera is 10px? I mean that font-size: 8px;,font-size: 9px; and font-size: 10px; will look in Opera the same. Not a good thing for a good browser I think. Firefox supports even 1px (of course, you’ll read nothing, […]

Leave a Comment

security issues with flash applications (swf)

Recently I faced with a problem: swf application didn’t work properly. I’ve done troubleshooting and found out that there are some security specifics in flash that block cross site scripting. A cool feature when you know about it and simply annoying when you don’t know anything about it. So here are some tips that might […]

Leave a Comment