Author name: SKB

PHP-Examples

Here are some basic programs using PHP 1. Arithmetic operation program using PHP <?php $str=” Arithmetic operation”; $a=4; $b=5; $c=$a+$b; echo “Sum=”, $c; $c=$a-$b; echo “<br>Sub=”, $c; $c=$a*$b; echo “<br>Mul=”, $c; $c=$a/$b; echo “<br>Div=”, $c; ?> 2. PHP program to print person name and age. <?php $name=”John”; $age=20; echo “Person name=”, $name; echo “<br>Age=”, $age; …

PHP-Examples Read More »

Share

PHP

PHP = Pre-processor Hypertext PHP, a server side scripting languages widely (nearly 82% of the worlds websites are developed using PHP!) used in developing dynamic and interactive webpages. Advantages of PHP ——Dynamic content. —Computational capability. —Database and file system access. —Network access (from the server only). —Built-in libraries and functions. —Known platform for execution (as opposed …

PHP Read More »

Share

SEO friendly META Tags

SEO is a three letter acronym short for Search Engine Optimization.Search engine optimization about trying to rank higher in search engines. To rank higher you make changes to your website that make it easier for search engines to understand your content. Also, it can mean getting links from other websites.  source: www.madebymarket.com/help/ads/what-does-seo–mean.html SEO Friendly code for your website …

SEO friendly META Tags Read More »

Share

Javascript loop programs

1. Print 1-10 numbers using FOR loop program <html> <head> <title> Javascript looping program </title> </head> <body> <script language=”javascript”> var i document.write(“<h1>”+”FOR Looping program” +”</h1>”) for(i=1; i<=10; i++) { document.write(i+”<br>”) } </script> </body> </html> 2. WHILE Loop using Javascript <html> <head> <title> Javascript while loop program </title> </head> <body> <script language=”javascript”> var i=1 document.write(“<h1>”+”WHILE Loop …

Javascript loop programs Read More »

Share

Javascript programs

Java Script is an interpreted, object-based scripting language, developed by Sun Micro systems and Netscape.  JavaScript makes it easier to create interactive Web Pages.  Common Gateway Interface was considered as the standard for processing the forms. It was time consuming process because form validation used to take place on the server side.  JavaScript made the entire work easier by …

Javascript programs Read More »

Share

Android example on webview with progressbar

The following example shows that use of android webview with progress bar. 1. copy the following code and paste into “AndroidManifest.xml” <?xml version=”1.0″ encoding=”utf-8″?> <manifest xmlns:android=”http://schemas.android.com/apk/res/android” package=”app.mitindia.com.mywebappprogressbar” > <uses-permission android:name=”android.permission.INTERNET” /> <application android:allowBackup=”true” android:icon=”@mipmap/ic_launcher” android:label=”@string/app_name” android:theme=”@style/AppTheme” > <activity android:name=”.MainActivity” android:label=”@string/app_name” > <intent-filter> <action android:name=”android.intent.action.MAIN” /> <category android:name=”android.intent.category.LAUNCHER” /> </intent-filter> </activity> </application> </manifest> 2. Copy the …

Android example on webview with progressbar Read More »

Share

Android example to show webview

The following example shows that how to use Android WebView for browsing websites using android apps. 1. Copy the following code and paste into “AndroidManifest.xml” <?xml version=”1.0″ encoding=”utf-8″?> <manifest xmlns:android=”http://schemas.android.com/apk/res/android” package=”app.mitindia.com.mywebapp” > <uses-permission android:name=”android.permission.INTERNET” /> <application android:allowBackup=”true” android:icon=”@mipmap/ic_launcher” android:label=”@string/app_name” android:theme=”@style/AppTheme” > <activity android:name=”.MainActivity” android:label=”@string/app_name” > <intent-filter> <action android:name=”android.intent.action.MAIN” /> <category android:name=”android.intent.category.LAUNCHER” /> </intent-filter> </activity> android:debuggable=”true” …

Android example to show webview Read More »

Share

Android Example to show Popup Menu

In this tutorials you’ll see how “PopupMenu” app is created in Android. Have a look! 1. First of all copy the following code into “activity_main.xml” file <RelativeLayout xmlns:android=”http://schemas.android.com/apk/res/android” xmlns:tools=”http://schemas.android.com/tools” android:layout_width=”match_parent” android:layout_height=”match_parent” android:paddingLeft=”@dimen/activity_horizontal_margin” android:paddingRight=”@dimen/activity_horizontal_margin” android:paddingTop=”@dimen/activity_vertical_margin” android:paddingBottom=”@dimen/activity_vertical_margin” tools:context=”.MainActivity”> <TextView android:text=”@string/hello_world” android:layout_width=”wrap_content” android:layout_height=”wrap_content” android:layout_alignParentTop=”true” android:layout_alignRight=”@+id/button1″ android:layout_alignEnd=”@+id/button1″ android:textSize=”20dp” android:textColor=”#ff00ff”/> <Button android:layout_width=”wrap_content” android:layout_height=”wrap_content” android:id=”@+id/button1″ android:text=”Show popup” android:layout_centerVertical=”true” android:layout_centerHorizontal=”true” /> </RelativeLayout> …

Android Example to show Popup Menu Read More »

Share

Android Example to show Context Menu

Android Context menu example Following example shows that how to create context menu application using Android. Follow the below steps to create. a) copy the following code into activity_main.xml” file <RelativeLayout xmlns:android=”http://schemas.android.com/apk/res/android” xmlns:tools=”http://schemas.android.com/tools” android:layout_width=”match_parent” android:layout_height=”match_parent” android:paddingLeft=”@dimen/activity_horizontal_margin” android:paddingRight=”@dimen/activity_horizontal_margin” android:paddingTop=”@dimen/activity_vertical_margin” android:paddingBottom=”@dimen/activity_vertical_margin” tools:context=”.MainActivity”> <TextView android:text=”@string/hello_world” android:layout_width=”wrap_content” android:layout_height=”wrap_content” android:id=”@+id/textView” android:textColor=”#005599″ android:textAlignment=”center” android:textSize=”16pt” /> <ListView android:layout_width=”match_parent” android:layout_height=”wrap_content” android:id=”@+id/listView1″ android:layout_alignParentTop=”true” android:layout_marginTop=”53dp” …

Android Example to show Context Menu Read More »

Share
Share
Scroll to Top