1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

include not working

Discussion in 'PHP' started by Notting, Apr 11, 2007.

  1. lowridertj

    lowridertj Well-Known Member

    Messages:
    2,882
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    195
    #21
    sometimes instead of single quotes you must use double quotes instead with the include statement.
     
    lowridertj, Apr 16, 2007 IP
  2. sarahk

    sarahk iTamer Staff

    Messages:
    28,494
    Likes Received:
    4,457
    Best Answers:
    123
    Trophy Points:
    665
    #22
    Looking at the error
    I'd want to see
    <?php include('/linkmanager/links.php'); ?>
    PHP:
    changed to
    <?php include('/home/notting/public_html/linkmanager/links.php'); ?>
    PHP:
    BUT that page also has <html><body> tags (etc) in it so will not necessarily display properly. I'd make a separate version of it with just the text.

    I've never encountered that. Single and Double just give a different command to PHP on how to handle the string. That should be done before the include gets it...
     
    sarahk, Apr 16, 2007 IP
  3. lowridertj

    lowridertj Well-Known Member

    Messages:
    2,882
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    195
    #23
    I had mentioned your above a few times for full path. I think hes getting lost in all the posts.

    the single and double quotes for some reason in some scripts to have a certain type of effect. not sure why. I just know in my experiences with how some scripts handle the include statement and php processes the command it tends to need it one or the other.
     
    lowridertj, Apr 16, 2007 IP
    sarahk likes this.