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

  • SEARCH
  • Home
  • 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 8234119
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T18:22:14+00:00 2026-06-07T18:22:14+00:00

I have a pretty simple question but I am really new to php. I

  • 0

I have a pretty simple question but I am really new to php. I have just downloaded an interesting chat plugin called comechat. Precisely, there is a cometchat direvtoru that contains php files. The latter only need the $_SESSION[‘user’] to process. But it didn t and I think I have a path problem for my code to transmit the user’s session info.

On the side of my code, I have the following architecture : essentially three directories

  • classes (containing all my php files except index.php, the account.php generate the user session)
  • templates (containing all my html files)
  • public containing – index.php
    – css directory
    – js directory
    – cometchat directory

index.php process the php files of ‘classes’ and then the latter files process the html files using the smarty engine.

I tried to call the config files of the cometchat directory by proceeding to a require_once path/config.php in the index.php but it didn t work. So I have perhaps a silly question but : if I call this config file in index.php, and knowing that index.php instanciate an account class of account.php file (where the user’s session is created), does the require_once path/config.php will retrieve the session info. More generally, could anypne help to deal with this problem?

Best,
Mehdi

  • 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-06-07T18:22:17+00:00Added an answer on June 7, 2026 at 6:22 pm

    Perhaps you should call for a require_once index.php in the config file of the cometchat directory, in the config file of the cometchat directory, something like so :

    require_once(‘../index.php’)

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

Sidebar

Related Questions

This might be a pretty simple question, but if there really is a difference,
This is pretty simple question, but I'm having really hard time with it. I
I am new to PDO and I have pretty simple question. I have a
i have pretty simple simple question (i hope so). How do i change the
I have a pretty simple question which perhaps someone familiar with Server/Client design &
Pretty simple question. I have a few ASP RequiredFieldValdators checking some text boxes. Out
Pretty simple question. I'm quite certain I have the Class, method, codebehind, etc linked
hopefully a pretty simple question this time. I have a Select method in a
This question is pretty generic actually, but I'm really having trouble finding a good
The question is pretty simple actually. I have a module in my system containing

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.