search
  • Sign In
  • Sign Up
Password reset successful

Follow the proiects vou are interested in andi aet the latestnews about them taster

Table of Contents
PHP extension development (1) - Create basic framework, php framework
Home Backend Development PHP Tutorial PHP extension development (1)-create basic framework, php framework_PHP tutorial

PHP extension development (1)-create basic framework, php framework_PHP tutorial

Jul 12, 2016 am 09:00 AM

PHP extension development (1) - Create basic framework, php framework

Generate the basic framework for PHP extension development. ​ 1. Under Linux ​

$>cd ~/{php source code}/ext

$>./ext_skel --extname=simple ​ Creating directory simple
Creating basic files: config.m4 config.w32 .svnignore simple.c php_simple.h CREDITS EXPERIMENTAL tests/001.phpt simple.php [done].

To use your new extension, you will have to execute the following steps:

1. $ cd ..
2. $ vi ext/simple/config.m4
3. $ ./buildconf
4. $ ./configure --[with|enable]-simple
5. $ make
6. $ ./php -f ext/simple/simple.php
7. $ vi ext/simple/simple. c
8. $ make

Repeat steps 3-6 until you are satisfied with ext/simple/config.m4 and
step 6 confirms that your module is compiled into PHP. Then, start writing
code and repeat the last two steps as often as necessary. ​ 2. Under Windows ​ $>cd ~/{php source code}/ext $>php.exe ext_skel_win32.php --extname=simple ​ Creating directory simple
Creating basic files: config.m4 config.w32 .svnignore simple.c php_simple.h CREDITS EXPERIMENTAL tests/001.phpt simple.php [done].

To use your new extension, you will have to execute the following steps:

1. $ cd ..
2. $ vi ext/simple/config.m4
3. $ ./buildconf
4. $ ./configure --[with|enable]-simple
5. $ make
6. $ ./sapi/cli/php -f ext/simple/simple.php
7. $ vi ext/ simple/simple.c
8. $ make

Repeat steps 3-6 until you are satisfied with ext/simple/config.m4 and
step 6 confirms that your module is compiled into PHP. Then, start writing
code and repeat the last two steps as often as necessary.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1093867.htmlTechArticlePHP extension development (1) - Create a basic framework, and the php framework generates the basic framework for PHP extension development. 1. Under Linux $cd ~/{php source code}/ext $./ext_skel --extname=simpleCreating directory sim...
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undress AI Tool

Undress AI Tool

Undress images for free

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

ArtGPT

ArtGPT

AI image generator for creative art from text prompts.

Stock Market GPT

Stock Market GPT

AI powered investment research for smarter decisions

Popular tool

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Using PHP and MySQL to implement form automatic filling: taking student information as an example Using PHP and MySQL to implement form automatic filling: taking student information as an example Jan 14, 2026 pm 12:54 PM

This tutorial details how to use PHP to retrieve specific student information from a MySQL database and automatically populate it into an HTML form. The content covers database connections, SQL queries, data acquisition, and methods of dynamically embedding data into form input fields, aiming to help developers create efficient data editing or display interfaces.

How to implement PHP Interfaces? (Object-Oriented Design) How to implement PHP Interfaces? (Object-Oriented Design) Jan 12, 2026 am 05:27 AM

PHPthrowsafatalerrorifaclassimplementsaninterfacebutmissesonemethod,haltingexecutionimmediately;allinterfacemethodsmustbeimplementedwithmatchingsignatures,types,andreturntypes.

Detailed explanation of the meaning of $pdf in Dompdf and the use of page_text function Detailed explanation of the meaning of $pdf in Dompdf and the use of page_text function Jan 13, 2026 am 07:27 AM

This document details the meaning of the `$pdf` variable in Dompdf and how to use the `page_text` function to add text to a PDF page. It also covers how to use these features in PHP code and HTML embedded scripts, and provides security considerations for enabling HTML embedded scripts. Through this article, you will be able to master the method of page customization and dynamic content addition in Dompdf.

PHP Type Hinting: A Guide to Stronger Code PHP Type Hinting: A Guide to Stronger Code Jan 13, 2026 am 03:18 AM

PHPtypehintingenhancescodereliabilitythroughargument,return,propertytypehints,andbestpracticeslikestrictmode.Itenforcesdatatypesforparameters,returnvalues,andproperties(since7.4),supportsnullabletypeswith?,andworkswithscalars,classes,arrays,andinterf

What is Object-Oriented Programming (OOP) in PHP? (simple explanation) What is Object-Oriented Programming (OOP) in PHP? (simple explanation) Jan 07, 2026 am 02:49 AM

OOPinPHPorganizescodeintoreusableclassesandobjects,supportingencapsulation,inheritance,andpolymorphismtoimprovemaintainability,reducerepetition,enhancesecurity,andalignwithmodernframeworkslikeLaravel.

PHP Date and Time Interval Conflict Detection and Resource Availability Determination Guide PHP Date and Time Interval Conflict Detection and Resource Availability Determination Guide Jan 14, 2026 pm 01:15 PM

This article details how to efficiently detect date and time interval conflicts in PHP to determine the availability of resources (such as vehicles, conference rooms). Efficient management of resource reservations is achieved by converting dates to timestamps and applying logical comparisons to identify overlaps between requested intervals and existing reservation intervals. The tutorial covers the availability check of single resource and multiple resources, and provides code examples and precautions.

How to pass the drop-down menu selected value to the modal box for confirmation before submitting the form How to pass the drop-down menu selected value to the modal box for confirmation before submitting the form Jan 15, 2026 am 01:27 AM

This tutorial details how to implement a common interaction pattern in a Web page: after the user selects an item through the drop-down menu, a second confirmation is performed through the Bootstrap modal box, and the selected value is dynamically displayed in the modal box, and finally the form is submitted after the user confirms. The article will provide a complete solution through HTML structure, JavaScript event processing and DOM operations to ensure that users receive clear prompts before performing key operations such as deletion.

Solve the CORS problem of cross-domain access to PHP files by Svelte applications Solve the CORS problem of cross-domain access to PHP files by Svelte applications Jan 13, 2026 pm 02:48 PM

When a Svelte app tries to get data from a PHP file on an external host and fails, even though it works for text files, this is usually due to the Cross-Origin Resource Sharing (CORS) policy enforced by the browser. This tutorial will delve into the CORS mechanism and provide detailed PHP server-side configuration solutions. By setting HTTP response headers such as Access-Control-Allow-Origin, Svelte applications can successfully make cross-domain data requests.

Related articles