? calling a module function from another module...

From: Date: Mon, 08 Jan 2001 15:01:00 +0000
Subject: ? calling a module function from another module...
Groups: php.dev 
Request: Send a blank email to php-dev+get-43380@lists.php.net to get a copy of this message
Hi! How do I call a function from another module from within my own module? I can find the module entry and the function names, but I'm new to php-development so I'm not sure what to do next to actually call the function (with parameters etc...) This is what I've got so far: [...] if (zend_hash_find(&module_registry, "mysql", strlen("mysql")+1, (void**)&module) == FAILURE) { return; } array_init(return_value); func = module->functions; while(func->fname) { add_next_index_string(return_value, func->fname, 1); if (!strcmp(func->fname, "mysql_connect")) { /* func->handler(); // this doesn't work yet, I'm not sure how this is done */ } } [...] Thanks & Cheerio, Marc.

« previous php.dev (#43380) next »