8A356F71-DA6E-4345-B1E7-E401AE4EE163 Created with sketchtool. 9BF07BAC-BC2E-400B-A0CC-69A823F8C48C Created with sketchtool. Email-Icon Created with Sketch. Group 3 Created with Sketch. Domains-SVG-Box Created with Sketch. Domains-SVG-Box Created with Sketch. Domains-SVG-Box Created with Sketch. hosting 2 Created with Sketch. hosting Created with Sketch. Icon-Internet Created with Sketch. Hosting-SVG-Box Created with Sketch. Icon-Internet Created with Sketch. Icon-Internet Created with Sketch. Hosting-SVG-Box Created with Sketch. Hosting-SVG-Box Created with Sketch. Trustpilot-stars Created with Sketch. Trust Pilot Stars Created with Sketch. 1-5-million Created with Sketch. svg-CP Created with Sketch. Control-panel-Icon Created with Sketch. wsb Created with Sketch. WSB-Brush Created with Sketch. wsb 2 Created with Sketch. Email-Icon Created with Sketch. Email-Icon Created with Sketch. Email-Icon Created with Sketch. Email-Icon Created with Sketch. Icon-ECommerce-Seperator Created with Sketch. Icon-ECommerce-Seperator Created with Sketch. Icon-ECommerce-Seperator Created with Sketch. wp Created with Sketch. wp 2 Created with Sketch. icon-slider-next Created with Sketch. icon-slider-prev Created with Sketch. svg-webmail Created with Sketch. Webmail-icon Created with Sketch. heart Created with Sketch. Menu Created with Sketch. Open-24-7 Created with Sketch. 247 Created with Sketch. open24 Created with Sketch. 24 7 trusted Created with Sketch. Fill 1 Created with Sketch.

Advanced web space with PHP and MariaDB

A hosting solution with PHP from One.com is your best starting point for a user-friendly and advanced web site. The MariaDB (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 MariaDB (MySQL) are included in all web space subscriptions with One.com.

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

MariaDB (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 Website Builder 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 MariaDB (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

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 MariaDB (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 MariaDB (MySQL)

A typical use of the dynamic possibilities with PHP and MariaDB (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 MariaDB (MySQL).

The items purchased in the web shop will finally be stored, for example as a series of item numbers in the MariaDB (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 MariaDB (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 MariaDB (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

MariaDB (MySQL)

Website Builder

Create beautiful, responsive websites with drag and drop and without coding.

Everything you need to create an amazing website, elegantly organized into one awesome tool.

Get started with Website Builder


Website Builder

Website Builder 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


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

Read more


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

Read more

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

Read more


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


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 & MariaDB database

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


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

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


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


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

Mobile Sync (Exchange ActiveSync)

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



Be remembered with your own domain. Choose a unique domain name and consider if it 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. Forward your domain quickly to another site or use more advanced settings.

Read more