vishal wrote:
we are using dll files like lib_mysql.dll to access the built-in
functions to access mysql database in php.
is there anyway so that i can make my dll and put my functions
in dll and then access them so it protects my function source
code.
There are other ways to protect your source code, such as
encoding.
If you insist on compiling your PHP code into DLLs, consider
this:
1. DLLs are platform-dependent. You can only use them in
under one OS. DLLs compiled under Windows will not work
under Linux and vice versa.
2. Installation of DLLs requires root-level privileges on
the host machine.
3. While it is possible to compile PHP into DLLs (Phalanger
can do that), there is no guarantee that those DLLs
will be usable by PHP. In fact, PHP has a rather
strict set of requirements as to how extension libraries
should be written. DLLs compiled by Phalanger, in contrast,
are meant to be used by .NET languages, not PHP...
Cheers,
NC