/
usefulfunctions.php
index.php
test/ (directory)
/test/ <- In the directory
index.php
in test/index.php I have the following.
require_once('usefulfunctions.php');
echo 'Hey world!';
My problem is, I need to be able to access usefulfunctions.php from everywhere! I was thinking I could just do erquire_once('http://ip:port//usefulfunctions.php'); but that's really bad pratice, isn't there another way I could do this?!