Contact

hs-icon-callcenter
Call
hs-icon-callcenter

Call us

Our support team is happy to help you, be it for technical or administrative issues. We’re there for you!

 

+41 (0)84 800 80 80
(Calls from Switzerland 8 centimes / minute)

Administration

Monday to Saturday
9.00 – 12.00 am
1.30 – 5.30 pm
 

Technical Support

Monday to Friday
8:00 am – 5:30 pm

Saturday
9:00 am – 4:00 pm

hs-icon-doc-write
Write
hs-icon-doc-write

Write to us

To be able to help you as quickly and effectively as possible, we kindly ask that you make your request as specific as possible. And of course you can contact us by email: support@hoststar.com

All fields marked with «*» are mandatory and must be completed.

 

PHP-Check

Support > Tips & tricks > PHP

It's important to know your website's PHP version to ensure that your applications or scripts are running smoothly. A simple way to check this is by creating an info.php file. This allows you to view your website's PHP version directly in your browser. 

Here’s a step-by-step guide: 

How to Check Your Website's PHP Version

1. Create the info.php File

Create the info.php File 

1.Open a text editor. 

2.nsert the following code: 

<?php  

phpinfo();  

?> 

3.Save the file as info.php. 

2. Upload the File to Your Web Server

  1. Connect to your web server via FTP or through your hosting provider’s file management tool. 

  2. Upload the info.php file to the root directory of your website, typically located in the /public_html folder. 

Open the File in Your Browser

  1. Open your browser and navigate to the URL where you uploaded the file. It might look something like this: http://domain.com/info.php 

  2. A page will appear displaying all the information about your PHP installation, including the PHP version. 

Why It’s Important to Know Your PHP Version

  • Compatibility: Modern applications and plugins often require specific PHP versions. If your version is too old, it may cause malfunctions. 
  • Security: Older PHP versions may contain security vulnerabilities. It's recommended to always use the latest supported version to minimize security risks. 

 

Using this method, you can quickly and easily determine your website’s PHP version and ensure that it meets the requirements of your applications. 

Was this article helpful?