I have a tiny test cms. These are the directories:
admin
--css
----admin.css
--js
--tinymce
--index.php
--functions.php
--logout.php
--blogadmin.php
--imagesadmin.php
--videosadmin.php
--connectadmin.php
--maincontentadmin.php
--settingsadmin.php
css
--cssimages
--mainstyle.css
js
images
plugins
--blog.php
--images.php
--videos.php
--connect.php
uploads
config.php
index.php
mysql.php
The admin/functions.php
needs the mysql.php
.
require("../mysql.php");
It works.
The plugins/connect.php
needs the admin/functions.php
require("../admin/functions.php");
The plugins/connect.php
is included in the index.php
And the files in the admin folder using the functions.php
too.
It doesn't work. Why?