faqts : Computers : Programming : Languages : PHP : Database Backed Sites : MySQL

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

20 of 33 people (61%) answered Yes
Recently 6 of 10 people (60%) answered Yes

Entry

how to integrate MySQL, PHP4 and Xitami for Win32 platform?

Jun 23rd, 2000 14:30
Barry Munro, Alexis Tarasoff,


Add the following to your defaults.cfg file in your xitami folder:

[Filter]
    .php=c:\php4\php.exe
    .php3=c:\php4\php.exe
    .php4=c:\php4\php.exe

[Server]
    Default3=index.php

This basically makes files ending in .php, php3 and .php4 load via the 
PHP interpreter (you need to set the path to where you've installed 
PHP4) instead of being viewed as text files. The server part simply 
makes index.php be treated like index.html so Xitami auto-loads it when 
you request a folder containing an index.php file.

All you need to do now is restart Xitami and you should be able to use 
PHP to connect to MySQL or any other database. No other configuration 
is required to Xitami.