Re: Name for new function

From: Date: Sun, 16 Jul 2000 19:54:41 +0000
Subject: Re: Name for new function
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-24682@lists.php.net to get a copy of this message
Hi, Rasmus Lerdorf wrote: > > That's even a better idea! If you don't mind, I'll look into that. But > > I've little > > experience writing such an exension. Is there a list of macro's available or > > something. I think it is needed that one can determinate if MySQL (or any other RDMS) > > is enabled. In know it is possible, could you point me in the right direction? > > Start by reading README.EXT_SKEL and go from there. Then poke around and > look at other functions that take the same type of arguments and return > the same stuff as your function and see how they have been implemented. > It really isn't very hard. > > To check to see if MySQL is compiled in, you would check the HAVE_MYSQL > constant defined in php_config.h. Every optional feature will have a > constant in that file. Ok, that works out. I moved the home made function to the new extension (called db_layer at the moment). Now I have the following questions: Where does "INTERNAL_FUNCTION_PARAM_PASSTRHU" come from? If I specify a link as second parameter, PHP gives me "Supplied resource is not a valid MySQL-Link resource in /test.php on line 5. However, var_dump gives "resource(1) of type 8". I've problems getting a MySQL LInk-resource for the query to made. ANy idea's ? -- Derick Rethans JDI Media Solutions H.v.Tussenbroekstraat 1 6952 BL Dieren The Netherlands e-mail: d.rethans@jdimedia.nl http://www.jdimedia.nl/

« previous php.dev (#24682) next »