Having PHP issues

Warning: include_once(): http:// wrapper is disabled in the server configuration by allow_url_include=0

is what i get after my index.php file

i created a constants.php file
with the following content:

<?php include_once "imported/useful.php"; define("PLOG", substr(filename(), 0, strrpos(filename(), "/") + 1)); useful just returns the filename of the current file. so plog takes the value http://andihamolli.tk/plog I want to use the plog in my other php files to serve as a root thing for the subfolder but i get that error i mentioned. Can anyone pls help?

The warning is generated because you are using a full URL for the file that you are including. This is NOT the right way because this way you are going to get some HTML from the webserver.
If it do solve your issue please do post back a YES :slight_smile:
If not, repost :slight_smile: