NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
license loading problems (am I missing something?)


Joined: 06 Feb 2008
Posts: 13
Location: zagreb, croatia
Reply with quote
Hi guys,

My dev runs on xp/apache2.2/php5.2.5/phpexpress-php-5.2.dll

I have some kind of an issue with license loading. The documentation is a bit unclear about this as well (section 8.2 How to load license). This is the error message I keep getting:
Code:
Fatal error: Failed to load encoded file (C:\xampp\htdocs\test_encoded\phpexpress_test.php) license error (0001): no license loaded in C:\xampp\htdocs\test_encoded\phpexpress_test.php on line 0


This example uses just two test files:
c:\xampp\htdocs\test_encoded\_license1.txt
c:\xampp\htdocs\test_encoded\phpexpress_test.php


I managed to load license by using:
1. auto-load license (files encoded with protection enabled and autoload license option)
2. .htaccess + apache config files - vhosts etc (files encoded with protection enabled)
Code:
php_value phpexpress.add_license "_license1.txt"


I was unable to load license:
1. from php.ini
Nothing worked:
Code:

;extension=phpexpress-php-5.2.dll
zend_extension_ts="C:\xampp\xampp\php\ext\phpexpress-php-5.2.dll"
phpexpress.add_license="c:\xampp\htdocs\test_encoded\_license1.txt"
;phpexpress.add_license=/_license1.txt
;phpexpress.add_license=_license1.txt


2. from encoded (but NOT protected) php file
Code:
$a = pelm_load_license("_license1.txt");


pelm_load_license returns bool (true), but api functions pelm_license_filename(); pelm_get_attribute('test_attr'); ... they all return false! Sad
Am I supposed to use them? I am missing the point of loading license on script runtime.


Any help would be greatly appreciated!

Best regards
Neven
View user's profileFind all posts by sevenSend private messageVisit poster's websiteICQ Number
license loading problems (am I missing something?)
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic