PHP
I share my Timer class with you. This is an easy to use class. If you use this you will never have to think about the way of execution time measuring.
You can read about two popular thumbnail generating methods in this article. The first method requires GD library. If you select the other way you need Imagick which is a native php extension to create and modify images using the ImageMagick API. Let's see the code!
Sometimes you need all public properties of an object. I've also met this problem. I tried to find some usable native function on php.net, but the only native solution is the ReflectionProperty class. I think It claims too much resource. I've written an own function that has solved this issue.
Let's see the function
/**
* It gets all public properties of given $object.
* @param object $object It must be object.
* @return array that contains all public property name as key and their values. example:
I've made a CAPTCHA system what is ease of use for any PHP website. This is a full object oriented class library. Ease of use and ease of customisation. Try it! Feel free to download and use it. Please leave a comment.
Features
- Very minimal software requirements
- Ease of customisation (parameters or class extending)
- Full object oriented library
- One file one class
Publish your source code on web with colour syntax highlighting.
For example: How to send correct UTF-8 mail in PHP
This article is contain a PHP code what is syntax highlighted and all PHP function is link to PHP documentation. This code is more understandable, and more readable than simple colourless version.
How to set syntax highlighting on your website?
Google dont't like indexing a duplicated content. Have you got more domains that point to the same content? Is your site available at www and non-www version of the domain? (example: www.bitprison.net and bitprison.net point to same content) More domain point to my blog: bitprison.com, bitprison.net, bitprison.org and bitprison.hu. I need a solution for avoid duplicated content. I've chosen 301 redirection that google recommends for webmaters in case of duplicated content. It may help Google to determine PageRank for your site more accurately.
Now I'm sharing with you two ways of redirection.
Here is a simple UTF-8 mail sender function. This function also encode subject and plain-text message to UTF-8. If you need HTML mail sender, change the code in line 4 from text/plain to text/html, but this function is usable the most cases without any modification. I've used this function for webform and other web based mail notification.
