ehrecvr.exe is a hidden process of ms windows media center for additional multimedia functions.

PHP get page title function

PHP's get_meta_tags function can extract meta-description, meta-keywords etc but cannot find title of the page. Therefore I use following function to catch title of a remote url or a local xhtml file.

function get_page_title($url){

	if( !($data = file_get_contents($url)) ) return false;

	if( preg_match("#(.+)<\/title>#iU", $data, $t))  {
		return trim($t[1]);
	} else {
		return false;

.htaccess examples

redirect url with parameters

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{QUERY_STRING} url_get_parameter_1=(.*)&url_get_parameter_2=(.*)
RewriteRule ^your/old/directory/file$ your/new/path/%1/%2 [R=301,L]

This code redirects :


Force files to download (not be displayed in client/browser)


Pop-up menu items go behind flash .swf object

If your dynamic html menu items go behind flash object and stay invisible add this parameters to your flash code.


Example code for transparent flash object:

Where can I sell my digital photos?

I am not a professional photographer but I want to sell some pictures online. I have no experience and I dont know where to start. I also dont know what are the requirements.

Where can I sell my photos?

How does it works?

Can I use normal digital cameras for digital photography? ie something around 5megapixel, 5mpx, 7mp etc.

How can I protect my images that not beeing stolen.

What kind of photos are the bestseller?

Search only in .php files under linux

Sometimes we need to search in only .php, .inc, .txt or template files for a string. Search can take very long time if there are thausend of files or GB-sized files(logs, xml/csv data etc). We can ignore all other files with a find-grep combination and save performance.

find /home/USERNAME -name *.php -exec grep -l 'MYSTRING' {} \;

Drupal problem with inline style <p style=""> and <br />

If your users can not add inline style attributes to your allowed html tags, just create a new role like superuser etc and let this role use full-html. Do not give access to untrusted to use this role. Add <br> to allowed tags and use <br> instead of <br />.

CuteFTP or FTP Client lists just 1998 / 2000 files

If your ftp-software does not display more than 1998 file names (2000 with symbolic links), you must change config file of Pure-FTP and restart ftpd. Use a ssh-client , recommend Putty.

[ssh] pico -w /etc/pure-ftpd.conf

# 'ls' recursion limits. The first argument is the maximum number of
# files to be displayed. The second one is the max subdirectories depth

LimitRecursion 2000 8

# Are anonymous users allowed to create new directories ?

AnonymousCanCreateDirs no

Change this to something like LimitRecursion 20000 20 etc.

Syndicate content is a free online community for webdevelopers and beginners. Anybody can share their code, articles, tips, tutorials, code-examples or other webdesign related material on the site. Newbies can submit their questions and reply to existing questions. CW does not guarantee or warrant reliability of code, data and information published on the site. Use the site on your own risk. The site takes no responsibility of direct or indirect loss or any kind of harm to its users. The site also doesn't take responsibility of infected files or source code with any kind of infection or viruses, worms, spywares, malwares, trojan horses. CW reserves the right to edit, move, or delete any of content for any reason.