RE: [PHP] Custom PHP Extensions

From: Date: Wed, 19 Jul 2000 15:51:43 +0000
Subject: RE: [PHP] Custom PHP Extensions
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-7288@lists.php.net to get a copy of this message
Thank you. This was exactly what I was looking for. Matthew Aznoe -----Original Message----- From: Rasmus Lerdorf [mailto:rasmus@php.net] Sent: Tuesday, July 18, 2000 9:37 PM To: Matthew Aznoe Cc: php-general@lists.php.net Subject: Re: [PHP] Custom PHP Extensions > I have a need to add functionality to my PHP scripts to handle secure data > playing with passwords, etc) that I would like to "hide" from any would-be > prowlers. It seems to me that the most secure solution for this is to add > extension functions to PHP and compile it into the actual PHP interpreter. > > This has led me to a search across the web for documentation on the subject. > I have found three sources, but one is in French which does not help me too > much. :-) One, of course, is the on-line documentation of the PHP manual > itself, but it really gave little details on how to set up the compilation > of your extensions so that they would be included in PHP. I am a decent C > programmer, but I am certainly no guru. I have a lot to learn. Therefore, > I need a fair amount of help here, and from what I can see from scattered > posts, I am not the only one. The other site that I saw was at > http://www.uk.research.att.com/~qsf/phpmodule/ , but the author > himself > admitted that he wasn't sure that his solution is optimal. > > Does any "correct" solution exist that is well documented? If not, is there > someone on this message board who could assist the rest of us with a > discussion on the how's and why's of adding custom extensions. I realize > that I may be opening a can of worms here, but as I said, I do not believe > myself to be alone in wanting to find a solution to this problem. I just gave a talk on this subject at the O'Reilly Conference in Monterey. The slides are online at http://conf.php.net Pick the advanced tutorial (ora2) and go to slide 20. It walks you through using ext_skel to build an extension. Obviously, also read the README.EXT_SKEL in the PHP source code. -Rasmus

« previous php.general (#7288) next »