How to creat PHP Login Script

Metal-php-login1

Learn to create a simple login system with php + mysql script, this tutorial is easy to follow, teach you step by step. Overview In this tutorial, we create 3 php files for testing our code. 1. login.php 2. checklogin.php 3. login_success.php Steps 1. Create table "members" in database "test". 2. Create file login.php. 3. Create file checklogin.php. 4. Create file login_success.php. 5. Create file logout.php STEP1: Create...

PHP: 4shared.com API wrapper

1. Fetch File Information There are two formats of 4shared.com's link download: Format 1: like: http://www.4shared.com/file/253231421/73f7da19(/GoodFellas.html)? http://www.4shared.com/file/246032259/f70f9982(/_online.html)? Format 2: like: http://www.4shared.com/video/ABBPbvS8(/Divided_Heart.html)? ()? meaning yes or no step 1 using regular expression to detect format of link: with format 1, fileID is 253231421 or 246032259 with format 2, we use API's function: decodeLink to find fileID $regexp = "/^http://(www.)?4shared.com/((file/(d+)/+)|(+/+))(/+)?$/"; Format 1: $url = "http://www.4shared.com/file/253231421/73f7da19/GoodFellas.html"; preg_match($regexp,$url,$m); var_dump($m); result: array(7) { => string(62) "http://www.4shared.com/file/253231421/73f7da19/GoodFellas.html" => ...

Getting data without risking death with PHP, CURL

ds-curlicon

Introduction PHP supports libcurl, a library created by Daniel Stenberg, that allows you to connect and communicate to many different types of servers with many different types of protocols. libcurl currently supports the http, https, ftp, gopher, telnet, dict, file, and ldap protocols. libcurl also supports HTTPS certificates, HTTP POST, HTTP PUT, FTP uploading (this can also be done with...