-
Notifications
You must be signed in to change notification settings - Fork 184
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
Undefined index: scheme #33
Comments
_NOTICE: ErrorException: Undefined index: scheme in /Users/Arist/GitHere/php-curl/src/Toolkit.php:302 |
没遇到过,echo $url变量看一下,php的parse_url()解析url变量出问题了。 |
Omit the protocol from embedded resources. Omit the protocol portion (http:, https:) from URLs pointing to images and other media files, style sheets, and scripts unless the respective files are not available over both protocols. Omitting the protocol—which makes the URL relative—prevents mixed content issues and results in minor file size savings. 以上是原因。scheme不一定存在。 strtolower($parse['scheme']); |
这种机制在浏览器中默认支持,curl不支持,所以需要一个默认scheme,scheme由library添加不合适,在用户逻辑里面补全默认sheme可以解决问题。 |
默认不太合适。用父级页面的scheme比较合适 |
你好,出现大量的scheme错误,是什么原因?怎么解决
E_NOTICE: ErrorException: Undefined index: scheme in /Users/Arist/Git/php-curl/src/Toolkit.php:302
Stack trace:
The text was updated successfully, but these errors were encountered: