Skip to main content
CafeWebmaster

Main navigation

  • Tools
    • MD5 converter
    • SHA1 converter
    • Base64 encode
    • Base64 decode
    • HTML entities encode
    • HTML entities decode
    • Raw url encode
    • Raw url decode
    • UTF8 encode
    • UTF8 decode
    • Unix Time to Human Date converter
    • Remove duplicate lines
    • Sort text lines
    • Backwards - Mirrored Text
    • PiRaTe tExT
    • Your IP Address & Hostname
  • Forums
  • Free PHP Scripts
    • Image watermark with PHP
    • Page generation time with PHP
  • CSS
    • CSS hidden left menu
    • CSS horizontal menu
  • Free Fonts
  • Image Editors
  • Tutorials
    • Check password strength / safety with PHP and Regex
    • Cómo hacer que su sitio web popular!
    • How2 make a website popular
    • How2 secure your website
    • Kennwort Sicherheit mit PHP und Regex Prüfen
    • Page generation time and http-referrers with php
    • Redirect webpages with HTML, PHP, .htaccess, Java+Script, CGI-Perl, ASP.NET and ColdFusion
  • New
User account menu
  • Log in
By rex, 31 December, 2011

search for files and create an archive with them (tar,find,linux)

  • Read more about search for files and create an archive with them (tar,find,linux)
  • Log in to post comments

create a tar file with all your mp3 files

tar cvf mp3.tar `find / -name *.mp3`

By Anonymous (not verified), 5 December, 2011

#1045 Cannot log in to the MySQL server (PhpMyAdmin 2.4.8)

I have just installed new phpMyAdmin (version 3.4.8). There is no password for mysql root user. But I coudnt login and got this error:

#1045 Cannot log in to the MySQL server

Reason is: Missing blowfish string and config file.

The solution:

- change config.sample.inc.php to config.inc.php
- put some text for $cfg['blowfish_secret'] on line 17.

change

$cfg['blowfish_secret'] = ''; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */

to

$cfg['blowfish_secret'] = 'sdghwkglsdkhuRandomTEXToituwetu45z'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */

  • Read more about #1045 Cannot log in to the MySQL server (PhpMyAdmin 2.4.8)
  • Log in to post comments
By Anonymous (not verified), 12 October, 2011

[warn] [client 1.2.3.4] mod_fcgid: HTTP request length 137744 (so far) exceeds MaxRequestLen (131072), referer

As I want to add a forum entry I got Apache's 500 server internel error. i tried to change .htaccess, php-conf etec but no success.

Error was: [warn] [client 1.2.3.4] mod_fcgid: HTTP request length 137744 (so far) exceeds MaxRequestLen (131072), referer: http://example.com/node/add/forum/1

After a research check error-logs of virtual host I found that /etc/apache2/mods-available/fcgid.conf must be changed.

I added following directive:

MaxRequestLen 157286400

  • Read more about [warn] [client 1.2.3.4] mod_fcgid: HTTP request length 137744 (so far) exceeds MaxRequestLen (131072), referer
  • Log in to post comments
By Anonymous (not verified), 23 September, 2011

300 Websites WorldWide with Google Pagerank 9

PageRank is a website analysis algorithm of Google with the purpose of "measuring" its relative importance to other websites on the web. After Google's new search alghoritm "Panda" it is getting less importance while sorting search results.

Nearly 300 domains -with PR9- listet alphabetically:

1malaysia.com.my
aacsb.edu
amazon.com
andreasviklund.com
apache.org
apple.com
arwu.org
auf.org
baic.gov.cn
baidu.cn
baidu.com
basbakanlik.gov.tr
bbc.co.uk
beniculturali.it
berkeley.edu
bigtennetwork.com
bireme.br
bl.uk
bloglines.com
bmbf.de
bne.es
bnet.co.uk
bnet.com

  • Read more about 300 Websites WorldWide with Google Pagerank 9
  • Log in to post comments
By Anonymous (not verified), 23 September, 2011

Mysql: update weight by an auto-incremented string created on the fly

I had a problem with Drupal6 by sorting tags. Mysql can sort or place some non-ascii letters correctly but PHP can not.

Example: I have a list of cities and I want to sort them by first letter. I want that "ívori" and "îwata" beeing listet with "Ibiza" under "i". PHP places both ívori and îwata after Z. To prevent this I update "weight" manually with mysql and sort them by weight instead of alpha.

select @my_temp_counter:=0;
update `term_data` set weight = (@my_temp_counter:=@my_temp_counter+1) order by name;
  • Read more about Mysql: update weight by an auto-incremented string created on the fly
  • Log in to post comments
By Anonymous (not verified), 9 September, 2011

List of Domains with Google PageRank 10

Google updated Pagerank database in august 2011. Here is a list of top 10 Domains with Google PageRank 10.

google.com

facebook.com (social media)

cnn.com (us-american news company)

addthis.com (social bookmarking script)

miibeian.gov.cn (Chinese Goverment)

gmodules.com (a service of Google)

usa.gov (US Goverment)

hhs.gov (US-Department of Health and Human services)

unesco.org

piwik.org (PHP-Mysql based real time web analytics software, open source alternative to Google Analytics)

  • Read more about List of Domains with Google PageRank 10
  • Log in to post comments
By Anonymous (not verified), 7 July, 2011

CSS hierarchy and inline style sheets

I have a problem with inline stylesheets. I like to use inline style sheets instead of using css code in head section of an html page or an external .css file.

Example:


But I have a problem when I want it to ffect just a part of subelement and not other paralell elements.

Example 2:


    • ...

I want to my third-level "ul" have border but second-level not. I can do it with css code like this:

div ul { border: none; }
div ul li ul { border: 1px solid red; }

  • Read more about CSS hierarchy and inline style sheets
  • Log in to post comments
By Anonymous (not verified), 19 June, 2011

MD5 / SHA1 Checksum of a Folder - Directory

I want to be sure than nobody changed any file in my www directory. To do this I want to create a md5 or sha1 checksum of whole folder. Is it possible and if yes how? Thanks a lot!

  • Read more about MD5 / SHA1 Checksum of a Folder - Directory
  • Log in to post comments
By Anonymous (not verified), 1 June, 2011

Remove a photo-file from Lightbox of Istockphoto

Can anyone tell me how can I remove a photo or video file from Lightbox of Istockphoto without clearing all? I can see just one option and it is : clear all!

  • Read more about Remove a photo-file from Lightbox of Istockphoto
  • Log in to post comments
By Anonymous (not verified), 27 April, 2011

Print Screenshot of one monitor while using dual-monitore system

I am using an i7 box with dual monitore: HP Compaq and Samsung. I want to get screenshot of the right monitore which is vertically placed. If I press on "print" key I get a wide screenshot of both monitors.

My first monitore is placed horizontally and has a width of: 1920x1200px

Second one: 1200x1920px

When I press on PRINT I get an image :

3120x1920px

To get active monitor: ALT + PRINT

  • Read more about Print Screenshot of one monitor while using dual-monitore system
  • Log in to post comments

Pagination

  • First page
  • Previous page
  • Page 1
  • Page 2
  • Page 3
  • Page 4
  • Current page 5
  • Page 6
  • Page 7
  • Page 8
  • Page 9
  • …
  • Next page
  • Last page
CafeWebmaster.com(CW) 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.