Advanced web space with PHP and MySQL

A hosting solution with PHP from One.com is your best starting point for a user-friendly and advanced web site. The MySQL database along with PHP makes up the ideal combination for the development of web sites with varied and rich, interactive user experiences. These are tools that can be used to attract your visitors to spend more time on your web site and to stimulate the customers interest in purchase if you have a web shop on your site. PHP and MySQL are included in all web space subscriptions with One.com.

For example, PHP hosting at One.com provides access to the following elements:

PHP 5
MySQL database
Advanced dynamic websites

PHP and web development

To communicate with a computer, you must use a language the computer understands. The text that makes up the software is normally called the program's "source code", no matter if the program is executed for example locally on a computer, or on a cell phone. An example of a program that runs on a web server is One.com Web Editor that is located on a server and via the Internet accessible from any computer.

Programming with the purpose of making homepages is often called web programming or web development. One of the most popular web programming languages (also called script languages) is PHP. Combined with a MySQL database PHP can generally speaking be used for building websites of all types and sizes. By "dynamic" homepages, we mean that the content of the pages is changeable - and typically dependent on the visitor's interaction with the web site.

To those who are not familiar with programming, PHP scripts as such may seem like incomprehensible and meaningless characters. But PHP takes care that the source code is transformed into web pages with text, images and other content that makes sense to the human user.

Read more: For instance, you can find examples of PHP code in Wikipedia

HTML and static homepages

A website that is made up of HTML only is called a static website. Static means - roughly speaking - that all visitors of the website will see the same content every time. A dynamic website on the other hand changes its appearance and adapts to its users through one or more forms of interaction with the visitor. In practice, all websites consist of a certain part of HTML code that provides the visitor's browser a set of basic information on how the website's source code should be interpreted. But except from that, the majority of a website's content will often be dynamic and generated by scripts.

PHP and dynamic websites

With programming languages as for example PHP, ASP and Perl it is possible to develop dynamic websites. This means that a website's content and appearance can be programmed to adapt itself to each individual visitor in a way that everybody no longer see the same unchangeable website.

HTML (Hyper Text Markup Language) is the original and most fundamental code that the pages of the Internet are made of. HTML is still used for the basic functions, but since the first use of HTML in the beginning of the 1990'ies several other web technologies have evolved which are capable of much more than HTML.

PHP was invented by the programmer Rasmus Lerdorf in 1995 and has attained enormous popularity as the leading open source web technology. PHP and MySQL being open source means that their source code is freely and openly available to developers around the world and that they are free to use.

Dynamic websites provide lots of advantages. The user can interact with the website in more complex ways by for example making a purchase in a web shop, writing a message on a blog or in a guestbook. Examples of advanced dynamic homepages are discussion boards, blogs and web shops - to say nothing of the most famous PHP based web site: Facebook.com.

Web shop with PHP and MySQL

A typical use of the dynamic possibilities with PHP and MySQL at One.com is a web shop. PHP will register that you put an item into your shopping cart. PHP generates some HTML-code with some text, perhaps also a table and some graphics that makes the content of the shopping cart appear nice and clear to the customer.

To fully benefit from PHP on the web site, you need a database. Many know about databases from working with Microsoft Office's database Microsoft Access. A database is used for storing data so the data can be taken out when needed. The database that works well together with PHP and is offered by One.com is called MySQL.

The items purchased in the web shop will finally be stored, for example as a series of item numbers in the MySQL database that is associated with the web space. As the transaction is completed, PHP will send a receipt email to the customer - possibly with an inventory status and delivery time. This is information that PHP can take out quickly and easily because it has all been stored in the MySQL database.

PHP - Also a good beginner language

It would be an exaggeration to say that everybody can learn to program their own web sites. But actually it has become easier than many think to create a dynamic web site with the web programming language PHP. Anyone who allocates the necessary time can get a long way by means of the extensive variety of guides and helping tools which are made freely available on the Internet.

Read more: Lots of information about PHP is available on the official website PHP.net

PHP and Open Source

PHP is open source, meaning that it is free to use for everyone. When we are offered something for free, we might often with good reason think: How can something that is offered free of charge be on par with a paid-for product? Open source as a matter of fact, is actually a well established philosophy and development method within the software industry. Open source programs are typically developed by a community of developers without a specific commercial aim.

Unlike other free software known as "freeware", "shareware" and "trial versions" etc., most open source products are available as full versions and are regularly maintained to be constantly up-to-date. For security reasons you should be aware of any updates that might have been released for PHP based applications you have installed on your web space yourself.

An example of a successful open source product is the office package OpenOffice - by many users regarded as an excellent alternative to Microsoft Office. As a matter of fact, One.com's server setup is based on open source too. That is Apache servers running Linux with MySQL and PHP installed. Altogether such setup makes up a highly reliable and scalable basis for web hosting.

PHP and Open Basedir

One.com's servers run with safe mode set to off and with open basedir set to on. Running PHP in safe mode is a widespread safety measure taken by many web hosting providers. However, running in safe mode does imply a number of limitations upon the system performance. One.com runs PHP with safe mode Off to be able to offer all customers as much of PHP's functionality as possible while at the same time giving safety a high priority. All scripts that work under PHP in safe mode will generally also work on a web space with One.com.

Read more: What is PHP safe mode and open basedir?

Related products

MySQL
Website

Website

Web editor

Web Editor makes it easy to design and update your website. Start with a template, and make it your own as you add images, pages and content.

Read more

24/7 Chat support

We’re here to help when you need us. Our 24/7 live chat support is ready to answer your questions. You can also send us an email, and we’ll answer within 24 hours.

Read more

SSL

Encrypt the data traffic between your website and the visitors with SSL, and keep sensitive information safe.

Read more

Statistics

Get to know your visitors better. See where they come from and how much time they spend on your website.

Read more

Gallery

Publish your photos and make them look good on any device. Share them with everyone or create a private album.

Read more

Blog

Tell the world about your passion, or simply keep an online diary when you go on your next travel adventure. And with your own domain, your blog will be easy to find!

Read more

1-click WordPress

It’s easy to install WordPress. Just a few clicks in the Control Panel, and you’re ready to start blogging or building your website in no time.

Read more

SSH & FTP

Keep your files safe when you transfer them to your website. Use encrypted connections and your favorite FTP client. Or let our File Manager do the job.

Read more

PHP & MySQL

Of course you can code advanced websites if you want. Access your database and the tools you need to get started from the Control Panel. You’re ready to code!

Read more

Google AdWords

Advertise on the world’s largest search engine with Google AdWords. Reach potential customers at the moment they search for what you offer.

Read more

Email

Personal email address

Make yourself easy to remember with an email address with a twist. Create one for every occasion, and keep your inbox organized.

Read more

Unlimited accounts

Add as many email accounts, as you like. Manage all the accounts directly from your One.com Control Panel.

Read more

Calendar

Create appointments with just a few clicks in your personal online calendar, integrated with your webmail.

Read more

Address book

With Webmail’s built-in address book, you are sure to always have your contacts within range. Collect emails, phone numbers and addresses, and keep the info up-to-date.

Read more

Webmail

Check your mail anywhere. Our webmail works with all newer browsers and your mobile device. No setup - a login is all you need.

Read more

Virus- and spam filter

Protect your mail against viruses and keep your inbox free from junk mail. The filters can be adjusted so they fit your needs.

Read more

IMAP and POP3

Use IMAP when you want flexible access to all sent and received mails across devices, or select POP if you just want to have your mail in one place.

Read more

Exchange Active Sync (Beta)

Sync mails, contacts and calendars on your iPhone, iPad and Android. It’s never been easier to stay organized on the go.

Domain

Domain

Be remembered with your own domain. Choose a unique domain name and consider if should be .com .net or one of all the other options.

Read more

Your own domain

It’s yours. You own it, you control it, and you add the content people see when they visit your website.

Read more

Anycast DNS

Improved performance of your website and a fast name server network.

Read more

DNS management

Your DNS settings are managed directly from the Control Panel. Quickly redirect your domain to another website, or make more advanced settings.

Read more

Bix

Bix

With Bix you can secure, access and share all your stuff. If your laptop breaks down or your phone goes for a swim, no matter what happens your files are safe with Bix.

Read more

Online backup

Never worry about losing data again. Bix automatically backs up your files and folders from your PC, Mac and your mobile devices.

Read more

Sync

Just save your files with Bix, and we take care of the rest. Your files can be accessed from all your devices, at the office, home, or wherever you go.

Read more

Share

Quickly share documents, photos and videos with friends, family and coworkers.

Read more

Access

Access your files anytime, anywhere - from any device. Install the software on your PC and Mac, get the app for phone or just log in from a browser.

Read more

Mobile

Get the app for your iPhone, iPad or Android device and automatically back up photos and videos from your Camera Roll. Or just keep your files with you.

Read more