Error: [function.include]: failed to open stream: No such

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • finnjavel
    New Member
    • Apr 2008
    • 2

    Error: [function.include]: failed to open stream: No such

    I get warning "[function.includ e]: failed to open stream: No such file or directory in......... on line 13"

    the line 13:

    include('folder main.php?folder no='.$folderno) ;
  • Markus
    Recognized Expert Expert
    • Jun 2007
    • 6092

    #2
    Originally posted by finnjavel
    I get warning "[function.includ e]: failed to open stream: No such file or directory in......... on line 13"

    the line 13:

    include('folder main.php?folder no='.$folderno) ;
    Unfortunately you can't pass arguments when including a file!

    include('folder main.php')

    is all you can include because it doesnt see the arguments as arguments but as an actual file name!

    Comment

    • finnjavel
      New Member
      • Apr 2008
      • 2

      #3
      Thanks. Not much luck with header() either :(

      Comment

      • ronverdonk
        Recognized Expert Specialist
        • Jul 2006
        • 4259

        #4
        Originally posted by finnjavel
        Thanks. Not much luck with header() either :(
        Please explain or do we guess what header() you mean?

        Ronald

        Comment

        • Markus
          Recognized Expert Expert
          • Jun 2007
          • 6092

          #5
          Originally posted by finnjavel
          Thanks. Not much luck with header() either :(
          I'm just thinking:

          You could set a variable on your page that includes the next page - in this variable store the params you initially wanted to pass in the filename.

          Then in the included file you can access the variable because it's been included through the parent file..

          Just thinking :)

          Comment

          Working...