Training Report On PHP Mysql
Training Report On PHP Mysql
1.2 INTRODUCTION
Refining the tenor of success and excellence, GRRAS is a conspicuous name among Linux training providers of country. GRRAS complete and advanced Linux courses add new feather to the success wing of IT professionals. GRRAS has removed the gap between theoretical Linux courses and practical knowledge of field by providing high quality real time Linux training. Grras is known for providing high quality and easy to grasp Linux training courses and tutorials .With several years of experience and expertise in Linux training industry, GRRAS has set benchmark for others through its comprehensive Linux courses across country. GRRAS is taking bask of having faculties of RHCSS rank. GRRAS is a renowned Linux training centre and authorized Linux training partner of Red Hat. Apart from RHCA/RHCSA/RHCSS training Grras also provides training in Networking providing CCNA/CCNP certification. GRRAS has come into existence as an end-to-end web solution provider in the international market. Located in Jaipur, India, the company is renowned for providing top-notch technology that any web-based project requires.
At GRRAS, you will get a wide range of enterprise level solutions at an affordable price. Since inception, Grras is providing incomparable web solutions and services that established us as a leading brand in the industry. Grras is a leading web hosting service provider of India. As a web solution provider Grras also provides Search Engine Optimization (SEO) services along with web development using php and mysql.
This software is designed to serve the Business Operations/Marketing Analysis of an Manufacturing/Marketing Organization .This software efficiently promotes Business for organizations with least technical knowledge.
2.1 OBJECTIVE
The objective of software is to promote business by automating the process of: Managing the software contents without technical knowledge. Direct consumer communication. Secure flow of data in the hierarchy maintaining data integrity.
The software deals with an Admin Panel designed for a single user who is not a technocrate but a business person though providing secure and consistent data.
SECURITY
Security is maintained at single level that is the Admin level, who can modify the whole user view. Secure login sessions and User name password matching authentication provides the level of security needed. No user can modify the contents of the software. Secure sessions do not allow viewing pages even by providing the link .An advancement for security is the CAPTCHA authentication, in which if captcha matches then only the queries of user will be entertained. Captcha is used to prevent filling of database by bots.
PHP 3
PHP 3.0 was the first version that closely resembles PHP as it exists today. Finding PHP/FI 2.0 still inefficient and lacking features they needed to power an eCommerce application they were developing for a university project, Andi Gutmans and Zeev Suraski of Tel Aviv, Israel, began yet another complete rewrite of the underlying parser in 1997. Approaching Rasmus online, they discussed various aspects of the current implementation and their redevelopment of PHP. In an effort to improve the engine and start building upon PHP/FI's existing user base, Andi, Rasmus, and Zeev decided to collaborate in the development of a new, independent programming language. This entirely new language was released under a new name, that removed the implication of limited personal use that the PHP/FI 2.0 name held. It was renamed simply 'PHP', with the meaning becoming a recursive acronym - PHP: Hypertext Preprocessor. One of the biggest strengths of PHP 3.0 was its strong extensibility features. In addition to providing end users with a mature interface for multiple databases, protocols, and APIs, the ease of extending the language itself attracted dozens of developers who submitted a variety of modules. Arguably, this was the key to PHP 3.0's tremendous success. Other key features introduced in PHP 3.0 included object-oriented programming support and a far more powerful and consistent language syntax. In June, 1998, with many new developers from around the world joining the effort, PHP 3.0 was announced by the new PHP Development Team as the official successor to PHP/FI 2.0. Active development of PHP/FI 2.0, which had all-but ceased as of November of the previous year, was now officially ended. After roughly nine months of open public testing, when the announcement of the official release of PHP 3.0 came, it was already installed on over 70,000 domains around the world, and was no longer limited to POSIX-compliant operating systems. A relatively small share of the domains reporting PHP as installed were hosted on servers running Windows 95, 98, and NT, and Macintosh. At its peak, PHP 3.0 was installed on approximately 10% of the web servers on the Internet.
PHP 4
By the winter of 1998, shortly after PHP 3.0 was officially released, Andi Gutmans and Zeev Suraski had begun working on a rewrite of PHP's core. The design goals were to improve performance of complex applications, and improve the modularity of PHP's code base. Such
applications were made possible by PHP 3.0's new features and support for a wide variety of third party databases and APIs, but PHP 3.0 was not designed to handle such complex applications efficiently. The new engine, dubbed 'Zend Engine' (comprised of their first names, Zeev and Andi), met these design goals successfully, and was first introduced in mid 1999. PHP 4.0, based on this engine, and coupled with a wide range of additional new features, was officially released in May 2000, almost two years after its predecessor. In addition to the highly improved performance of this version, PHP 4.0 included other key features such as support for many more web servers, HTTP sessions, output buffering, more secure ways of handling user input and several new language constructs.
PHP 5
PHP 5 was released in July 2004 after long development and several pre-releases. It is mainly driven by its core, the Zend Engine 2.0 with a new object model and dozens of other new features. PHP's development team includes dozens of developers, as well as dozens others working on PHP-related and supporting projects, such as PEAR, PECL, and documentation, and an underlying network infrastructure of well over one-hundred individual web servers on six of the seven continents of the world. Though only an estimate based upon statistics from previous years, it is safe to presume PHP is now installed on tens or even perhaps hundreds of millions of domains around the world.
DATABASE SUPPORT
One of PHP's most significant features is its wide-ranging support for databases. PHP supports all major databases (including MySQL, PostgreSQL, Oracle, Sybase, and ODBCcompliant databases), and even many obscure ones. With PHP, creating web pages with dynamic content from a database is remarkably simple. Finally, PHP provides a library of PHP code to perform common tasks, such as database abstraction, error handling, and so on, with the PHP Extension and Application Repository (PEAR). PEAR is a framework and distribution system for reusable PHP components.[5]
XAMPP 1.7.4
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 written in the PHP and Perl programming languages. XAMPP is regularly updated to incorporate the latest releases of Apache/MySQL/PHP and Perl. It also comes with a number of other modules including OpenSSL and phpMyAdmin. Self-contained, multiple instances of XAMPP can exist on a single computer, and any given instance can be copied from one computer to another.It is offered in both a full, standard version and a smaller version. Officially, XAMPP's designers intended it for use only as a development tool, 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. Once XAMPP is installed, it is possible to treat a localhost like a remote host by connecting using an FTP client. Using a program like FileZilla has many advantages when installing a content management system (CMS) like Joomla. It is also possible to connect to localhost via FTP with an HTML editor. The default FTP user is "newuser", the default FTP password is "wampp". The default MySQL user is "root" while there is no default MySQL password. Components of XAMPP are Apache HTTPD 2.4.4 MySQL 5.5.27 PHP 5.4.7 Perl FileZilla FTP Server 0.9.41 phpMyAdmin 3.5.8 SQLite Mercury Mail Transport System XAMPP Control Panel 3.1.0
MACROMEDIA DREAMWEAVER 8
It allows to develop professional websites and its user-friendly interface, tools and features have made it the must-have package for web designers. Dreamweaver uses both Cascading Style Sheets (CSS) and Hyper Text Markup Language (HTML) and it has good code-editing support features that will help to write the CSS and HTML. Alongside writing the code, one can use the visual layout tools to build sites and make them look exceptional.
10
One can use plug-ins to place videos, music and other media into web pages. To easily update a site, one can embed a live stream of content by using RSS. Provides a visual WYSIWYG editor (colloquially referred to as the Design view) Provides a code editor with standard features such as syntax highlighting, code completion, and code collapsing as well as more sophisticated features such as realtime syntax checking and code introspection for generating code hints to assist the user in writing code.
Dreamweaver supports syntax highlighting for the following languages out of the box: ActionScript Extensible Markup Language (XML) Extensible Stylesheet Language Transformations (XSLT) HyperText Markup Language (HTML) Java JavaScript PHP: Hypertext Preprocessor (PHP) Visual Basic (VB) Visual Basic Script Edition (VBScript) Wireless Markup Language (WML)
11
Figure 1: Xampp Control Panel From we can start the services Apache and Mysql just by clicking on the start button. This is the first thing we do in order to create a website. Here svc module is marked, if this module is marked then there is no need to start the services every time we turned on the computer. Since we only use Apache and Mysql services, so there is no need to start other services.
DREAMWEAVER 8
Following snapshots shows the steps of website development initializtions.
12
Figure 2: Home Page of Dreamweaver From File menu-> New Site is selected
13
Htdocs is the location where the webpages are to be kept and the http address given in the previous figure is provided at this step that is Local Information is provided in this step.
Figure 4 : Selecting Access mode In the above figure remote information is provided like which server can access the files whether local server/network server or a FTP server.
14
Figure 5 : Selecting Server Model In the above figure testing model is selected and the access is taken from the previous step that is Remote Info step. URL prefix should be given with care as it sometimes contain the Port number as shown in the above figure http://localhost:90/project.
15
Figure 6 : Selecting the category of webpages Websites can be Static (Basic) or Dynamic. Above figure shows the selection category and language of implementation.
PHPMYADMIN
PhpMyadmin is the database store where all the databases, their respective tables are stored. In addition it can be even used to run SQL queries related to a web page whose database is stored in PhpMyadmin. Following is the figure showing the related database alongwith its tables.
16
Figure 7 : MySQL database in phpMyAdmin We can view these tables through xampp installation on localhost and then in phpmyadmin. The url is generally as //localhost/phpmyadmin/ and in this case it is
//localhost:90/phpmyadmin.
17
18
Generally, a website is known by its User index page which here is localhost:90/project The admin index page is localhost:90/project/admin123
Figure 10 :Admin Credentials The admin is allowed 3 chances to authenticate, after which the site is locked[5]. For each three chances the admin is shown a message Wrong Username or Password. After login admin enters his/her panel where he/she can perform operations like changing his credentials, manage pages, provide contents, view contact forms.
19
Figure 11 :Admin page after login Admin panel is provided with tabs listed below Main Control Visit Site Add New Page
Visit site leads admin to open user view in new tab without logging admin out. Add new page is for making a new tab in the index page of user view and a new page indeed. Manage Content Show All Pages
Provides a list view of all the pages Settings Change Credentials View Contact Forms
Change Credentials leads user to a page where he/she can change Login Username, Name, Password.
20
View Contact Form leads admin to a page where a list view is shown for all the queries send from the user view. Below are the screenshots of all the tabs
Figure 12 :Add new page This page is provided with Add title and a web word editor CKEditor. Title becomes the Tab for the user view and the content provided in the editor becomes the content for the page.
21
Figure 14: Admin Credentials Page Above figure shows page where Admin can change user name, admin name, password. This page is auto filled from the backend i.e db but if admin empties the field and by-chance then alert is shown regarding the empty field and the field is focussed.
Figure 15: View Contact Form The above figure opens when the admin selects View Contact Forms. Thispage provides the list view of all the queries messaged by the User from the User View.[5]
22
There are options to delete and view on this page. Selecting delete will delete the entries and selecting view will open new page showing all the details of the contact form. This page is automatically populated.
23