Host: Amazon Web Services
Domain: Godaddy
SSL: Godaddy
Framework: Laravel 4.2
PHP: PHP5.6
Apache: Apache 2.4.16
File located: /var/www/html/test
My code:
$api_request = 'https://'.apache_getenv("HTTP_HOST") . apache_getenv("REQUEST_URI");
Error: PHP Fatal error: Call to undefined function apache_getenv()
It looks like it doesn't exist.
Laravel App Located at: html. Then another two folders with laravel: test and live.
- html/ (Laravel app landing page)
- app/
- bootstrap/
- packages/
- public/
- vendor/
- test/ (Laravel app)
- live/ (Laravel app)
- index.php
It works properly at html app. but in test app the function doesn't exist anymore.