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
https://forums.phpfreaks.com/topic/145728-need-a-similar-function-to-define/
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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.