SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    Almeaty Member
    Join Date
    Jul 2000
    Location
    Nowhere
    Posts
    278
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    echo include( "path/filename.html" );
    this is the code which I use for including an HTML file into my PHP code. It does print out the file's content but always followed by a '1'.

    Why is that? The HTML file is plain html so no php-code or something. There's no '1' near the include command, so it must be produced during inclusion...

    any idea?

  2. #2
    Dumb PHP codin' cat
    Join Date
    Aug 2000
    Location
    San Diego, CA
    Posts
    5,460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Because you are echoing the result of an include() so the result of the function which would be 1 for an include() all you need is

    include() not echo include()
    Please don't PM me with questions.
    Use the forums, that is what they are here for.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •