Archive for March, 2010
jQuery Simple WYSIWYG Editor
This is a simple WYSIWYG editor I described in another post but converted into jQuery plugin. It works quite fine in MSIE (even wersion 6) and Firefox. It has problems working with Opera- seems Opera lacks some features.
How to make a WYSIWYG editor in Javascript
In this post I will show you a very simple WYSIWYG editor I wrote. Basically speaking all the WYSIWYG functions are done by the browser (not by JS). JS is needed only to control what should be done.
Different browsers support different set of functions.
Wordpress Plugin- Redirect from post to somewhere else
This plugin allows you to redirect your visitor to any other place when he visits your post. When the post is shown on archive page the plugin doesn’t redirect to anywhere but instead shows link which visitor can click to go to that place.
Wordpress Plugin- Add rel=”nofollow” to links in posts in chosen categories
This plugin will add “nofollow” attribute to all links in every post in chosen categories. You can choose categories on the plugin’s setting page.
Parse error: parse error, expecting `T_PAAMAYIM_NEKUDOTAYIM’
I just got this error. After doing some googling I found an explanation in Wikipedia:
“In PHP, the scope resolution operator is also called Paamayim Nekudotayim, which means “twice colon” or “double colon” in Hebrew. It may be helpful to note that in some cases this error may occur when the $ symbol is not included in the use of a variable.”
How to test sending e-mails on WAMP?
Most of the websites I made are hosted on Linux based servers, but I develop them on Windows OS.
I use WampServer which comes with almost all I need- Apache, PHP and MySql. However it doesn’t come with any mail sending tool (the same case applies to other WAMP packages like KrasnalServ)…
How to get HTTP headers of any remote file?
Want to check Content-Type or Content-Length of a remote file without downloading whole file?
Then you should just request headers and not whole file from a remote server using HTTP protocol.
Here’s how to do this in PHP using fsockopen or cURL.
How to get a favicon of any website?
My application will at some point display a list of websites. Plain list looks boring, so I thought I need to display a favicon near every website.
Here’s a simple algorithm for getting a favicon.