Issue with the include function.

Permalink Browser Info Environment
So I'm using this block on a website with an account login, I have the php coded and it works fine if I build my site externally using dreamweaver but I've recently switched to concrete5 for ease of use and quicker build times.

The login panel works by having a php include of the main anel file, this then links in itself to include the login panel in another php file. The login panel from the second php file displays and I an enter an accounts details but the problem I'm having is when I click login it's supposed to then send the data to the remote mysql database and create a session and bring up options within the account panel for changing of password and such things.

If I use an iframe in a html block this works and I can log in but the logout feature doesn't work and other functions have issues like (it's a game account) transferring of items to the character via the panel(this feature works on a non-concrete site)but if I try to use this block to make it an include like I would on a non-concrete site then when I click login nothing happens, it does not continue to the features it just remains showing the login panel.

Any ideas? Sorry for the long post trying to be detailed.

Type: Discussion
Status: In Progress
AnimaDraconis
View Replies:
echan101 replied on at Permalink Reply
echan101
Here's an example fromhttps://stackoverflow.com/questions/16048818/include-php-files-when-...


<?php
echo $_SERVER['DOCUMENT_ROOT']; //should be '/main_web_folder/';
include($_SERVER['DOCUMENT_ROOT'].'/../includefile');

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.