» » PHP » page 3

 
Sort articles by: Date | Most Rates | Most Views | Comments | Alphabet

PHP + jQuery + Ajax multiple image upload example

Author: bamboo06 on 11-11-2014, 02:03, views: 20543

2 Today I have to share is not refreshing the page under the premise of using PHP + jQuery + Ajax multi-picture upload results. Users only need to click to select the picture you want to upload, and then the picture is automatically uploaded to the server and displayed on the page.
PHP + jQuery + Ajax multiple image upload example

In this paper we use an Ajax form submission plugin: jqery.form.js, have an expert to modify a few lines of code and renamed: jquery.wallform.js, directly used.

Category: PHP Scripts / Javascript

 

Use PHP + jQuery to achieve flap Sweepstakes

Author: bamboo06 on 8-11-2014, 04:11, views: 5872

6 There in a television program called the flap a lottery sweepstakes form for the time being, there is a stage wall, wall to place several large squares, host or sweepstakes who opened the box corresponding to announced the winning results. Similar lottery form can also be applied in the WEB, this article will use PHP + jQuery for you to explain how to achieve the flap lottery program.
Use PHP + jQuery to achieve flap Sweepstakes

Draw flap implementation process: Front page offers six squares, followed by the numbers 1-6 represent six different squares, when the draw clicks six squares in a one time, flip to the back of the box to show the winning lottery information. A seemingly simple procedure, but contains a lot of knowledge WEB technology, so the reader of this article should be proficient jQuery and PHP knowledge.

Category: PHP Scripts / Javascript

 

Use jQuery + PHP + Mysql to achieve lottery program

Author: bamboo06 on 8-11-2014, 03:41, views: 11285

6 Lottery program widely used in real life, due to the different application scenarios draw the way they are varied. This article will use examples to explain how to use jQuery + PHP + Mysql achieve a similar TV with a simple common lottery program.
Use jQuery + PHP + Mysql to achieve lottery program

In this case the lottery program to achieve massive phone numbers from a random sample of a number as the winning numbers, lottery multiple times, was drawn numbers will not be drawn again. Lottery process: Click the "Start" button, the program get number information, scroll the display number, click on the "Stop" button, the number stops rolling, then the number is the winning number is displayed, you can click the "Start" button to continue the draw.

Category: PHP Scripts / Javascript

 

jQuery + PHP dice Sweepstakes

Author: bamboo06 on 8-11-2014, 02:46, views: 5151

3 In this paper, Monopoly game as the background, the integrated use of jQuery and PHP knowledge, designed to throw the dice points to achieve the effect of the draw, of course, lottery probability is controllable, developers can use this example to some modifications to the site the raffle scene.
jQuery + PHP dice Sweepstakes

HTML
First, we need to prepare two dice and prizes clips. We will write the html page in the following html structure of the code, .wrap used to place the dice and message, # prize is used to place the prize.

Category: PHP Scripts / Javascript

 

Use PHP to analog logging in and accessing to data

Author: bamboo06 on 8-11-2014, 01:24, views: 2130

4 cURL is a powerful PHP library, using PHP's cURL library can be simply and efficiently crawl the web and collect content, set the cookie to complete the simulation login page, curl provides a rich set of functions that developers can get more from the PHP manual About cURL information. In this paper, the simulation Login Open Source China (oschina) as an example, and share cURL use.
Use PHP to analog logging in and accessing to data

PHP's curl () in terms of efficiency crawled pages is relatively high, and supports multi-threading, and file_get_contents () would be slightly more efficient, of course, need to open when using curl under the curl extension.

Category: PHP Scripts

 

Commonly used tags regex for PHP filter

Author: bamboo06 on 5-11-2014, 02:20, views: 3626

10 In php projects, often use to label some filtering regular expressions, collections for spare.
Commonly used tags regex for PHP filter

Category: PHP Scripts

 

Use PHP to deal with string encryption and decryption

Author: bamboo06 on 5-11-2014, 01:37, views: 2869

2 Sometimes we need to project a specific PHP information is encrypted, encrypted string that is generated by an encryption algorithm, the encrypted string can be decrypted by the decryption algorithm, to facilitate the decrypted program information is processed.
Use PHP to deal with string encryption and decryption

The most common applications in the user login, and some API data exchange scenarios.
I included some of the more classic PHP code encryption and decryption functions for everyone to share. Cryptographic principles generally through some encryption and decryption algorithms, the key is added to the algorithm, encryption and decryption finally get results.

Category: PHP Scripts

 

Use PHP generate a unique membership number

Author: bamboo06 on 4-11-2014, 03:55, views: 10312

40 When we want a huge number of data, while the median number have restrictions, such as license plate numbers 5, 10 of a document number, serial number of orders, short URL, etc., we can use the 36-ary calculated not repeat the numbers in line with the median.
Use PHP generate a unique membership number

We will use 0-Z (0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ) to represent the values ​​0-35, such as the letter Z represents 35. So I want to get a five numbers, the greatest amount of information is 36 5 th, and 36 ^ 5 = 60,466,176, which is equivalent to the maximum number of five decimal numbers: 60466176.
In order to do presentations in this article, we assume that a group of 10 paid a club membership number, membership number by three city ID card encoding +2 +5 bit checksum components. City number with area code indicated as 755 representatives of Shenzhen, five card numbers from card number consisting of 36 hexadecimal, followed by two check code is generated by a certain algorithm is able to use the checksum to verify the card number legitimacy. In this case, we generate 10 card number corresponds to the maximum to meet the 60 million membership number, and is not repeated unique card number.

Category: PHP Scripts / Javascript

 

Get memory usage by PHP

Author: bamboo06 on 2-11-2014, 03:06, views: 2610

3 Use cPHP built-in function memory_get_usage () to return the PHP script is currently assigned to the amount of memory, in bytes (byte). In the WEB actual development, these functions are useful, we can use it to debug PHP code performance.
Get memory usage by PHP

memory_get_usage () function returns the memory usage, memory_get_peak_usage () function returns the memory usage peaks, getrusage () returns CUP usage. But one thing Please note that you need to run on Linux in these functions.

Category: PHP Scripts

 

8 nice looking freelancer clone php scripts

Author: bamboo06 on 31-10-2014, 23:40, views: 5740

19 Getlancer - Freelancer Clone
8 nice looking freelancer clone php scripts

Agriya’s Getlancer is the remarkable freelancer clone script which is competently offering all the beneficial and key features of many leading freelancing websites like freelancer.com, Elance, oDesk and guru. It assists the entrepreneurs to bring their excellent website like freelancer within a few days. This script also appends many fresh and significant features like simple bidding system, dispute management system, internal messaging system, project milestones, escrow system, admin dashboard and many other interesting features for the smooth functioning of your website working as freelancer management.

Category: PHP Scripts