SEARCH KEYWORD -- php

Copy and paste the following code blocks into your site and replace '<url>' with the link you want to Share.Text link:<script>function fbs_click() {u=location.href;t=document.title;window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');return false;}</script><a rel="nofollow" href="http://www.facebook.com/share.php?u=<;url>" onclick="return fbs_click()" target="_blank...

Sometimes if we want to run MySQL but we don't have phpMyAdmin installed. What should we do?On Windows we can run MySQL in following steps:Open Console Window->Type "mysqld -u root". This means we start the mysql server with username root. This program will handle all the communications between our console window and the actual data;After starting the server, we need to use a client to connect to the server and communicate with it. the mysql program is right for this. Next in the command cons...

Frequently in our web applications, we may have many records in the database to display. In order to imrpove loading speed and efficiency, we may need to display some records at a time, so we need to paginate the records. For example, if we have 1 million book records and when users want to view the book list, it's inefficient to display all the records on the same page, we may need to have some pagination to allow displaying a portion of the records such as 20 records per page. This is a simple...

buffer is one piece of memory section, it is usually 4Kb in Linux. It is mainly used between different devices with different speed or different priorities. With buffer, the waiting time between different processes will be reduced. Here is one simple example, when you type something in a text editor, every time when you type a character, the operating system will not write it to the disk directly, instead it will write it to buffer first When the buffer is full, the data in the buffer will be wr...

It’s easy to make asynchronous calls in PHP with
just a little bit of HTTP header knowledge and some library code around
PHP sockets.
This technique is useful when posting requests to your own server for
bits of logic you’d like to run in the background. If you don’t
control the endpoint, you might not be comfortable with some of the
limitations, such as the inability to read anything from the response.
So, you couldn’t post data to a webservice and receive...

The ECMA committee is working hard on designing the next version of JavaScript, also known as "Harmony". It is due by the end of next year and it is going to be the most comprehensive upgrade in the history of this language. Chrome and V8 are committed to pushing JavaScript forward and have already started implementing the new features. You can try some of them today in the latest dev channel release. Here’s a summary:
Lexical scoping. Now "let" is the new "var" – traditional "var...

Did you know that we have a nice collection of puzzles here on less
than dot? Some are harder than others so there is something for
everyone. You can pic any language you want, you will see that there are
solutions in Ruby, Python, Visual Basic, SQL, JavaScript, C++ and
other.
Here is a partial list of what we have
Friday the Thirteenths
The goal is to identify all friday the thirteenths for a given timeframe
Regular Pentagon
Given a grid co-ordinate (x,y) as the centre point of a regu...

I read a rather interesting post yesterday called PHP: a fractal of bad design.
It's been getting a lot of traffic among the PHP community lately
because it's rather inflammatory. But to be honest, it does make a lot
of really good points. It also makes a lot of mistakes and misses a
bigger picture.
A Few Mistakes
The post makes quite a few mistakes and odd apples to oranges comparisons. Let me point out the major ones that I saw.
No Debugger - PHP has xdebug which works quite...

PHP is widely used for various of web development. However, misconfigured server-side scripting would create all sorts of problem. And here are php security best practices that you should aware when configuring PHP securely. Nowadays most of the web servers are operated under Linux environment (like: Ubuntu, Debian...etc). Hence, in the following article, I am going to use list top 10 ways to enhance PHP Security Best Practices under Linux environment.
My sample setup for PHP Security Tips:
D...