Need help to recode a line of code for globals off

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dis5085
    Junior Member
    • Jul 2005
    • 9

    #1

    Need help to recode a line of code for globals off

    Here is what I have....
    works with globals on....

    include ("$DOCUMENT_ROOT/template/$current_template/fonts.php");

    here is what i tried to change to

    include ($_SERVER['DOCUMENT_ROOT']. '/tempate/' . $current_template . 'churchconfig.php');

    but didn't work.
  • AndrewT
    Administrator
    • Mar 2004
    • 3655

    #2
    See your ticket. That code is correct, you have other register_globals problems.

    Comment

    • Elite
      Senior Member
      • Apr 2004
      • 168

      #3
      I think you're missing a slash before the file name (e.g. '/churchconfig.php' )

      Comment

      • djn
        Senior Member
        • Mar 2004
        • 140

        #4
        Maybe it's too late and you've already solved it, but I see a '/tempate/' instead of '/template/'...?

        Comment

        Working...