Home
Products
News
Help Center
Download
About BadBlue


How do I get started with PHP?
BadBlue Help Center  >>  PHP FAQ     BadBlue Discussion     Email support

How do I get started with PHP?

 
New! Starting with BadBlue 1.7.7, BadBlue includes a PHP Installation Wizard that steps you through the PHP setup process.

BadBlue's PHP Installation Wizard

The PHP Installation Wizard (inset) is available on the Help tab and steps you through the setup of PHP.

A "Test PHP support" menu option is also provided so that you can immediately see the results of the installation process.

Manual PHP installation instructions

If you would like to manually configure PHP, the following instructions step you through the process (from downloading to setting up a test page):

  • If you don't already have it, download BadBlue.
  • Download one of the PHP Win32 Binaries (either the installer or the ZIP file). When installing or unzipping the Win32 Binary version of PHP, note the folder to which PHP is installed. Remember to copy a PHP INI file (e.g., php.ini-dist) to the Windows directory and rename it php.ini.
  • Stop the BadBlue service.
  • Edit the BadBlue EXT.INI file (usually in the directory c:\program files\badblue\pe) by adding the lines:
    [SERVICES]
    extension1=php,c:\php\php.exe
    extension2=php3,c:\php\php.exe
    extension3=php4,c:\php\php.exe
    making sure that the path to PHP.EXE is correct.
  • Start the BadBlue service.
  • Test BadBlue's PHP support by saving a test page (see below for a sample) in the directory where BadBlue is stored (e.g., as c:\program files\badblue\pe\hello.php). Type the name of your site with the file name (e.g., http://127.0.0.1/hello.php).


  •  

    <html>
    <title>BadBlue/PHP Test Page</title>
    <!- Save this to the BadBlue directory as a PHP file...
    e.g., c:\program files\badblue\pe\hello.php -->

    <body bgcolor="#CCDDEE" text="#000000">

    <center>
    <font face=verdana size=2><br>
    <?php
    $t = "<b>BadBlue and PHP both say Hello!</b><br>";
    echo($t);

    echo("<br>Today is ".date("F j, Y, g:i a")."<br>");
    ?>
    </font>
    </center>

    </body>
    </html>

    BadBlue Help Center  >>  PHP FAQ     BadBlue Discussion     Email support