Page 1 of 1

Access CurrentUserInfo() from independent .php (v2018)

Posted: Wed Aug 10, 2022 11:08 am
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


Re: access currentuserinfo() from independent .php

Posted: Wed Aug 10, 2022 1:02 pm
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.


Re: access currentuserinfo() from independent .php (v2018)

Posted: Wed Aug 10, 2022 3:14 pm
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"


Re: access currentuserinfo() from independent .php (v2018)

Posted: Wed Aug 10, 2022 4:04 pm
by mobhar

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