Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6112967
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:48:18+00:00 2026-05-23T14:48:18+00:00

I am using this chat: http://www.phpfreechat.net/ I place it inside a folder called chat

  • 0

I am using this chat: http://www.phpfreechat.net/

I place it inside a folder called chat and when it’s run, everything looks good. But if I try to include it in another file one folder up, it will say something like:

Strict Standards: Non-static method pfcGlobalConfig::Instance() should not be called statically, assuming $this from incompatible context in /home/brianl/repo/video_server/sfproject/apps/frontend/modules/job/templates/chat/src/phpfreechat.class.php on line 44 .....

The files are called correctly by using

require_once dirname(__FILE__).'/pfccommand.class.php';

and there is no path error.

Any ideas?
Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T14:48:19+00:00Added an answer on May 23, 2026 at 2:48 pm

    I would check pfccommand.class.php to make sure that there are no relative includes involved in that class file. When I was first starting out programming in PHP I was stuck for 2 weeks on a relative include issue between two different pages. I solved this by using semi-static includes (like you are using with dirname(__FILE__) in your example).

    EDIT:

    Well, when you know the directory structure, you can use that knowledge to build it dynamically. You just need to make sure that the files stay where they are supposed to. For example:

    realpath(dirname(__FILE__) . '/..';

    That right there will give you the directory, in full form, directly below the current files directory. That is what I call a dynamic directory. A static directory would be:

    include_once('/var/www/website/public_html/filename.php'); which would require that the directory structure be the same EVERYTIME, and is a hassle if you ever change hosts, or need to push your files up a directory.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is this chat using long polling or http streaming ? http://go-mono.com/moonlight/chat.aspx
I have created iphone bluetooth chat application using following tutorial:http://www.devx.com/wireless/Article/43502/1954. It works well.But when
Using this code to zip a folder and it works perfect on small files
I've implemented a web based instant messaging / chat feature using http binding and
This is the node-chat I'm inquiring about: http://github.com/scottgonzalez/node-chat How are the messages being passed
I have a very simple chat system I've built using PHP and MySQL (this
I was just reading the http://www.meebo.com/ About Us page, and read this line :
The example I'm trying to compile is from: http://www.boost.org/doc/libs/1_46_1/doc/html/boost_asio/examples.html (the chat example) Here is
I am trying to create a simple ajax chat using JQuery and ASP.NET. My
Using this question as the base is there an alogrithm or coding example to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.