phpBeans

Missing Constants

Forum / Client Programming / Missing Constants

Reply         Subscribe         Start new thread         Syndicated Feed (RSS)        

Displaying 1 to 2 of 2 Previous   1   Next
Author Message
jblythe

Posts: 2
Missing Constants - Posted: January 4, 2005 - 7:47 PM Quote and reply
Hi everyone,

I just tried out the examples from http://www.phpbeans.com/index/news-app/story.3 but I kept getting the PHP error message 'Parse error: parse error in phpbeans.php(265) : eval()'d code on line 3' so I was looking at the code the client class was trying to evalute and noticed that the constants CLOSE_TAG, OPEN_TAG, TAB etc.. were not being defined so the eval was failing I added the following lines to phpbeans.php and the example worked fine.

define('CLOSE_TAG','?>'); define('OPEN_TAG','<?php'); define('TAB', ' '); define('TABx2', ' '); define('TABx3', ' ');


My question is why arent these constants being defined am I missing something ?

Regards,

Joseph

Back to top
lux

Posts: 17
Re: Undefined constants - Posted: February 11, 2005 - 2:05 AM Quote and reply
These constants have been fixed in the latest version:

http://www.phpbeans.com/index/client_for_php_download

Cheers,

Lux

Back to top

Return to Top


  Powered by Sitellite Enterprise PHP CMS