You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running a php script a get this error:
PHP Fatal error: Uncaught Error: Class "Location\Coordinate" not found in ...
I am using php 8.1.1 (installed via XAMPP), installed the composer via the installer en ran composer require mjaschen/phpgeo.
The script is a copy from the website:
getDistance($coordinate1, $coordinate2);
?>
My noob fault. Added
require 'vendor/autoload.php';
and it works now!
The text was updated successfully, but these errors were encountered:
When running a php script a get this error:
getDistance($coordinate1, $coordinate2); ?>PHP Fatal error: Uncaught Error: Class "Location\Coordinate" not found in ...
I am using php 8.1.1 (installed via XAMPP), installed the composer via the installer en ran composer require mjaschen/phpgeo.
The script is a copy from the website:
My noob fault. Added
require 'vendor/autoload.php';
and it works now!
The text was updated successfully, but these errors were encountered: