Excellent
22,987 reviews on

Products

Domain registration

Register the perfect domain name for your business or idea.

Transfer domain

Easily transfer your existing domain to one.com

Learn

What a domain name is

Read article

Key things to know before buying a domain

Read article

How to choose the right domain extension

Read article

Products

Microsoft 365

Maximise productivity with your favourite Microsoft apps.

Email

Create professional email addresses on your own domain.

Learn

All about email domains

Read article

How to create a professional email

Read article

The benefits of Microsoft 365

Read article

Products

AI Website Builder

Create your own website, no coding required.

Online Shop

Set up your online store and start bringing in sales.

Bookings New

Make it simple for customers to book appointments directly on your site.

Create It For Me New

Let us design a professional website for you, customised to fit your needs.

Solutions

Restaurants

Serve an appetising site to bring in guests.

Portfolios

Display your best work with an appealing online portfolio.

Beauty & Salons

A complete solution for beauty salons and hairdressers.

Learn

Everything you need to create a website

Read article

How to set up an online shop

Read article

Our best tips for designing a great website

Read article

Products

WP Website

Create your own website with the world’s most popular CMS

Managed WP

Save time and get priority service with our Managed WP solution

WordPress tools

RankMath AI

Boost your SEO and reach higher rankings on search engines.

WP Rocket

Speed up your website and improve its performance

Learn

How to use WordPress

Read article

The steps to create a WordPress site

Read article

All about WooCommerce

Read article

Products

Web Hosting

Start your website with secure and budget-friendly shared hosting.

VPS

Take full control and improve performance with a server you manage entirely.

Managed VPS New

All the benefits of a VPS, without having to manage the server yourself.

Learn

What web hosting is

Read article

What a VPS is

Read article

Which hosting is best for you

Read article

Grow

SEO New

Rank higher on Google with our SEO services.

Google Ads New

Sell ​​more with Google Ads campaigns created by certified experts.

Protect

Termly AI

Manage cookie consent on your website and generate website policies.

SSL

Secure your site and protect visitors with an SSL certificate.

SiteLock

Keep your website safe with automated malware scanning and removal.

Domain Protection

Protect your domain ownership with Domain Lock.

Learn

What SEO is

Read article

How to keep your website secure

Read article

How to grow your business

Read article

Learn

Academy

Learn more about building and growing your website

Company

Product

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 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 are included in all web space subscriptions with one.com.

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

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 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 website.

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 on 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 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.

Webshop with PHP and MariaDB

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

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

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.

Products

Information

Resources

Company

English

© one.com 2025