Home » Archive

Articles in the PHP Category

PHP, Webmasters »

[22 Jul 2011 | One Comment | ]

A developer has created an application which will allow his users to represent their presence using the Yahoo! Status web service. Once the developer signs up for an OAuth API Key and Secret (provided by Yahoo!), they may access Yahoo’s OAuth API to establish the credentials used to access this data from Yahoo! Status. When a user interacts with the developer’s application, they are redirected to Yahoo’s authorization page, where they sign into their Yahoo! account, then grant the application access to their Yahoo! Status data. A user-authorized token is …


[22 Jul 2011 | No Comment | ]

Just wanted to show random records from MySQL database using PHP. There exits a hack to use RAND() function to fetch random table rows. The mysql query can be used for the below needs:

Random pictures from a image gallery
Show different results in PHP & MySQL

My SQL Query to pull random record
Note: the result with have only particular column, 3 indicates the number of rows.

Code to fetch and show random result in MySQL and PHP:
<!DOCTYPE html>
<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ />
<title>Random Gallery</title>



$sql=mysql_query(‘SELECT imageName,thumbnail,URL FROM …

PHP, Webmasters »

[12 Jul 2011 | 2 Comments | ]

I wanted a multiple file upload script in PHP server side for my website admin part, after search on Google I built my own code for file uploading with php script. it is easy to create multiple files uploading code with php.
Idea is simple to create upload folder dynamically and place the files in the server.


Entire code for PHP File uploading script:
Before running this script in Localhost or server create a folder named “upload_files” where the dynamic folder will be generated.
//Only if the form is submitted
if(isset($_POST['submit'])) {

//Create folder name with the submitted …