As wordpress is probably the most used php script on Internet, it represents one the the hackers favorite target. Each security issue get known really easy, exposes sometimes even the sites having the latest updates.
One known issue in Worpress is the fact that it exposes the internal path when a warning or error message is displayed. This is a functionality inherited from php and wordpress developers don’t consider it an issue. In this post we’ll check how this works and how we can disable it.
In this tutorial, I’m going to tell you how to upload file in PHP. A very useful aspect of PHP is its ability to manage file uploads to your server. Here are the two steps to do this: Upload-File Form in HTML Before you can use PHP to manage your uploads,… Read more »
This post contains a little php snippet to search and retrieve the latest tweets from twitter. The documentation for twitter search function is available here and here:
$q = $_GET["q"]; // query string
$request = "http://search.twitter.com/search.json?q=".urlencode($q);
$response = file_get_contents($request);
$jsonobj = json_decode($response);
if($jsonobj != null)
foreach($jsonobj->results as $item)
For me it happens pretty other to have to validate if a text string is in English or to detect the language. Most of the algorithms are based on the probability of appearance of sequences of letters. For example the sequence of letters “the” is more frequent in English than… Read more »