With last week's announcement of RC4, the final release of PHP 5.3 is imminent. So what can we expect in this version? Here I'll outline the biggest and most interesting changes and additions. This is definitely not exhaustive since there are tons of minor changes and improvements in this version, but these are some of the ones I found interesting.
Namespaces
Namespaces are a way to separate classes and functions to avoid naming collisions. Using namespaces prevents problems with using classes with the same name but different functionality. You can declare a namespace using the namespace keyword. You can also use the use keyword to set the namespace for all future calls to classes or functions without specifying the path each time.
PHP Manual on Namespaces
MySQL Native Driver
PHP 5.3 comes with a native MySQL driver designed specifically for PHP called mysqlnd, replacing the external libmysql driver. This should increase performance with MySQL functions.
PHP Manual on the MySQL Native Driver
Class Constants
It is now possible to declare constants within the context of a class. You declare constants the same way you declare normal variables, except you use the const keyword.
PHP Manual on Class Constants
Late Static Bindings
Late static binding causes static calls to methods within a class to use the latest version of that method if it was overridden. To use this, you use the static keyword instead of self. It's best shown as an example, which you can find at the link below.
PHP Manual on Late Static Bindings
The goto Operator
An interesting addition to the PHP language is the goto operator, which allows you to jump to a named section of you code to start executing. You name a section with a label followed by a colon (section:) and you move to it using goto followed by the label (goto section;). This might be useful in some very strange circumstances, but it should probably be avoided.
PHP Manual on goto
Other Points of Interest
* Native support for the math functions: asinh(), acosh(), atanh(), log1p(), and expm1()
* Pixelation support using the GD imagefilter() function
* Blowfish and extended DES support for crypt()
* Deprecated all ereg_ functions (use PCRE preg_ functions instead)
* SQLite3 support
* Several new classes and methods
* Much more...
Security should be a top concern throughout the development of any PHP web application. There are some very simple measures you can take to protect your application from potential abuse. This post will cover some of the basics of PHP security. For more detailed explanations of good security practices, check out the PHP Security Guide.
I do not consider myself a PHP security expert, but these are things that every developer should know. Also keep in mind that security is a process and not a result.
1. Input Filtering
Assume everything is dirty until proven clean. Filtering all data from external sources is probably the most important security measure you can take. This can be as easy as running some simple built-in functions on your variables.
When it comes to accepting user input, never directly use anything in $_GET or $_POST. Check each value to make sure it is something expected and assign it to a local variable for use.
The first basic truth you need to learn about SEO is that search engines are not humans. While this might be obvious for everybody, the differences between how humans and search engines view web pages aren't. Unlike humans, search engines are text-driven. Although technology advances rapidly, search engines are far from intelligent creatures that can feel the beauty of a cool design or enjoy the sounds and movement in movies. Instead, search engines crawl the Web, looking at particular site items (mainly text) to get an idea what a site is about. This brief explanation is not the most precise because as we will see next, search engines perform several activities in order to deliver search results – crawling, indexing, processing, calculating relevancy, and retrieving.
First, search engines crawl the Web to see what is there. This task is performed by e piece of software, called a crawler or a spider (or Googlebot, as is the case with Google). Spiders follow links from one page to another and index everything they find on their way. Having in mind the number of pages on the Web (over 20 billion), it is impossible for a spider to visit a site daily just to see if a new page has appeared or if an existing page has been modified. Sometimes crawlers will not visit your site for a month or two, so during this time your SEO efforts will not be rewarded. But there is nothing you can do about it, so just keep quiet.
Search Engine Optimization (SEO) is often considered the more technical part of Web marketing. This is true because SEO does help in the promotion of sites and at the same time it requires some technical knowledge – at least familiarity with basic HTML. SEO is sometimes also called SEO copyrighting because most of the techniques that are used to promote sites in search engines deal with text. Generally, SEO can be defined as the activity of optimizing Web pages or whole sites in order to make them more search engine-friendly, thus getting higher positions in search results.
One of the basic truths in SEO is that even if you do all the things that are necessary to do, this does not automatically guarantee you top ratings but if you neglect basic rules, this certainly will not go unnoticed. Also, if you set realistic goals – i.e to get into the top 30 results in Google for a particular keyword, rather than be the number one for 10 keywords in 5 search engines, you will feel happier and more satisfied with your results.
Berikut cara mempercepat kinerja Firefox :
1. Pada Address Bar. Anda harus mengetik “about:config” lalu jalankan dengan cara menekan Enter
2. Cari ke bawah tulisan “browser.tabs.showSingleWindowsModePrefs ”, lalu atur settingannya menjadi True
3. Cari lagi tulisan “network.http.pipelining”, lalu atur settingannya menjadi True.
4. Cari lagi tulisan “network.http.pipelining.maxrequests&rdq uo;, lalu ubah angkanya yang muncul di Pop-up menjadi 60, lalu Enter (OK).
5. Lalu tutup atau restart Firefox Anda kemudian nikmati hasilnya.
6. Cara lain adalah dengan menggunakan add-on yang terdapat pada Firefox, namanya “Fasterfox”. Setelah meng-instal, bisa langsung di-restart.
sumber : beritanet.com

