How to include a out file?

Discussion in 'PHP' started by yaman, Mar 29, 2008.

  1. #1
    Hello,

    I have to include 1 file to another 20 sites. So is there any function about this? I don't want to use file_get_content

    Thank you. :rolleyes:
     
    yaman, Mar 29, 2008 IP
  2. jayshah

    jayshah Peon

    Messages:
    1,126
    Likes Received:
    68
    Best Answers:
    1
    Trophy Points:
    0
    #2
    Like?:

    <?php
    
    include("http://www.domain.com/somepage.php");
    
    ?>
    PHP:
    Jay
     
    jayshah, Mar 29, 2008 IP
  3. yaman

    yaman Well-Known Member

    Messages:
    475
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    110
    #3
    yes like that

    is this working? :|
     
    yaman, Mar 29, 2008 IP
  4. Xabber

    Xabber Active Member

    Messages:
    437
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    58
    #4
    Should work.
     
    Xabber, Mar 29, 2008 IP
  5. yaman

    yaman Well-Known Member

    Messages:
    475
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    110
    #5
    no, i didn't work
     
    yaman, Mar 29, 2008 IP
  6. Xtrm2Matt

    Xtrm2Matt Active Member

    Messages:
    129
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    58
    #6
    Are the websites hosted on the same server?
     
    Xtrm2Matt, Mar 29, 2008 IP
  7. owenj

    owenj Guest

    Messages:
    25
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Try fopen(). Your webmaster may have disabled this function.
     
    owenj, Mar 30, 2008 IP