Re: Overriding PHP build-in functions

From: Date: Mon, 17 Sep 2001 11:15:20 +0000
Subject: Re: Overriding PHP build-in functions
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-67581@lists.php.net to get a copy of this message
You have two ways: 1)Recompile PHP (as it comes with source code) and put your decryption functions just after the reading of the .PHP and before getting it parsed. 2)If you want to do a windows solution w/o modifying source code then you have to hack into the PHP code and add your new functions: The idea is to set a hook on the CreateFileA() and ReadFileA() windows APIs and replace them with our new functions that only decrypts PHP files (in memory) and them returns them to PHP. //elias "Robert Klinkenberg" <robert@nts.nl> wrote in message news:41995094E2FED31197F6005004B2739F01088BD7@ntsintra.nts.nl... > Is it possible to override the php build-in functions without changing the > PHP base distribution? > > We want to encode our scripts but zend is a bit expensive so we are looking > to write something ourself. > (encryption libs are freely available, so the main problem is changing the > file open function so that it decodes the file while reading it from disk) > > Robert Klinkenberg > >

« previous php.general (#67581) next »