How to have access to wp-load.php ?
I can access it using the following
require_once("../../../../wp-load.php");
But I need to find it dynamically so I am using the following but none of them works.
require_once( dirname(__FILE__).'/../../../wp-load.php');
require_once( dirname(__FILE__)."/../../../wp-load.php");
require_once( ABSPATH.'wp-load.php');
require_once( ABSPATH."wp-load.php");
How to have access to localhost:8888/wordpress/wp-load.php?