Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Senior Coder
    Join Date
    May 2005
    Posts
    2,137
    Thanks
    96
    Thanked 72 Times in 72 Posts

    problem with require

    In my theme folder I am using a classic theme. It has

    PHP Code:
    require("SSI.php"); 
    Which is fine for the forum, however when I installed a forum mod for an ajaxchat, the path is wrong for it. The correct path for the chat is,

    PHP Code:
    require("../SSI.php"); 
    If I do that, the forum crashes, if I do the other, the chat crashes. I tried using include for both, or require for one and include for the other, but nothing works.
    Rowsdower! has accused me of having mental problems, and the administrator allowed it. What a great forum huh?

  • #2
    Regular Coder
    Join Date
    Dec 2009
    Location
    UK
    Posts
    495
    Thanks
    0
    Thanked 58 Times in 58 Posts
    put
    PHP Code:
    require('/full/path/to/SSI.php'); 
    The full path should be used
    My site: JayGilford.com
    Resources:
    PHP Pagination Class | Getting all page links | Handling PHP Errors properly
    If you like a users help, show your appreciation with the rep and thanks buttons :)

  • #3
    Senior Coder
    Join Date
    May 2005
    Posts
    2,137
    Thanks
    96
    Thanked 72 Times in 72 Posts
    I got this error.

    Fatal error: require() [function.require]: Failed opening required '/full/path/to/SSI.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/fayt/public_html/Themes/classic/index.template.php on line 2
    Rowsdower! has accused me of having mental problems, and the administrator allowed it. What a great forum huh?

  • #4
    Regular Coder
    Join Date
    Dec 2009
    Location
    UK
    Posts
    495
    Thanks
    0
    Thanked 58 Times in 58 Posts
    well obviously you need to change the path from /full/path to your files ACTUAL path
    My site: JayGilford.com
    Resources:
    PHP Pagination Class | Getting all page links | Handling PHP Errors properly
    If you like a users help, show your appreciation with the rep and thanks buttons :)

  • Users who have thanked JAY6390 for this post:

    masterofollies (01-15-2010)

  • #5
    Senior Coder
    Join Date
    May 2005
    Posts
    2,137
    Thanks
    96
    Thanked 72 Times in 72 Posts
    Awesome, works great. Thank you
    Rowsdower! has accused me of having mental problems, and the administrator allowed it. What a great forum huh?


  •  

    Posting Permissions

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