код php расширения

// tutorial.cpp : Defines the exported functions for the DLL application.
//

#include "stdafx.h"

ZEND_FUNCTION(tutorial);
 
zend_function_entry tutorial_functions[] = {
ZEND_FE(tutorial, NULL)
 {NULL, NULL, NULL}
};
 
    zend_module_entry tutorial_module_entry = {
    STANDARD_MODULE_HEADER,
        "Tutorial Info",
        tutorial_functions,
    NULL, NULL, NULL, NULL, NULL,
        "1.0 - Alpha",
        STANDARD_MODULE_PROPERTIES
};
ZEND_GET_MODULE(tutorial);
 
ZEND_FUNCTION(tutorial)
{
 
 bool useHtml = false;
 
 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|b", &useHtml) == FAILURE)
  {
        RETURN_STRING("Missing Parameter", true);
    }
 
        if (useHtml == true)
        {
        php_printf("<a>Thompson Gaming Studios</a>");
        }
        else
        {
        php_printf("<a target=\"_blank\" class=\"ext\" href=\"http://studios.thompsonhosting.com\">http://studios.thompsonhosting.com</a><span class=\"ext\"></span>");
        }
}  



Файл stdafx.h для предыдущего выглядит так:

	//Php - Lite extension header file
	#pragma once
	 
	//Includes the zend_config.w32 header file and the php header file
	#include "zend_config.w32.h"
	#include "php.h"