Wednesday, 17 June 2015

PHP -Overloading- Concept


class test12

    public function __call($name, $arguments)

        if ($name === 'test'){
            if(count($arguments) === 1 ){
                return $this->test1($arguments[0]);
            if(count($arguments) === 2){
                return $this->test2($arguments[0], $arguments[1]);
if(count($arguments) === 3){
                return $this->test3($arguments[0], $arguments[1],$arguments[2]);


    private function test1($data1)
       echo $data1;

    private function test2($data1,$data2)
       echo $data1.' '.$data2;
private function test3($data1,$data2,$data3)
       echo $data1.' '.$data2.$data3;

$test = new test12();

$test->test('one argument');           //echoes "one argument"


$test->test('three','om','test');     //echoes "two arguments"

one argumenttwo argumentsthree omtest

Monday, 8 June 2015


(1)first write code for "uploadform.html" file:

<form  action="upload.php"     method="post"     enctype="multipart/form-data">
<input type="file"    name="file"   id="file" >
<input type=submit  name="upload"   value="upload">

(2)write code for  "upload.php"  file:






$sql="insert into upload(file) values ('$file')";




(3)write  code to  display images which is uploaded  "display.php"  file :




$sql="select * from  upload";



echo $row['file'];
echo '<img src=upload/'.$row['file'].'  heigth=200  width=300>';



Wednesday, 3 June 2015


(1)how to check  indexed pages?

Ans:  to check pages are indexed or not indexed on following url:
(step 1)     OR    CHECK ON THIS SITE

(2)how to index your pages ?

(step 1)how to submit url for indexing page?

Ans: use following link  to submit your url:

(step 2): add property of all  urls:

click on add property  & submit your  website url:

How to create “sitemap.xml”   file ?

(1)got to FOLLOWING  url:

enter your website url & click on start & after it you will find sitemap.xml  file download this sitemap.xml file & upload to your website..

Titanium installation for Android apps development using CLI INTERFACE

Install the CLI
1.    Install the titanium CLI. On Mac OS X and Linux, you may need to prefix this command with sudo.
npm install -g titanium
2.    Log in using your Appcelerator credentials.
titanium login
You are prompted for your Appcelerator Platform login and password.
3.    Install the latest released SDK.
titanium sdk install
4.    Configure CLI.
titanium setup quick
The script prompts you to enter basic information, such as your name, Appcelerator Platform e-mail login, default locale, default SDK version, default workspace folder and Android SDK home directory.
Configure the CLI
Use the CLI setup wizard to quickly configure your CLI options and platform settings. For example, running the titanium setup command with no options prompts you to enter basic information as well as your Android SDK home directory for Android development. The following command prompts you for advanced CLI options and additional platform settings:
titanium setup
Use the CLI config command to selectively change your CLI options and platform settings. For example, running the titanium configcommand with no options outputs your current configuration settings. If you have already setup the Android SDK and NDK, the following commands set your Android platform settings (on a Mac OS X system):
titanium config android.sdk /Users/appc/sdk/android-sdk/
titanium config android.ndk /Users/appc/sdk/android-ndk-r8b/
Note: Not all platforms need to be configured. For example, for iOS development, the CLI uses the xcode-select path to obtain the path to the Xcode development tools.
Update the CLI
To update the CLI tool, run the npm install command. On Mac OS X and Linux, you may need to prefix this commands with sudo.
npm install -g titanium
To update the Titanium SDK, run the titanium sdk install command. For example, running the command with no options installs the latest released version. The following command installs the lastest continuous integration build and makes it the default SDK version:
titanium sdk install --branch master --default
Create a Basic Project
The following CLI commands create a basic project then builds it. You need to have a platform SDK installed and configured, or else you can only build Mobile Web projects. For the Android platform, you need to have previously created an Android virtual device (emulator). To create a new emulator, see Native Android Debugging and Testing Tools.
When running these commands, you are prompted for missing information, such as the application ID and platforms, which may also be specified using command-line options.
titanium create --name MyFirstProject
cd MyFirstProject
titanium build

Titanium installation for Android apps Mobile Development

(1)download & install titanium form:


(1)installing titanium sdk:!/guide/Installing_Titanium_SDK_Continuous_Builds

(2)installing titanium sdk :!/guide/Installing_the_Android_SDK

(3)congiuring android sdk:!/guide/Setting_up_Studio-section-37540095_SettingupStudio-ConfiguringAdvancedPlatformSettings

(4)titanium sdk:

go to help  click on install specific titanium sdk

enter following url