• New in : SPIP 1.9

The technical tag #EVAL{} returns the value calculated by evaluating the PHP expression that is passed as an argument:
#EVAL{2*7} will display 14,
#EVAL{_DIR_IMG_PACK} will display the path to the ecrire/img_pack/ directory,
#EVAL{phpversion()} will display the server’s PHP version number

Since this tag interprets PHP code live, it needs to be employed with caution.

Author Mark Published : Updated : 26/10/12

Translations : عربي, català, English, Español, français, Nederlands