I have a webpage: test.php. The contents of test.php are:
<?php
echo getenv('SENDGRID_API_KEY'); //get's the environment variable if a match
?>
When I navigate to the webpage, I always get a blank webpage. However if I run the script from the command line, it works as expected.
~> php test.php
SG.**************************** #hidden because API key :D