Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reference to $_SERVER on the command line #41

Closed
vijinho opened this issue Dec 7, 2013 · 2 comments
Closed

Reference to $_SERVER on the command line #41

vijinho opened this issue Dec 7, 2013 · 2 comments

Comments

@vijinho
Copy link

vijinho commented Dec 7, 2013

Hi,

Using the master phpfastcache_v2.1_release/phpfastcache/phpfastcache.php

I get a warning about $_SERVER['HTTP_HOST'] not existing when I use phpfastcache in a command-line php script which I have to fix with:

if (empty($_SERVER['HTTP_HOST'])) { // patch for phpfastcache referencing this
$_SERVER['HTTP_HOST'] = 'localhost';
}

Please could you remove such references or enable them to be set?

@ghost ghost assigned khoaofgod Dec 16, 2013
@laurent22
Copy link

I believe this has been fixed in #44

@vijinho vijinho closed this as completed Dec 30, 2013
@vijinho
Copy link
Author

vijinho commented Dec 30, 2013

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants