PHP Classes

File: examples/example15_changedetails.php

Recommend this page to a friend!
  Classes of Naveed ur Rehman   PHP Megaupload.com Class   examples/example15_changedetails.php   Download  
File: examples/example15_changedetails.php
Role: Example script
Content type: text/plain
Description: Change account details
Class: PHP Megaupload.com Class
Manage files and folders megaupload.com accounts
Author: By
Last change:
Date: 13 years ago
Size: 1,814 bytes
 

Contents

Class file image Download
<?php
/******************************************************************************
                     HOW TO USE "PHP MEGAUPLOAD.COM CLASS"
 ******************************************************************************
 Example #15: Change account details
 ******************************************************************************
       Author: Naveed-ur-Rehman
       Email: naveed@naveedurrehman.com,
                   naveed.coder@gmail.com,
                   naveed.ur.rehman@hotmail.com
       Website: http://www.naveedurrehman.com/
 ******************************************************************************
*/

require_once('../class/megaupload.class.php'); //php megaupload.com class file
require_once('credentials.php'); //Your signing in credentails of megaupload.com account

$megaupload = new megaupload_class(); //Initializing the class

$megaupload->username=$username; //Setting credentails (loaded from credentails.php)
$megaupload->password=$password;

$isconnect = $megaupload->connect(); //Return: 0=trouble, 1=validated and connected

if($isconnect==1)
{
 echo
"Credentials are verified and you are connected to megaupload.com successfully!<br/>";

 
$issuccess = $megaupload->account_changedetails(
       
"http://www.naveedurrehman.com/", //home page
       
"Naveed", //First name
       
"Rehman", //Last name
       
"R-001, Sector 1/A", //Address-1
       
"North Karachi", //Address-2
       
"Karachi", //City
       
163, //Country (see Appendix-D)
       
"+01-1212-121212" //Mobile #
   
);

 if(
$issuccess){echo "Success!";}else{echo "Error!";}
}
else
{
 echo
"Error occured while connecting to megaupload.com. May be username and/or password supplied is invalid.";
}

$megaupload->disconnect(); //Disconnect to release everything

?>