Free Essay

Mobile Applications

In:

Submitted By nzilani
Words 1556
Pages 7
PHP Tutorial - Learn PHP
If you want to learn the basics of PHP, then you've come to the right place. The goal of this tutorial is to teach you the basics of PHP so that you can:

• • •

Customize PHP scripts that you download, so that they better fit your needs. Begin to understand the working model of PHP, so you may begin to design your own PHP projects. Give you a solid base in PHP, so as to make you more valuable in the eyes of future employers.

PHP stands for PHP Hypertext Preprocessor.

PHP - What is it?
Taken directly from PHP's home, PHP.net, "PHP is an HTML-embedded scripting language. Much of its syntax is borrowed from C, Java and Perl with a couple of unique PHP-specific features thrown in. The goal of the language is to allow web developers to write dynamically generated pages quickly." This is generally a good definition of PHP. However, it does contain a lot of terms you may not be used to. Another way to think of PHP is a powerful, behind the scenes scripting language that your visitors won't see! When someone visits your PHP webpage, your web server processes the PHP code. It then sees which parts it needs to show to visitors(content and pictures) and hides the other stuff(file operations, math calculations, etc.) then translates your PHP into HTML. After the translation into HTML, it sends the webpage to your visitor's web browser.

PHP - What's it do?
It is also helpful to think of PHP in terms of what it can do for you. PHP will allow you to:

• • • •

Reduce the time to create large websites. Create a customized user experience for visitors based on information that you have gathered from them. Open up thousands of possibilities for online tools. Check out PHP - HotScripts for examples of the great things that are possible with PHP. Allow creation of shopping carts for e-commerce websites.

What You Should Know
Before starting this tutorial it is important that you have a basic understanding and experience in the following:

• •

HTML - Know the syntax and especially HTML Forms. Basic programming knowledge - This isn't required, but if you have any traditional programming experience it will make learning PHP a great deal easier.

Tutorial Overview
This tutorial is aimed at the PHP novice and will teach you PHP from the ground up. If you want a drivethrough PHP tutorial this probably is not the right tutorial for you. Remember, you should not try to plow through this tutorial in one sitting. Read a couple lessons, take a break, then do some more after the information has had some time to sink in.

http://www.tizag.com/phpT/index.php

PHP - Syntax
Before we talk about PHP's syntax, let us first define what syntax is referring to.



Syntax - The rules that must be followed to write properly structured code.

PHP's syntax and semantics are similar to most other programming languages (C, Java, Perl) with the addition that all PHP code is contained with a tag, of sorts. All PHP code must be contained within the following...

PHP Code: or the shorthand PHP tag that requires shorthand support to be enabled on your server...

If you are writing PHP scripts and plan on distributing them, we suggest that you use the standard form (which includes the ?php) rather than the shorthand form. This will ensure that your scripts will work, even when running on other servers with different settings.

How to Save Your PHP Pages
If you have PHP inserted into your HTML and want the web browser to interpret it correctly, then you must save the file with a .php extension, instead of the standard .html extension. So be sure to check that you are saving your files correctly. Instead of index.html, it should be index.php if there is PHP code in the file.

Example Simple HTML & PHP Page
Below is an example of one of the easiest PHP and HTML page that you can create and still follow web standards.

PHP and HTML Code: My First PHP Page

Display:
Hello World! If you save this file and place it on PHP enabled server and load it up in your web browser, then you should see "Hello World!" displayed. If not, please check that you followed our example correctly. We used the PHP function echo to write "Hello World!" and we will be talking in greater depth about this PHP function and many others later on in this tutorial.

The Semicolon!
As you may or may not have noticed in the above example, there was a semicolon after the line of PHP code. The semicolon signifies the end of a PHP statement and should never be forgotten. For example, if we repeated our "Hello World!" code several times, then we would need to place a semicolon at the end of each statement.

PHP and HTML Code: My First PHP Page

Display:
Hello World! Hello World! Hello World! Hello World! Hello World!

White Space
As with HTML, whitespace is ignored between PHP statements. This means it is OK to have one line of PHP code, then 20 lines of blank space before the next line of PHP code. You can also press tab to indent your code and the PHP interpreter will ignore those spaces as well.

PHP and HTML Code: My First PHP Page

Display:
Hello World!Hello World! This is perfectly legal PHP code.

PHP - Variables
If you have never had any programming, Algebra, or scripting experience, then the concept of variables might be a new concept to you. A detailed explanation of variables is beyond the scope of this tutorial, but we've included a refresher crash course to guide you. A variable is a means of storing a value, such as text string "Hello World!" or the integer value 4. A variable can then be reused throughout your code, instead of having to type out the actual value over and over again. In PHP you define a variable with the following form:



$variable_name = Value;

If you forget that dollar sign at the beginning, it will not work. This is a common mistake for new PHP programmers!

A Quick Variable Example
Say that we wanted to store the values that we talked about in the above paragraph. How would we go about doing this? We would first want to make a variable name and then set that equal to the value we want. See our example below for the correct way to do this.

PHP Code:

Note for programmers: PHP does not require variables to be declared before being initialized.

PHP Variable Naming Conventions
There are a few rules that you need to follow when choosing a name for your PHP variables.

• • • •

PHP variables must start with a letter or underscore "_". PHP variables may only be comprised of alpha-numeric characters and underscores. a-z, A-Z, 0-9, or _. Variables with more than one word should be separated with underscores. $my_variable Variables with more than one word can also be distinguished with capitalization. $myVariable

PHP - Echo
As you saw in the previous lesson, the PHP function echo is a means of outputting text to the web browser. Throughout your PHP career you will be using the echo function more than any other. So let's give it a solid perusal!

Outputting a String
To output a string, like we have done in previous lessons, use the PHP echo function. You can place either a string variable or you can use quotes, like we do below, to create a string that the echo function will output.

PHP Code:

Display:
Hello!

I love using PHP!
In the above example we output "Hello!" without a hitch. The text we are outputting is being sent to the user in the form of a web page, so it is important that we use proper HTML syntax! In our second echo statement we use echo to write a valid Header 5 HTML statement. To do this we simply put the at the beginning of the string and closed it at the end of the string. Just because you're using PHP to make web pages does not mean you can forget about HTML syntax!

Careful When Echoing Quotes!
It is pretty cool that you can output HTML with PHP. However, you must be careful when using HTML code or any other string that includes quotes! The echo function uses quotes to define the beginning and end of the string, so you must use one of the following tactics if your string contains quotations:

• • •

Don't use quotes inside your string Escape your quotes that are within the string with a slash. To escape a quote just place a slash directly before the quotation mark, i.e. \" Use single quotes (apostrophes) for quotes inside your string.

See our example below for the right and wrong use of the echo function:

PHP Code:

Display:
Hello Bob. My name is: 4a

Echoing Variables and Text Strings
You can also combine text strings and variables. By doing such a conjunction you save yourself from having to do a large number of echo statements. Variables and text strings are joined together with a period( . ). The example below shows how to do such a combination.

PHP Code:

Similar Documents

Free Essay

Mobile Application

...Main.xml code <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:tools="http://schemas.android.com/tools"     android:layout_width="fill_parent"     android:layout_height="fill_parent"     android:orientation="vertical"          android:gravity="center"     android:padding="30dip"      android:background="#000000">     <TextView         android:id="@+id/textView1"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:layout_gravity="center"         android:text="@string/main_title" />     <TableLayout         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:layout_gravity="center"         android:stretchColumns="*" >         <TableRow>             <Button         android:id="@+id/continue_button"         android:text="@string/continue_label" />             <Button         android:id="@+id/new_button"         android:text="@string/new_game_label" />             </TableRow>                     <TableRow >                        <Button         android:id="@+id/about_button"         android:text="@string/about_label" />     <Button         android:id="@+id/exit_button"         android:text="@string/exit_label" />                                                    </TableRow>                     </TableLayout>      </LinearLayout> ...

Words: 289 - Pages: 2

Premium Essay

Kroger Mobile Application

...Kroger Mobile Application Kroger grocery began over 130 years ago in 1883 in Cincinnati by a man named Barney Kroger. He built his business on the motto: “Be particular. Never sell anything you would not want yourself” (“History of Kroger”, 2014). Kroger has delivered a wide variety of items for its customers since day one. These items include baked goods, a pharmacy, deli, home décor and an assortment of other goods. In the recent years Kroger has launched a mobile application for its customers. The launch has enabled Kroger to provide an even more personalized approach to shopping in its stores. Mobile Application Features As of 2012, 87 percent of the world’s population was using mobile phones (Turban, Volonino, & Wood, 2012, p. 195). Every year that number greatly increases. Therefore, it is obvious why Kroger made the decision to capitalize on the mobile opportunity. The company’s CEO, David Dillon, had reported that since the birth of the Kroger app three years ago, it had been downloaded more than two million times (Monk, 2013). The company integrated the store customer loyalty program into the application; along with making the switch to digital coupons. Every week, as new manufacturer coupons are released in the paper or online, the Kroger mobile app is updated as well. There is no need for the customers to clip coupons in the newspaper anymore. The consumer can open his or her mobile app and locate the coupon by category or name. Once the coupon is selected, it...

Words: 827 - Pages: 4

Premium Essay

Mobile Communication Application

...Mobile communication Application: Security Exploit For SQLite Database Pankaj Arora Raushan kumar Student (MCA), Student (MCA), Rukmini Devi Institute of Rukmini Devi Institute of Advanced Studies, Rohini, New Delhi. Advanced Studies, Rohini, New Delhi. Hidden.brain.key1@gmail.com kraushan6102@gmail.com ABSTRACT In the previous years a new area of messaging applications has come up. These applications allows users to make free calls, video calls and send text messages over the internet instead of traditional communication methods which includes SMS,MMS and voice calls. While there are millions of users which are using these services but a very little attention has been paid over the security measure. In this paper we analyses one of the most popular mobile messaging application (Hike,) and evaluate the security flaws in it. We find that application uses user’s phone number as a unique key for the verification of account. Finally, practical results show that...

Words: 1288 - Pages: 6

Free Essay

Mobile Applications in Ghana

...Adoption of Mobile Payment Systems in Ghana Winfred Ofoe Larkotey#1, Prince Yaw Amoako*2, Ebenezer Afotey Laryea#3 , Ernest Dey#4 # Institute of Computer Science, Valley View University Box AF 595, Ghana 1 winfred.larkotey@gmail.com 3 afotey@gmail.com * Valley View University Institute of Computer Science, Ghana 2 4 papaprince@vvu.edu.gh ernest.dey@gmail.com Abstract— It may be said that no technology has increasingly broadened faster around the globe reminiscent of the mobile payment systems. Mobile payment systems are being embraced in many countries but its growth remains slow in most African countries. According to [9], this is mainly due to the lack of legal frameworks, inefficient banking and telecommunication systems, absence of security instruments and high illiteracy levels. Mobile payment systems level the playing field, presenting the opportunity for developing countries to compete equally with developed countries [5]. Hence, there exists a potential impact on socio-economic development if developing countries can harness this technology. However, there is a scarcity of research on the factors that influence mobile phones adoption and usage among micro-enterprises. This research seeks to address this gap by investigating the factors that influence mobile payment systems adoption and usage among in the Ghanaian society. The theoretical model based on the technology acceptance model is used to analyse survey of the adoption and the use of these...

Words: 5325 - Pages: 22

Free Essay

Web or Mobile Application

...combinations out there in the social media category, and it is a very hard marketplace to get into. Instagram has proved to be the top photo sharing application on mobile devices, and there have been many others that have tried to tap into that category. One mobile application that has successfully made its own foot print in the photo social media category is Foap. It is a web and mobile application combination where you can upload photos that you take with your phone to post and have the chance for someone, or a company to purchase your photos. It is used by anybody from the casual teenager taking selfies to the dedicated professional photographer to post their favorite photos throughout their day. Users compete in competitions, known as missions, posted by companies in need of category specific photos for big cash prizes. Users have the capability to vote on photos based on a 0 through 5 star rating and also be able to purchase any photo on the application or website for $5 with exclusive rights. Companies or people in the business of buying/selling photos also have the option to buy credit packages where they can gain discounts on mass amounts of photos. In recent updates, Foap developers have brought new user interface features, along with advanced sharing options to a lot of the mainstream social media platforms. The application has also integrated a newsfeed tab, showing the activity of the community and on your profile. Users have also complained about the need to rate...

Words: 663 - Pages: 3

Premium Essay

Mobile Phone Application

...Mobile Phone Application: MHelpdesk MHelpdesk mobile is an application that I personally use which is a mobile version of the ticketing system used to keep track of requests and transactions for my clients. MHelpdesk mobile is an app that helps mange work orders, invoices, service and repairs on the iPhone, iPad, and any Android 2.0+ device. The whole purpose of MHelpdesk is to have online secure software where a small to medium size business can create tickets when a call or email comes in from a customer and assign this ticket to any available technician. Create a service ticket, track it’s progress, record notes, then invoice your customer. It works on your smart phone, laptop or desktop The application can be used with Google Calendar which then synchronizes with my mobile device advising me when the next appointment is scheduled an hour or two prior to the actual time scheduled. From experience I was using previously Quickbooks online which was a free service and also had a mobile application as well but wasn’t always functional when needed. Since I currently am the only employee in the business, I manage what would be considered every department within an organization such as the sales, marketing, accounting, etc. Quickbooks online pretty much did what I needed which is have a list of customers and send them an invoice after work was performed. Unfortunately, they only allowed a maximum of five customers in which was fine in starting a business from the ground up, but...

Words: 1437 - Pages: 6

Premium Essay

Mobile Application Security

...SECURING A MOBILE WORLD Introduction Today’s smartphones and tablets are more than communication devices. They are hip-mounted personal computers, with more memory and processing power than your laptop of just a few years ago. They are an integrated part of our lives… personal and professional. The information they provide is so vital that the Army is piloting their use as standard field issue to every soldier, complete with combat-focused applications [1]. However, smartphones and tablets raise new security issues. They are more likely to be lost or stolen, exposing sensitive data. Malware risks are increased because they connect to the Internet directly rather than from behind corporate firewalls and intrusion-protection systems. Security of mobile devices focuses on controlling access through the use of device locks and hardware data encryption. While this may be sufficient for individual users, it is insufficient for defense needs. Many documented examples exist of hacking of the device lock, as well as defeats of the hardware-level encryption. Once the device is unlocked, there is generally unfettered access to all apps and their associated data. Military applications require additional application-level access controls to provide data security. Unfortunately, there are gaps in the application-level security model of the two predominant mobile operating systems: iOS from Apple and Google Android. Our ongoing research1 looks to address these gaps by developing innovative...

Words: 4009 - Pages: 17

Premium Essay

Mobile Application Development Strategy

...STRATEGY PAPER: Mobile Application Development Mobile Application Development Strategy Document No: Strategic Initiative: Coverage: Classification:  RTC 01 Version : 1.0 Increasing customer loyalty base and enhancing customer reach through Mobile application Retail SBU Strategic Date Last 17.11.2014 Changed: Strategic High Value: Time Frame: Priority: Long Term High 1.0.Corporate/Business Vision: We are the most admired global energy company leveraging talent and technology. We are the first choice of customers, always We exploit profitable growth opportunities outside energy  2.0.Description of Strategic Initiative: Consumers are spending more time on their apps than ever before. Over the past half-decade, the proliferation of mobile devices has transformed us into an app-driven society, presenting marketers with new opportunities to connect with consumers by creating more interesting and sophisticated apps to command their attention. Mobility offers tremendous opportunities for every business unit in the enterprise. From optimizing processes to real-time collaboration, improved customer experiences to increased revenues, the benefits are big—but so are the challenges. Cisco recently published statistics that demonstrate how user demand is driving every enterprise down the mobile route whether they like it or not. Version 1.0 Page 1 STRATEGY PAPER: Mobile Application Development This explosive growth is...

Words: 4889 - Pages: 20

Premium Essay

Analysis of Mobile Applications by Students

...sensation with the younger generation. The most important contribution of technology to the modern world is cell phone. The cell phone is becoming very useful device in the world. The cell phone may not yet seems very effective  window to the world, but the internet and mobile application gets more and more customized to the cell phone, we can see mobile is immensely powerful device in the world. Telephone industry is the one of the most powerful industry of country which is providing facilities to the generation. Telephone industry providing so many software who helps to business, education etc. SCOPE: The study on” Applications of mobile phones by students of NITK, Surathkal” helps to know about usages of mobile phone applications, their pattern of usage and time expending on mobile phone applications. It helps to know the various reasons as to why they use the multimedia cell phone. By this we can conclude that students have a craze to own cell phone and it is true to most of the students mind set. Mostly students prefer application based cell phone. They prefer RESEARCH QUESTION: * What are the objectives to use the application in mobile phone? * What is the effect of mobile phone application on the student’s life? * How it is effective and helpful for students?...

Words: 651 - Pages: 3

Free Essay

Mobile Applications

...Mobile Applications Chris Capone CIS/207 25 February 2013 Professor Suder A current web tool used in today’s cyber world of information called a “Widget” is a program that broadcasts or embeds itself into web pages, blogs, and startup pages. These tools, usually in the form of an advertisements also can items such as clocks, news flashes, or Weather forecast that post on the website for personal settings or pop up as a portion of the page. Widget creation come in the form of JavaScript, DHTML, and Adobe flash, typically coded into a small part of the web page by an end user. Google uses widgets out of most of the popular Internet sites because of its large search engine capabilities. For example, when a search is conducted to find local restaurants in a particular area, a map appears to reveal those locations in the surrounding area selected by the user. When the mouse is hovered over one of those locations, a widget appears describing information about the business, the address, phone number, and reviews of the restaurant. If the business has its own web page, the link to this particular business will also be displayed. Below is an example of this type of widget; One of the top Web widgets listed on Yola’s Top...

Words: 726 - Pages: 3

Free Essay

Mobile Applications

...There are many great web and mobile applications available to users or many different platforms. Google Maps is a versatile application that is easy to use and full of great features. Google Maps is a web mapping service created by Google. There are numerous applications that can interact with Google Maps. This application is has changed the way society finds their way around the world. Google created Google Maps to help users find their way. Sherwin (2010), "Google Maps is the most well-known map service on the net offering a basic street maps, terrain maps, satellite images and hybrid view which is a combination of the street maps and satellite images” (para. 3). Google works with a private company, Tele Atlas, to drive their Google Maps application. Tele Atlas is a world leader in navigation and location based services. The maps produced by Tele Atlas have been known to be very accurate. Tele Atlas has been praised for mapping extremely rural areas and the terrain (Sherwin, 2010). Working with Tele Atlas ensures that Google Maps is both accurate and reliable. While the browser version of Google Maps is great, the mobile version is where it really shines. There are many tools available for use on the Android and iOS platforms. One helpful tool is the Place Pin on the Map feature. According to "Quick Tips On Using Google Maps For iPhone" (2012), you can "simply press and hold any location on the map. Tap the resulting info sheet for additional options such as saving the location...

Words: 789 - Pages: 4

Free Essay

Mc2560 Unit 7 Assignment 1 Mobile Application

...David Lewandowski Mobile Communication Devices Unit 7 Assignment 1 Mobile Application A Static Web Application is any web application that can be delivered directly to an end user’s browser without any server side alteration of the HTM, JavaScript or CSS content. Static web applications generally refer to rich sites that utilize technologies in the browser instead of on the server to deliver dynamic content. The primary difference is that a traditional web app, the server is the one responsible for fetching the data and compiling it all into the HTML that the user then can see, while the static web application, the browser is responsible for doing that. Static Web Application: 1. The user agents browser sends a request to a static web server at a specified address 2. The Server receives the network request and maps the address to “barebones’ HTML file is stored on the server 3. The server sends the HTML file to the user agent, which will then render it and display it to the user 4. The JavaScript in the HTML pages uses the browser to connect to the data services and then fetches the information it needs to construct the content of the page you are on 5. The JavaScript in the web page, takes the data and manipulates the HTML of the page, updating it with the data the it fetched (Step 4) Advantage of Static Web Application: * Cheaper to Build * Quick to Build * Easier for Search Engines to Index * Quicker Load Times Disadvantages...

Words: 421 - Pages: 2

Premium Essay

Study of Eyewatch-Mobile Phone Application for Personal Safety

...PROJECT REPORT ON ‘STUDY OF EYEWATCH – MOBILE PHONE APPLICATION WITH SPECIAL REFERENCE TO WOMEN POPULATION AND ITS PROMOTIONAL STRATEGIES’ FOR INDIANEYE SECURITY PVT. LTD. [Submitted in partial fulfilment of the requirement for the PGDM- IB (2011-2013) course at FSM, New Delhi] Submitted By: Submitted To: Palak Thukral Prof. Neetu Jain Roll No.- 053027, IMG5 FORE School of Management FORE SCHOOL OF MANAGEMENT B-18, QUTAB INSTITUTIONAL AREA NEW DELHI CERTIFICATION This is to certify that Ms. Palak Thukral, Roll No.053027, IMG V has completed her corporate business project and submitted this report entitled ‘Study of Eyewatch- mobile phone application with special reference to women population and its promotional strategies’ for Indianeye Security Pvt. Ltd., towards partial fulfilment of her Post Graduate Diploma in Management – International Business (PGDM-IB)(2011-2013) course at FSM, New Delhi. This report is the result of her own work and to the best of my knowledge no part of it has earlier comprised any other report, monograph, dissertation or book. It was carried out under my overall supervision. Date: Place: Prof. Neetu Jain Internal Faculty Guide ACKNOWLEDGEMENT I take the opportunity to express the feeling of gratitude towards FORE School of Management for keeping project as part of Bachelor of Business Administration Course. ...

Words: 13441 - Pages: 54

Free Essay

Mobile Applications Market

...Mobile Applications Market The 21st century has seen the rise of mobile applications through the technology of smart phones .The mobile apps market is very elastic and continues to expand each and every day. The mobile market has a wide variety of applications that no matter what type of interests you may have, there is something for you. Outlined further in this report will outline the demand for these apps, trend analysis, current market status, success stories and lastly the end users. It was in June of 2008 when Apple Inc released its 3G Apple Iphone which featured support for third party applications. Then only a short month later the Apple app store was created. This took consumers by storm and in the first weekend over 10 million apps were downloaded. Since its release the app store has continued to expand with more apps and better quality apps that now range from E-books to a very humorous fart app. Shortly after Apple had seen rapid success with its app store, other leading Telephone providers like blackberry, Nokia and Android soon released a similar app store for their users. The evolution of mobile apps seems to be creating applications in which ease day to day living through our smart phones. For example in the Apple app store, there are apps which allow you to receive newspapers like the New York Times, or the Globe and Mail directly to your mobile device. There are also apps which act as a PDF creator, it allows for the consumer to take pictures of multiple...

Words: 1635 - Pages: 7

Premium Essay

Web or Mobile Application

...Web or Mobile Application Paper Connie Santos CIS319 June 17, 2013 Robert Juszynski Web or Mobile Application Paper JP Morgan Chase Mobile Bank application is one of the most important applications I have in my iPhone. Chase has created a new way of banking with their application. It is user friendly, it offers amazing capabilities, it is a time and money saver, and it has room for improvement. Chase has brought banking into our hands. The purpose of the application is to make banking for their customers stress-free. With this application customers can deposit checks from their iPhone, iPad, iPod touch, Android, Kindle Fire, and Windows Phone. All they do is input the amount of the check, take a front and back picture of the check and click submit. Customers can also view their banking and credit card balances and transaction history. Customers can transfer money between Chase and non-Chase accounts, in different ways. They offer Transfer Money, Wire Transfer, and Chase QuickPay. I just used the QuickPay feature today. My little sister bought my tickets to Lollapalooza so I paid her back through QuickPay. In order for the money to get deposit to her account, we both have to enrolled in the Person-to-Person QuickPay. Once we both signed up, I type her e-mail or phone number and the amount to transfer and submit it. Once sent, she approves the transaction, and it is complete. I am also able to pay bills with the application. This feature is truly helpful; I set up...

Words: 787 - Pages: 4