Can’t load WP function into external function

First of all, don’t do that. Including WordPress’s engine in some external PHP file is not recommended at all. It has more downsides than upsides.

If you want to access WordPress’s functions, create your PHP file inside the theme’s folder, or create a plugin. You can even create an AJAX request if you really need to access some data directly by a URL.

Now, about your error. It seems like you are trying to include wp-load.php from one of your theme’s files. If it is so, then that’s not necessary. Theme’s files already have access to WordPress’s functions. Just remove the require... and you will be fine.

Let’s say for some unknown reasons they don’t, and you HAVE to include wp-load.php. This file exists in the root folder of your installation, and you have to go back 3 times to include it. So it will look like this:

../../../wp-load.php

Once again, please don’t do this. It’s not a good practice.