
Whenever the language is updated, XAMPP will be updated. Xampp Download users can rest assured that they are getting the latest and most stable version. Even on localhost, this versatile software suite is a flexible solution for new developers or teams looking to quickly test new products. XAMPP is a fast way to implement web development solutions. XAMPP comes with Apache HTTP, MariaDB, PHP, and Perl interpreters. Xampp Download For Windows 7 is an open-source web development application launched by Apache Friends that offers a complete development stack in one package.

If "7" is displayed, the function is successfully called.Xampp Download For Windows 7 32 bit Old Version php file under/var/www/with the following content:

$ /opt/lampp/lampp restartĬreate a hello.

configure -with-php-config=/opt/lampp/bin/php-config $ make LDFLAGS=-lhello $ Make test (test whether the installation is normal) $ Sudo make install this command will put so in the extension file of phpĮdit the php configuration file to load the so Library $ vim /opt/lampp/etc/php.ini Find the extension part, add extension = hello.

Save and exit, compile and install: $ CFLAGS=-m32 CPPFLAGS=-m32 CCASFLAGS=-m32. so file.įirst, write a php module (php extension), call the functions in this module in php, and then call the functions in so through this module.įirst, make a simple so file: /** * hello.c * To compile, use following commands: * gcc -O -c -fPIC -o hello.o hello.c -m32 * gcc -shared -o libhello.so hello.o -m32 */ int hello_add( int a, int b) Because the Environment System is 64-bit, but php is 32-bit, a 32-bit library needs to be compiled, in this article, php calls C language in Ubuntu. Ubuntu64-bit system xampp environment for compiling 32-bit php extension Libraryįor the project, php needs to call the C language library.
