Thread: using include()

    #1
  1. No Profile Picture
    Ulrik N
    Guest
    Devshed Newbie (0 - 499 posts)
    Hi there!

    I would like to set $dok_body to the output from include($f)

    $f = ./somescript.php3;
    $dok_body = include($f);


    This is what I would do, but it dos not work (I get an error)
    Anyone???


    ------------------
    -ulrik-
  2. #2
  3. No Profile Picture
    rod k
    Guest
    Devshed Newbie (0 - 499 posts)
    include() doesn't have output. include(filename) simply takes the data in filename and inserts it into the script. Unless the code in filename is only one line this won't work (and I'm not even sure if it would work then. Theoretically it would...)

    Rod
  4. #3
  5. No Profile Picture
    Ulrik N
    Guest
    Devshed Newbie (0 - 499 posts)
    Thanks!

    I was'nt thinking straight, was I.....

    ------------------
    -ulrik-

Similar Threads

  1. the linker, the include and interdependent classes
    By behco in forum C Programming
    Replies: 7
    Last Post: February 1st, 2004, 08:55 AM
  2. the linker, the include and interdependent classes
    By behco in forum C Programming
    Replies: 0
    Last Post: January 31st, 2004, 01:57 PM
  3. include path problems - after uploading to host
    By alaw in forum PHP Development
    Replies: 2
    Last Post: December 9th, 2003, 06:11 PM
  4. Replies: 6
    Last Post: October 3rd, 2003, 02:01 PM
  5. lnk2001 error msg
    By nobby in forum C Programming
    Replies: 0
    Last Post: August 3rd, 2003, 10:06 AM

IMN logo majestic logo threadwatch logo seochat tools logo