PhpExpress API |
|
When I set up a file called errhandler.php, whose contents are:
I get this error message when my date is expired: Fatal error: Call to undefined function pe_handle_error() in c:\my documents\My Webs\localhost\nucoder\errhandler.php on line 2 I do not understand how this function works. Example, please? Thank you. |
||||||||||||||
|
Site Admin
|
didn't you mean if (pelm_is_licensed() == True) ?
with this code you can load a license but you can not have current file to be executed if it is covered by this license. To be executed, the opcodes should be unencrypted first but it can not be done without the license loaded. So, you need to follow one of the ways briefly outlined below: 1) use --licfile aw_lic.txt nucoder commandline option and your scripts will try to load aw_lic.txt before they are executed 2) use phpexpress.add_license=aw_lic.txt setting in php.ini and license will be loaded when php starts up 3) if you want to load the license yourself in moon.php, you have to exclude moon.php from being covered by the license. To do this use --excludelic moon.php command line option.
Similarly, you can't handle license errors in a file that is protected with license. Make sure that the file is excluded from the license coverage using --excludelic option and don't forget to specify errhandler.php in --eh option: nu-coder --eh errhandler.php --excludelic errhandler.php ... |
||||||||||||||||||
_________________ The PHP IDE team |
pe_handle_error() function? |
|
Hi,
I've bought NU-CODER 2-3 days ago, and now i've a problem with pe_handle_error function. I have created a license file named "xp.lic" and then encoded some PHP scripts with the command: nu-coder -k try_me --licfile d:\web\xperiment\xp.lic --eh d:\web\xperiment\error_enc.php --excludelic d:\web\xperiment\error_enc.php d:\web\xperiment d:\web\codelock (document root for Apache server is d:\web) the script error_enc.php contains follow lines: <?php pe_handle_error($errcode, $errmessage, "xp.lic") ; ?> i'm getting a fatal error like this: Fatal error: Call to undefined function pe_handle_error() in D:\web\Xperiment\error_enc.php on line 2 Yesterday I've posted the problem to support service but no answer yet Have you some suggestion? Is a bug? |
||||||||||||
|
Site Admin
|
pe_handle_error is a function that _you_ have to declare and this function will be called as soon as error related to loader functionality arose.
|
||||||||||||
_________________ The PHP IDE team |
|
Thank You dmitri, but how could i intercept the error code, the message etc?
have you some example? Thank you |
||||||||||||
|
Guru master
|
picmauro, as Dmitri says, it is a function that you declare, that means that if you create the function in your code you get the message and error code:
|
||||||||||||||
|
|
Thanks Blizz,
My problem was which method the variables was passed to function pe_handle_error and not how to declaire a function. However there are different from "pe_handle_error($errcode, $errmessage, $licfilename)" and "pe_handle_error( $nErrorCode, $sErrorMessage, $sLicenseFile)" Now does work |
||||||||||||
|
Guru master
|
The parameter names don't matter, as long as there are 3 (according to your example).
Glad it works now. |
||||||||||||
|
PHPExpress API - manage cache programmatically - possible? |
|
Hi guys,
I must appreciate, that PHPExpress seems to be one of the best (meaning performance boost and stability) PHP opcode cache around. So far I have tested it on IIS, apache+win, httpd+centos - no issues found. Now I am wondering - would it be possible to publish somewhat more of basic API on it..? Sometime, it would be very handy to control programmatically cached files - e.g. - delete particular cached file - add cached file (pre cache large scripts on startup) - get array of cached files APC has similar API. Would you consider this please...? Thank you. Lubos |
||||||||||||
|
PhpExpress API |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by