Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2008
    Posts
    9

    Unanswered: PHP include help!

    Ok i have this working script now thanks to a member here:

    Quote:
    <?
    //populate following array with image urls
    $images = Array(
    "http://www.xninelivesx.com/header_1.jpg",
    "http://www.xninelivesx.com/header_2.jpg",
    "http://www.xninelivesx.com/header_3.jpg",
    "http://www.xninelivesx.com/header_4.jpg",
    "http://www.xninelivesx.com/header_5.jpg"
    );

    $random_image = $images[rand(0,count($images)-1)];

    echo "<img src=\"$random_image\">";
    ?>

    that works perfect.. now i need to use it as an include on my forums.. please give me the right code!

    thanks,

    Unpleasant SPAMMY links removed by PC poots
    Last edited by pootle flump; 10-08-08 at 05:25.

  2. #2
    Join Date
    Nov 2004
    Location
    out on a limb
    Posts
    13,692
    Provided Answers: 59
    lets see know

    include ("path/to/include/file.ext");

    the PHP manual is usually a pretty fine place to go looking
    Incidentally Id strongly suggest you change your signature immediately famous pornstar movies & penis enhancement are inappropriate in my books
    I'd rather be riding on the Tiger 800 or the Norton

  3. #3
    Join Date
    Sep 2008
    Posts
    2
    i think use require_once() better
    like this :require_once("path/to/include/file.ext");

  4. #4
    Join Date
    Dec 2008
    Posts
    2
    Why dont use include_once("URL 2 IT");

Posting Permissions

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