WeberDev.com PHP and MySQL Code

LOG IN
BEGINNER GUIDESPHP CLASSESCODE SEARCHARTICLES SEARCHPHP FORUMSPHP MANUALPHP FUNCTIONS LISTWEB SITE TEMPLATES
Start typing to search for PHP and MySQL Code Snippets and Articles Search
Submit a code Example / Snippet Join us on FaceBook
Submit a code Example / Snippet Submit Your Code
Poker Tournaments Poker Tournaments
Poker Guide for Developers Poker Guide for Developers
Search Engine Optimization Monitor SEO Monitor
Web Site UpTime Monitor UpTime Monitor
Your Personal Examples List My Favorite Examples
Your Personal Articles List My Favorite Articles
Edit Account Info Update Your Profile
PHP Code Search
Web Development Forums
Learn MySQL Playing Trivia
PHPBB2 Templates
Web Development Resources
Web Development Content
Internet Security Software
PHPClasses
PHP Editor
PHP Jobs
Vision.To Design
Ajax Tutorials
PHP Programming Help
PHP/MySQL Programming
Webmaster Resources
Webmaster Forum
XML meta language
website builder
פרייסז - הכח לקנות עובר לידיים שלך
Texas Holdem Poker Evangelists

Go Back Add a Comment Send this example to a friend Add this Article to your personal favoritest for easy future access to your favorite Code Examples and Articles. Submit a code example Print this code example.
BACK ADD A COMMENT SEND TO A FRIEND ADD TO MY FAVORITES ADD CODE EXAMPLES PRINT
Title : Import the yahoo address book.
Categories : PHP, CURL, Authentication Click here to Update Your Picture
Kailash Agarwal
Date : Apr 12th 2006
Grade : 4 of 5 (graded 12 times)
Viewed : 25043
File : 4365.php
Images : No Images for this code example.
Search : More code by Kailash Agarwal
Action : Grade This Code Example
Tools : My Examples List

Submit your own code examples  Submit your own code examples 
 

Here is the solution for yahoo address book import. Please send me a thanks mail if this code works for you. My Email ID is: kailashag@xponse.com

Script Utility: Import Yahoo Address Book.
Author Name: Kailash Agarwal.
Author Email: kailashag@xponse.com

<?
   
function yahoo_login($email_id, $password)
    {
       
//  Create URL
       
$url = "https://login.yahoo.com/config/login?";
       
$query_string = ".tries=2&.src=ym&.md5=&.hash=&.js=&.last=&promo=&.intl=us&.bypass=";
       
$query_string .= "&.partner=&.u=4eo6isd23l8r3&.v=0&.challenge=gsMsEcoZP7km3N3NeI4mX";
       
$query_string .= "kGB7zMV&.yplus=&.emailCode=&pkg=&stepid=&.ev=&hasMsgr=1&.chkP=Y&.";
       
$query_string .= "done=http%3A%2F%2Fmail.yahoo.com&login=$email_id&passwd=$password";
       
$url_login = $url . $query_string;
       
//  End Create URL
   
        //  Execute Curl For Login
       
$ch = curl_init();
       
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
       
curl_setopt($ch, CURLOPT_URL, $url_login);
       
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
       
curl_setopt ($ch, CURLOPT_COOKIEJAR, 'cookie.txt');
       
curl_setopt($ch, CURLOPT_HEADER , 1);
       
ob_start();
       
$response = curl_exec ($ch);
       
ob_end_clean();
       
curl_close ($ch);
        unset(
$ch);
       
//  End Execute Curl For Login
   
        //  Call Address Book Page Through Curl
       
$url_addressbook = "http://address.yahoo.com/yab/us";
       
$ch = curl_init();
       
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
       
curl_setopt($ch, CURLOPT_COOKIEFILE, "cookie.txt");
       
curl_setopt($ch, CURLOPT_HEADER , 1);
       
curl_setopt($ch, CURLOPT_URL, $url_addressbook);
       
$result = curl_exec ($ch);
       
curl_close ($ch);
        unset(
$ch);
       
//  End Call Address Book Page Through Curl
   
        //  Manuplate String
       
$result = preg_replace("([\r\n\t])", " ", $result);
       
$result = strip_tags($result);
       
$arr_result = explode(" ", $result);
   
       
$arr_filter = array();
        for(
$i=0; $i<sizeof($arr_result); $i++)
        {
            if(
strpos($arr_result[$i], '@') > 0 && strpos($arr_result[$i], '.') > 0)
            {
                if(!
in_array($arr_result[$i], $arr_filter, TRUE))
                   
$arr_filter[] = $arr_result[$i];
            }
        }
       
//  End Manuplate String
       
        //  Return Result Array
       
return $arr_filter;
       
//  End Return Result Array
   
}
?>



PHP Youtube Downloader - This is a set of PHP functions that can be used to download movies from Youtube.com.
Categories : PHP, CURL, Regexps
Using $PHP_AUTH_USER and $PHP_AUTH_PW to authenticate.
Categories : Authentication, PHP
Form Security - Match A Value For Success
Categories : PHP, Authentication, HTML and PHP, Sessions, Security
Function to remember password
Categories : PHP, Authentication, Personalization and Membership
what salt do I have to feed the crypt function with to make it work like the htpasswd command of apache?
Categories : Algorithms, PHP, Authentication
Validation function for LUHNMod10 and variant. Can discriminate credit card numbers of varying lengths. Uses [Double >> Sum-of-Digits] transform.
Categories : Credit Cards, Authentication, Ecommerce, PHP
Full membership authentication system.
Categories : Authentication, MySQL, PHP, Databases
PHP4 MYSQL Authentication Script with cookie. Short & Sweet
Categories : Authentication, Apache, Cookies, PHP, MySQL
Using Postgres and PHP3 Authentication from a Web application
Categories : PostgreSQL, HTML and PHP, Authentication, PHP
complete, simple, working example of a login screen/system using php functions, cookies, and a mysql database for begginers.
Categories : Authentication, Complete Programs, PHP, MySQL, Databases
A function to check if a URL exists
Categories : PHP, CURL, HTTP
Authenticator for Exchange Server LDAP
Categories : PHP, Authentication, LDAP, Security, Sessions
Using cURL to download a file programmatically.
Categories : PHP, PHP Extensions, CURL
phpSecurePages is a PHP module to secures pages with a loginname and password. It handles multiple user groups (each has own viewing rights), store data in a MySQL database or a configuration file, and can be used to identify Web site viewers.
Categories : PHP, Security, Authentication
Is there some possibility to link a database to an htaccess file, so that instead of having a passwd file you would have a database with DES-crypted password and username fields?
Categories : Authentication, PHP, General SQL, Databases