Access CurrentUserInfo() from independent .php (v2018)

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
lamany77
User
Posts: 144

Access CurrentUserInfo() from independent .php (v2018)

Post by lamany77 »

Dear all
i've blank php...that i want to create to access the currentuserinfo();
the blank php is in a directory

if i put in main directory its work
but if i put it on folder i got many error

the code is like below :

<?php
if (session_id() == "") session_start(); // Init session data
ob_start(); // Turn on output buffering
?>

<?php include_once "../ewcfg14.php" ?>
<?php include_once ((EW_USE_ADODB) ? "../adodb5/adodb.inc.php" : "../ewmysql14.php") ?>
<?php include_once "../phpfn14.php" ?>
<?php include_once "../t_welcomeinfo.php" ?>
<?php include_once "../d_logininfo.php" ?>
<?php include_once "../userfn14.php" ?>

<?php
 $pv_code_lem =currentuserinfo("user_code_lem");
 // die("code ".currentuserinfo("user_code_lem"));
 
 die("code ".$pv_code_lem);
 
?>

thank you


mobhar
User
Posts: 11660

Post by mobhar »

lamany77 wrote:

but if i put it on folder i got many error

You need to adjust the relative path of the related files.


lamany77
User
Posts: 144

Post by lamany77 »

i have try but got this error

"Fatal error: Class 'GD' not found in D:\01_Jangan_Dihapus\Web_Server\Wampp\www\Ver_2018\Ponpes_2018\phpfn14.php on line 7307"


mobhar
User
Posts: 11660

Post by mobhar »

Make sure you have already enabled gd2 PHP extension from your web server.


Post Reply