• hello,
    i’m trying to run a simple function to test mfunc..

    <!--mfunc test()-->
    <?php test() ?>
    <!--/mfunc-->
    
    <?php
    function test(){
    	echo "aa";
    }
    ?>

    its return <!–mfunc–> and break my code..

    when i try to set late init to 1 and get this error: Fatal error: Call to undefined function test() in..

    whats wrong?

    http://wordpress.org/extend/plugins/wp-super-cache/

Viewing 1 replies (of 1 total)
  • Thread Starter intrd

    (@intrd)

    okay i’ve solved the problem using space before –>, but now i’m trying to show a dynamic rand() value, and always get the same cached value..

    <?php function test(){
    echo rand(1,100);
    }
    ?>
    <!--mfunc test() -->
    <?php test() ?>
    <!--/mfunc -->
Viewing 1 replies (of 1 total)
  • The topic ‘mfunc crashing the code (i've tried late init..)’ is closed to new replies.