Jump to content

need a similar function to define


viion

Recommended Posts

I'm integrating phpbb3 to this website.

 

At the moment I have to put in the root location of where it is installed to the session code on my index so it knows where to find the phpbb files, the thing is I have to type in phpbb/ then that means i gotta put phpbb/ in other files when pulling session information and using href links.

 

How do I make it so i can just type like $phpbb_root and that be replaced with the value anywhere it see's it in an echo or just a value when being called, such as:

 

$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : '$phpbb_root';
Link to comment
Share on other sites

For some reason it doesnt translate and just comes out as the variable not the value.

 

Like this:

Warning: include($phpbb_root/common.php) [function.include]: failed to open stream: No such file or directory in /home/content/s/i/i/siion/html/testsites/002/index.php on line 10
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.