Friday, February 22, 2019

Report on Web Programming

INTRODUCTION TO hyper text editionbook markup language What is hypertext markup language? The explosive festering of the World great weathervane is relatively unprecedented, although it resembles the desktop publication transition of the early and mid-1980s. As personal computers became much common in homes and offices, mickle began to image to use them for inventory creation and rapscallion layout. Although early playscript impact programs were not terribly intuitive and often petitiond memorizing flaky jurisprudences, people still picked them up fairly easily and managed to create their let in-house publications.Suddenly, the same kind of growth is being seen as folks shake to create and publish summons of a divers(prenominal) sort. To do this, they occupy to learn to use something called the Hypertext Mark-up Language ( hypertext mark-up language). hypertext markup language at a Crossroads hypertext markup language and the World ample net in general atomic procedure 18 currently in a stage of development similar to that of the desktop publish revolution. Still working to reach maturity as a bar, hypertext mark-up language is feeling the same growing pains that early word affect programs did-as more users flock to hypertext markup language, in that respect is a growing need to regulate it and apply it less complex to implement.These days, word outgrowthors atomic number 18 much more intuitive than they were 15 years ago. there are fewer codes and fussy keystrokes required to get something d unrivaled. The applications go through matured to the point where closely of the dependent formatting is kept hidden from the user of the application. At the same time, the printed summon is now more completely mirrored on the computer screen, with accurately represented fonts, idiom, margin breaks, margins, and paragraph breaks. Although programs are quickly being real to offer similar features for HTML development, these tend to be less than prototype solutions.Currently then, whatever unitary who decides to learn HTML is going to fork up to know some codes, bunco some syntax, and develop pages for the World broad entanglement without the benefit of see all the fonts, tension, and paragraph breaks beforehand. But anyone who has had any success with word processing programs of ten or 15 years ago (or desktop publishing programs as recently as five years ago) entrust have little or no trouble learning HTML. Ultimately, youll see that HTMLs introductory structure catch up withs a lot of sense for this emerging medium-the World Wide meshing.And, as with most things computer-oriented, youll find that once youve spent a few moments with it, HTML isnt nearly as difficult as you cleverness have originally imagined. A Short HTML History HTML essential a few years ago as a subset of pattern generalized markup language (Standard Generalized Mark-up Language) which is a higher-level mark-up language tha t has long been a favorite of the sermon section of Defense. Like HTML, it describes formatting and hypertext links, and it defines different components of a put down.HTML is definitely the unprejudicedr of the two, and although they are related, there are few web browsers that support both. Because HTML was conceived for transmission over the cyberspace (in the form of weave pages), it is much simple(a)r than standard generalized markup language, which is more of an application-oriented document format. While its genuine that more programs can load, edit, create, and save files in the SGML format ( unsloped as some programs can create and save programs in the Microsoft Word format), SGML is not exactly ideal for transmission across the lucre to many different types of computers, users, and browser applications.HTML is more suited to this task. Designed with these considerations in mind, HTML lets you, the designer, create pages that you are reasonably sure can be prove b y the entire population of the meshwork. Even users who are unable to soak up your graphics, for instance, can experience the bulk of what youre communicating if you design your HTML pages properly. At the same time, HTML is a simple teeming format (at least(prenominal) currently) that typical computer users can generate HTML documents without the benefit of a special application.Creating a WordPerfect-format document would be rather difficult by hand (including all of the required text size, fonts, page breaks, columns, margins, and separate information), even off if it werent a proprietary-that is, nonpublic-document format. HTML is a public standard, and simple enough that you can get through a book akin this one and have a very strong ability to create HTML documents from scratch. This simplicity is part of a trade-off, as HTML-format documents dont offer nearly the clearcutness of go out or depth of formatting options that a WordPerfect- or adobe PageMaker-formatted d ocument would. Marking Up TextThe most rudimentary element of any HTML page (and, therefore, any page on the weathervane) is ASCII text. In fact, although its close to bad form, a single paragraph of regular text-generated in a text editor and saved as a text file-can be displayed in a Web browser with no additional codes or markings An example of this might simply be Remember that HTML-formatted documents arent that far removed from documents created by a word processing program, which are also essentially text. Marking up text, then, simply bureau you add certain commands, or tags, to your document in order to tell a Web browser how you want the document displayed.One of the most basic uses for HTML tags is to tell a browser that you want certain text to be emphasized on the page. The HTML document standard go forths for a couple of different types of emphasis including explicit formatting, where you choose to make something italic as opposed to bold, or implicit formatting , where its up to the browser to decide how to format the emphasized text. apply part of the example above, then, an HTML tag utilise for emphasis might look something desire this Welcome to my home on the World Wide Web.In this example, and are HTML tags that tell the Web browser which text (in this example, my home) is to be emphasized when displayed. The browser isnt just displaying regular text it has also taken into account the way you want the text to be displayed according to the HTML tags youve added. Tags are a lot like margin notes you might make with a red pen when editing or correcting term papers or corporate reports. After youve entered the basic text in a Web document, you add HTML mark-up elements to tell the browser how you want things unionised and displayed on the page.In most word processing documents, the mark up that describes the emphasis and organization of text is hidden from the user. HTML, however, is a little more rude than that, as it cedes you to manually enter your text mark-up tags to determine how the text will appear. You cant do this with an MS Word document, but, then again, MS Word documents arent the standard for all Web pages and browsers on the profits The World Wide Web and Web Servers Probably the most important thing to remember nigh the World Wide Web and the Internet in general is that they are global in scale and often a very co-op venture.Information on the Web tends to be distributed around the world, and its just as slatternly for you to door a site in New Zealand or japan as it is to access Web information in your own state. The basic reason for learning HTML is to create pages for the World Wide Web. sooner you start, though, youll want to know a little about how this whole process works. Well begin by taking a look at Web browsing programs, then well talk about how the World Wide Web works, and well discuss some of the terms associated with surfing the Web.Finally, well round out the discussion by talking about the Internet in general and the different work ready(prenominal) on the Internet and how they interact with the Web. Whats the World Wide Web? The World Wide Web is an Internet service, based on a common set of protocols, which allows a particularly configured legion computer to distribute documents across the Internet in a standard way. This Web standard allows programs on many different computer platforms (such as UNIX, Windows 95, and the Mac OS) to properly format and display the information servingd.These programs are called Web browsers. The Web is fairly unique among Internet services (which take Internet e-mail, Gopher, and FTP) in that its protocols allow for the Web server to send information of many different types (text, sound, graphics), as well as offer access to those different Internet services. Most Web browsers are just as extend of displaying UseNet newsgroup messages and Gopher sites as they are able to display Web pages pen in HTML. Th is flexibility is part of what has fueled the success and popularity of the Web.Not only do the Web protocols allow more interactive, multimedia system presentations of information, but the typical Web browser can also offer its user access to new(prenominal) Internet resources, making a Web browser perhaps a users most valuable Internet application. The World Wide Web is the youngest and most unique of the Internet services. Its protocols allow it to transmit both text and multimedia file formats to users, while also enabling Web browsers to access other Internet services. The Web is based on a innovation called hypertext, which means that text within the paragraphs on a Web page is designed to act as links to other Web pages.There is no pecking order on the Web, which is only loosely organized by this system of links. otherwise services that can be accessed via the Web include Gopher, WAIS, UseNet, e-mail, and FTP. Each of these cured Internet services has its own scheme for formulating addresses. Most of these services require a server computer of some sort to allow Internet applications to access their information. These server computers have specific addresses on the Web which you need to know in order to affect them. The World Wide Web is the youngest and most unique of the Internet services.Its protocols allow it to transmit both text and multimedia file formats to users, while also enabling Web browsers to access other Internet services. The Web is based on a concept called hypertext, which means that text within the paragraphs on a Web page is designed to act as links to other Web pages. There is no hierarchy on the Web, which is only loosely organized by this system of links. Other services that can be accessed via the Web include Gopher, WAIS, UseNet, e-mail, and FTP. Each of these older Internet services has its own scheme for formulating addresses.Most of these services require a server computer of some sort to allow Internet applications t o access their information. These server computers have specific addresses on the Web which you need to know in order to contact them. Creating introductory HTML Documents It is important to realize that an HTML document mustiness be built on a very specific framework. This framework, in its simplest form, consists of three sets of matched container tags. A tag is a simple markup element, and always takes the form . A container is a pair of HTML tags of the form . You can think of the element as turning something on, while the turns that same thing off.For example, consider this line of HTML This is in Italics. But this isnt. The frontmost HTML tag, , turns on italics. The second tag, , turns them off. When displayed on-screen, this line of text would look like this This is in Italics. But this isnt. The tags themselves dont appear on-screen. They just tell the browser program how to display the elements they contain. The simplest possible HTML document is given in leaning 4. 1 . The entire document is enclosed in the container tags. The first part of the document is encapsulated in the container, which itself contains a container.Finally, the body of the page is contained in a container. The Simplest HTML Document A Very primary HTML Document My name is Ogbonnaya Stephen Success. The most fundamental of all the tags utilize to create an HTML document is, not surprisingly, the tag. This tag should be the first item in your document and the corresponding end tag, , should be the last. Together, these tags bear witness that the material contained between them represents a single HTML document (refer to Listing 4. 1). This is important because an HTML document is a plain text ASCII file.Without these tags, a browser or other program isnt able to identify the document format and interpret it correctly. Brief Introduction to PHP What is PHP? PHP stands for PHP Hypertext Preprocessor PHP is a server-side scripting language, like asp viper PHP scripts are exec uted on the server PHP supports many databases (MySQL, Informix, Oracle, Sybase, Solid, PostgreSQL, Generic ODBC, and so on ) PHP is an open source packet PHP is free to download and use Basic Requirements in Working with PHP Notepad++ Xampp server Web Browser 2. 5. 2 computer software DEVELOPMENT TOOL NOTEPAD++ Notepad++ is a text editor and source code editor for Windows. bod 2. 5. 2a Screen shot on Notepad++ XAMPP is a free and open source cross-platform web server solution stack package, consisting mainly of the Apache HTTP Server, MySQL database, and interpreters for scripts scripted in the PHP and Perl programming languages. X (meaning cross-platform) Apache HTTP Server MySQL PHP Perl The program acts as a free web server capable of serving dynamic pages. XAMPP is available for Microsoft Windows, Linux, Solaris, and Mac OS X, and is mainly used for web development projects. This software is useful while you are creating dynamic webpages using programming languages like PHP , JSP, Servlets.Uses Officially, XAMPPs designers intended it for use only as a development incision, to allow website designers and programmers to test their work on their own computers without any access to the Internet. To make this as easy as possible, many important security features are disabled by default. In practice, however, XAMPP is sometimes used to actually serve web pages on the World Wide Web. A special tool is provided to password-protect the most important parts of the package. XAMPP also provides support for creating and manipulating databases in MySQL and SQLite among others.Fig 2. 5. 2b XAMPP control Panel Application 2. 5. 3 Basic PHP Syntax A PHP scripting settlement always starts with . A PHP scripting block can be placed anywhere in the document. A PHP file normally contains HTML tags, just like an HTML file, and some PHP scripting code. Below, is an example of a simple PHP script which sends the text Hello World to the browser Fig 2. 5. 2 A simple program in PHP using notepad++ The proceeds of this will be gotten by making sure that my xampp server is running and putting in the remedy address in my web browser. Fig 2. 5. b showing webpage produce displaying Hello World. Each code line in PHP must end with a semicolon. The semicolon is a separator and is used to distinguish one set of instructions from another. There are two basic statements to output text with PHP echo and print. In the example above we have used the echo statement to output the text Hello World. 2. 5. 3 Comments in PHP In PHP, we use // to make a single-line chit-chat or /* and */ to make a large comment block. Below is a simple program showing single comment line and multiple comment line Fig 2. 5. showing comment line Below is a simple PHP code on PHONEBOOK. This program is able to Add and edit Name and Phone number in a Phonebook. Fig 2. 5. 4 Output for Adding Data in a Phone Book. From the Output above adding contact name and Phone number, saves the data i nto the Phone book. While deleting contact also deletes Name and Phone Number in the Phone book. Fig 2. 5. 5 Output after adding Contact Name and Phone number in a Phonebook. The code shown below is a Code nookie file for the sample Phone Book Application that was developed using PHP/MYSQL. Code Behind File

No comments:

Post a Comment