I am trying to include a PHP file in another directory.
Here is my file structure
settings\
manage.php
website \
index.php
main.js
main.css
For manage.php
echo 'Welcome to the manager! Here is your website:';
include('../website/index.php');
index.php
<script src='main.js'></script>
<link rel="stylesheet" type="text/css" href="main.css">
So, when I load manage.php, I do not get main.js or main.css. How can I get this to work? Maybe include is not the right way to go? I cannot modify anything in the website folder.
[I know iFraming is a possible solution but I'm hoping to get another answer]
manage.phpfile. That will probably lead to non-valid html (multiplehtml,bodytags, etc.) and user styles overwriting yours (or the other way around) that will mess up your design anyway, even if you manage to include the correct assets.framesare what they need and I think they're in quite rare cases. go for them. nobody will put third party html codes in their admin panel documents directly.