about include() function.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kennethD
    New Member
    • Apr 2010
    • 1

    about include() function.

    Include fuction doesn't work properly.I wanted to include a certain webpage in my web homepage using include() but is not working for me instead the function does display the informantion I need in different blank page but not in the home page.The syntex is correct(<?php include('myFile .php')) but what might be the problem?
  • Dheeraj Joshi
    Recognized Expert Top Contributor
    • Jul 2009
    • 1129

    #2
    Code:
    <?php include 'myFile.php' 
    
    // code goes here
    
    ?>
    This is how i use to include php files once up on a time. I am not sure about usage of parenthesis in include statement.
    This may work. :)

    Regards
    Dheeraj Joshi

    Comment

    • Atli
      Recognized Expert Expert
      • Nov 2006
      • 5062

      #3
      Hey.

      Keep in mind that the include keyword simply imports the code within the target file into the current document and executes it there.

      Beyond that, I would need to know more about what you are doing and what is happening to be able to offer anything more useful.

      Comment

      • ziycon
        Contributor
        • Sep 2008
        • 384

        #4
        If your trying to include a page from another server by default 'allow_url_incl ude' is disabled, I would strongly advise against you enabling this feature as it can open the server to a flood of security issues.

        Comment

        Working...