Theres a functionality that I need that is not built into the PHP source code.

I would like to modify a .c file in the code, recompile, and then be able to execute the php function with the same name as the one I added to the .c in my .php file.

How would I go about doing this?

I'm aiming to add FXP (site-to-site) transfer ability to the existing ftp.c file in php-5.3.1/ext/ftp


Also, how would I go about testing these changes without actually having to recompile php every change I make?

Thanks for the help in advance.

Writing Extensions: http://devzone.zend.com/article/1021

If you're changing the actually internal PHP code you will have to compile every time. That's how compiled languages work :P

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.