• I am not good with PHP but I am learning…. quick question. Why can’t I echo PHP within a PHP tag?

    Here is what I am trying to do… but it’s not working:

    <?php
    function my_super_admin_widget() {
    global $blog_id;
    if( $blog_id == '42' ) {
    echo '<?php if (function_exists('easing_slider')){ easing_slider(); }; ?>'; }
    }
    ?>

    Thanks for your help!

Viewing 2 replies - 16 through 17 (of 17 total)
  • Thread Starter bwinn

    (@bwinn)

    I deleted sponsor_ad_widget.php and its still giving me an error. What do you think the problem is esmi? The trailing spaces?

    Thread Starter bwinn

    (@bwinn)

    Esmi, you were exactly right. It was the trailing spaces indeed. Thanks!

Viewing 2 replies - 16 through 17 (of 17 total)

The topic ‘echo PHP within PHP?’ is closed to new replies.