https://www.icyphoenix.com/viewtopic.php?f=35&t=6229
-----------------------------------
spydie
Tue 04 Aug, 2009 14:23

Problems With Define Porting A MOD
-----------------------------------
Hi 

I´m trying to port an PhpBB2 Mod to IP 1.3.

Got a small problem with this define var

This is the code i got :

[code linenumbers=false]// Load default header
//
$ip_root_path = "../";
require('pagestart.' . PHP_EXT);
include(IP_ROOT_PATH .'includes/constants.'. PHP_EXT);
include(IP_ROOT_PATH . 'includes/functions_formel.' . PHP_EXT);
include(IP_ROOT_PATH . 'language/lang_' . $board_config['default_lang'] . '/lang_formel.' . PHP_EXT);

$page_title =  $lang['formel_acp_title'];
[/code]

and this is the error i get:

[quote]Notice: Use of undefined constant IP_ROOT_PATH - assumed 'IP_ROOT_PATH' in H:\wamp\www\ip_1.3\adm\admin_formel_drivers.php on line 34

Notice: Use of undefined constant PHP_EXT - assumed 'PHP_EXT' in H:\wamp\www\ip_1.3\adm\admin_formel_drivers.php on line 34

Warning: include(IP_ROOT_PATHincludes/constants.PHP_EXT) [function.include]: failed to open stream: No such file or directory in H:\wamp\www\ip_1.3\adm\admin_formel_drivers.php on line 34

Warning: include() [function.include]: Failed opening 'IP_ROOT_PATHincludes/constants.PHP_EXT' for inclusion (include_path='.;C:\php5\pear') in H:\wamp\www\ip_1.3\adm\admin_formel_drivers.php on line 34

Notice: Use of undefined constant PHP_EXT - assumed 'PHP_EXT' in H:\wamp\www\ip_1.3\adm\admin_formel_drivers.php on line 36

Warning: require(pagestart.PHP_EXT) [function.require]: failed to open stream: No such file or directory in H:\wamp\www\ip_1.3\adm\admin_formel_drivers.php on line 36

Fatal error: require() [function.require]: Failed opening required 'pagestart.PHP_EXT' (include_path='.;C:\php5\pear') in H:\wamp\www\ip_1.3\adm\admin_formel_drivers.php on line 36[/quote]


Any ideas what to change ?


Edit 

Solved this myself, checking existing files in IP


