the Return of: How do you add a new PHP page?

This forum is now closed as part of retiring phpBB2.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

This forum is now closed due to phpBB2.0 being retired.
Post Reply
morkovka
Registered User
Posts: 2
Joined: Sat Feb 15, 2003 7:08 am

the Return of: How do you add a new PHP page?

Post by morkovka »

Hi guys!
this is actually related to this one:
http://www.phpbb.com/phpBB/viewtopic.php?t=75111


But, what if you want to add a page such that it is in some subdirectory.
For example, file page1.php in the directory photos: photos/page1.php
Also, what if i am using different database connections and other code from within that page1.php page- how can i coordinate them together?

i tried making the $phpbb_root_path set to "../" but it gives me "critical error" ->


=====
phpBB : Critical Error

Error updating sessions table
=========



I want to merge some existing database of users to some other framework - and that is really a pain in the neck..
sj26
Registered User
Posts: 447
Joined: Fri Dec 14, 2001 4:06 pm
Location: /dev/cpu/[0-9]+ :D
Contact:

Post by sj26 »

It is either:
a) a mod you have installed or
b) you have the sessions table full problem (but I don't think so) or
c) you typed something wrong :P

because when i used the code

Code: Select all

<?php
define('IN_PHPBB', true);
$phpbb_root_path = '../';

include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);

// 
// Start session management 
// 
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
// 
// End session management 
// 

?>
WOOT! this works fine...
<?php

include($phpbb_root_path . 'includes/page_tail.'.$phpEx);

?>
taken from the topic you mentioned it all works fine...
[ Working on: It's a secret! ]
[ Links: My Mods | My Site | PALGN ]
Post Reply

Return to “[2.0.x] MOD Writers Discussion”