Upload php sub-website to wordpress

[ad_1]

Hello,

I’m not a webdesigner or webdevelopper or whatever, so please excuse me if the terminology I use is not the best one. I had very specific needs, so I learned PHP/MySQL and developped a website for very specific needs. It runs perfectly locally with wampserver. But I also have a hosted wordpress website.

I want to host my “hand-made” at the same place as the wordpress website. I simply tried to connect and uploaded all files. I didn’t really expect it work directly, but I need help.

I work with $\_SESSION :

<?php

// Initialize the session

session\_start();

// Check if the user is logged in, if not then redirect him to login page

if(!isset($\_SESSION\[“loggedin”\]) || $\_SESSION\[“loggedin”\] !== true){

header(“location: login.php”);

exit;

}
Unfortunately, this seems to lead to some problems. I found this in an error log :

\[17-Feb-2023 11:11:11 UTC\] PHP Warning: session\_start(): Cannot send session cache limiter – headers already sent

VERY basic php files seem to work too: <?php echo ‘test’; ?> works.

I don’t know how to deal with this. I don’t even know what I should google. I don’t need $\_SESSION from wordpress (if it exists), as I use a personal register and login system.

Can anyone help me?

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer