Code Injection prevention – user names

Code injection is where a malicious user uses a text box to add HTML that they’ve written to your webpage. … Continue reading

Posted in Analysis, security | Comments Off

301 is the right number for permanent dynamic redirect

Use a server-side 301 redirect if you need to change the URL of a page as it is shown in … Continue reading

Posted in .htaccess, HTML, php | Comments Off

Rename repos won’t help unless extension renamed

You try to install specific php package from the default repo, but because of package dependencies yum provides another package … Continue reading

Posted in centos, php, web server | Comments Off

Yum is very usefull command

CentOS has yum – very useful command for package management. Usage: yum [options] COMMAND List of Commands: check Check for … Continue reading

Posted in centos, linux | Comments Off

WordPress rewriting rules

Posts in WordPress do have excellent support for rewriting rules and for saving the old slugs automatically. We wrote about … Continue reading

Posted in .htaccess, php, regex | Comments Off

Regular Expression teach class

IN PHP regular expression there can be two types. Posix and PERL. Similar but let’s use PERL syntax, because PERL … Continue reading

Posted in php, regex | Comments Off

Creating mp4 videos using recordmydesktop on CentOS

On CentOS I have great program recordmydesktop that creates videos in native ogv format. I use the ffmpeg tool to … Continue reading

Posted in centos, linux | Comments Off

YouTube video duration pattern matching

You need to get the YouTube video duration in seconds. Here is a little pattern matching function that can help … Continue reading

Posted in wordpress, youtube | Comments Off

Connecting two Linux computers via LAN network to share folders

Most natural way to connect two Linux computers to share folders would be the SSH protocol. In case you don’t … Continue reading

Posted in centos, linux, security, Tips and tricks | Comments Off

css selectors

  Selector Example Example description CSS .class .intro Selects all elements with 1 #id #firstname Selects the element with id=”firstname” … Continue reading

Posted in Analysis, css | Comments Off

Disable trackbacks

WordPress is capable to receive and send pings/trackbacks from and to other sites. The difference between pings/trackbacks is: trackbacks are … Continue reading

Posted in database, wordpress | Comments Off
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14