Our site www.viart.com site is operated by latest Viart Shop 5 with default Clear design
ViArt User's Guide (Version 3.6)
Please, see the list of all new features and fixed bugs that were made to all ViArt PHP Shopping Cart releases from version 2.1.1 up to the latest 3.5 version.
1.3.1. PHP-support
1.3.1. PHP-support
Prev Index Next

This article covers the following sections:

Back to top

What is PHP

PHP is a general purpose scripting language used to create dynamic, database-driven websites. It provides built-in support for the popular MySQL database format.

To install ViArt Shop on a local machine that doesn't support PHP, please follow the below steps:

Note: If PHP is already installed on your server or computer, you can easily omit these instructions and proceed to PhpMyAdmin section

Back to top

Download PHP binaries

PHP is free and comes complete with the source code. If you are not interested in hacking the PHP source code, you can simply download the Windows binaries. Both the binaries and the source code can be found at the PHP Website.

Back to top

Install PHP

a. Create a directory for PHP on your computer. For example "C:\php".

You will not need all the files provided in the archive, so unzip the PHP archive into a temporary location first e.g. "C:\Windows\Temp".

All the PHP files in the archive will be extracted into a folder inside this temp folder, the name will be based on the version of PHP you downloaded. For example, if you downloaded php-4.2.3-Win32.zip and extracted it into "C:\Windows\Temp", there'll be a folder called "C:\Windows\Temp\php-4.2.3-Win32\" where the files can be found.

The PHP Files You Need

Copy the following files into "C:\php"

  • php.exe
  • php4ts.dll
  • php4apache.dll


  • You can find php4apache.dll in the "sapi" sub-directory (e.g. "C:\Windows\Temp\php-4.2.3-Win32\sapi\").
  • You will need to use php4apache2.dll if you're installing it for Apache 2.X. which you will be assumed to be doing.
  • If you plan to load PHP extensions, you will need to copy the files in the "extensions" directory to "C:\php" (or a sub-folder in "C:\php") as well.
  • MySQL support is integrated into php and no longer needs an extension dll.
Back to top

Configuring PHP

Firstly, copy the file "php.ini-dist" from the extracted files into your Windows directory (typically "C:\Windows") on most Windows 95/98/ME/XP; further rename this file to "php.ini".

Use an ASCII text editor (such as Notepad) to open "php.ini".

You may need to make the following changes to the file, depending on your requirements:

Setting up ViArt for localhost email Functionality

To run ViArt on a localhost and have the email function work properly, it is necessary to edit your php.ini file as shown below. When creating ViArt accounts, or submitting Support Tickets, a real email address is to be used, otherwise the localhost displays an error.

Setting the SMTP Server

Your SMTP Server is to be configured if you want the mail() function to send out email when you test your own PHP scripts.

To do this, search your "php.ini" for the section starting "[mail function]" (search without the quotes).

You will see a section that looks like this, or similar to the below one:

[mail function]
; For Win32 only
SMTP = localhost
; For Win32 only
sendmail_from = me@localhost.com

Now you need to change the "localhost" reference to point to your SMTP server and email account.

For example, if your SMTP server is "mail.viart.com" and your email address is "youremail@yourdomain.com", you are to change the code to:

[mail function]
; For Win32 only
SMTP = mail.viart.com
; For Win 32 only
sendmail_from = youremail@yourdomain.com


  • When this is done, any script using the mail() function is to be linked to your ISP to run properly.
  • Stop your local Apache Server service and restart it for the changes to take place.
Back to top

PhpMyAdmin and Viart Shop

To manage your databases on a remote server it is recommended to use PhpMyAdmin. It is a web interface to the popular database MySQL, and is written in PHP. It is installed with many web hosting accounts, but can be installed yourself if not.


PhpMyAdmin allows you to login to an administration 'panel' and manage your databases, browse their data, run SQL commands, and backup the structure and data stored in your MySQL databases.

Ensure that the password is set correctly.

If your web host has not pre-installed phpMyAdmin it may be downloaded from the official PhpMyAdmin website.

Prev Index Next