Php Problem

Discussion in 'PHP' started by geekazoid, Jul 7, 2006.

  1. #1
    <?php include ($filenames[$num]); ?>

    That is the script i use to include the .html file on my page but i need to change one part of it

    The .html file that that script includes, it gets it from my main folder on my server my htdocs one. I need to it collect the .html file from a folder in my htdocs folder called VOTDS

    So something like /VOTDS/<?php include ($filenames[$num]); ?>

    But i have tried that and it doesnt work any ideas ?
     
    geekazoid, Jul 7, 2006 IP
  2. mad4

    mad4 Peon

    Messages:
    6,986
    Likes Received:
    493
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Put the fill path eg include('http://www.site.com/folder/$filenames[$num]');
     
    mad4, Jul 7, 2006 IP
  3. Allan

    Allan Peon

    Messages:
    41
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    include is a file system call, are you specifying the full path or relative path
     
    Allan, Jul 8, 2006 IP