06 PHP基本语法 — 条件、循环、函数 杨亮 《PHP语⾔程序设计》PHP实现⺴⽹网⻚页模板 header menu footer contentA header menu footer contentB header.php footer.php menu .php require(‘header.php’); require(‘menu.php’); contentA require(‘footer.php’); require(‘header.php’); php’); require(‘menu.php’); contentB require(‘footer.php’); 找出1~1000中的所有质数 10 码力 | 25 页 | 1.30 MB | 1 年前3
Laravel 3.2 DocumentationHTTP. Upgrading From 3.1.4 Replace the laravel folder. Laravel 3.1.4 Fixes Response header casing bug. Fixes SQL "where in" (...) short-cut bug. Upgrading From 3.1.3 Replace the little more control over the response sent to the browser. For example, you may need to set a custom header on the response, or change the HTTP status code. Here's how: Returning a custom response: Route::get('/' and modular. Binding a nested view using the "nest" method: View::make('home')->nest('footer', 'partials.footer'); Passing data to a nested view: $view = View::make('home'); $view->nest('content'0 码力 | 139 页 | 1.13 MB | 1 年前3
Laravel 5.0 Documentation
CSRF token as a "POST" parameter, the middleware will also check for the X-XSRF-TOKEN request header, which is commonly used by JavaScript frameworks. HTML forms do not support PUT or DELETE actions $status)) ->header('Content-Type', $value); For convenience, you may also use the response helper: return response($content, $status) ->header('Content-Type', $value); response content, you may use the view method for convenience: return response()->view('hello')->header('Content-Type', $type); return response($content)->withCookie(cookie('name', 'value')); HTTP Responses0 码力 | 242 页 | 1.44 MB | 1 年前3
CakePHP Cookbook Documentation 5.xdefine it manually to optimize performance or if you are concerned about people manipulating the Host header. In a CLI context (from command) the fullBaseUrl cannot be read from $_SERVER, as there is no webserver timestamp. Asset.cacheTime Sets the asset cache time. This determines the http header Cache-Control’s max- age, and the http header’s Expire’s time for assets. This can take anything that you version of PHP’s order of preference are: 1. The _method POST variable 2. The X_HTTP_METHOD_OVERRIDE header. 3. The REQUEST_METHOD header The _method POST variable is helpful in using a browser as a REST client (or anything0 码力 | 1080 页 | 939.39 KB | 1 年前3
CakePHP Cookbook Documentation 5.xMiddleware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 660 Security Header Middleware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 661 define it manually to optimize performance or if you are concerned about people manipulating the Host header. In a CLI context (from command) the fullBaseUrl cannot be read from $_SERVER, as there is no webserver timestamp. Asset.cacheTime Sets the asset cache time. This determines the http header Cache-Control’s max-age, and the http header’s Expire’s time for assets. This can take anything that you version of PHP’s0 码力 | 848 页 | 2.53 MB | 1 年前3
CakePHP Cookbook 2.x
not matched, will throw MethodNotAllowedException. The 405 response will include the required Allow header with the passed methods New in version 2.3. Deprecated since version 2.5: Use CakeRequest::allowMethod() not matched will throw MethodNotAllowedException. The 405 response will include the required Allow header with the passed methods New in version 2.5. CakeRequest::referer($local = false) Returns the referring visitor’s IP address. CakeRequest::header($name) Allows you to access any of the HTTP_* headers that were used for the request. For example: $this->request->header('User-Agent'); would return the user0 码力 | 1096 页 | 958.62 KB | 1 年前3
CakePHP Cookbook 3.x
Email::addHeaders() now allow setting multiple headers of the same name. For that the value for the particular header key in the array argument passed to above functions must be an array. e.g. $email- >addHeaders(['og:tag' Http\Client no longer uses the cookie() method results when building requests. Instead the Cookie header and internal CookieCollection are used. This should only effect applications that have a custom HTTP information. New middleware has been added to make applying security headers easier. See Security Header Middleware for more information. New middleware has been added to transparently encrypt cookie data0 码力 | 1244 页 | 1.05 MB | 1 年前3
CakePHP Cookbook 4.x
>setOption($optionName, $optionValue) to set these options. HtmlHelper::tableHeaders() now prefers header cells with attributes to be defined as a nested list. e.g ['Title', ['class' => 'special']]. Con HttpsEnforcerMiddleware now has an hsts option that allows you to configure the Strict-Transport-Security header. Mailer Mailer now accepts a autoLayout config which disabled auto layout in the ViewBuilder if define it manually to optimize performance or if you are concerned about people manipulating the Host header. In a CLI context (from shells) the fullBaseUrl cannot be read from $_SERVER, as there is no webserver0 码力 | 1249 页 | 1.04 MB | 1 年前3
CakePHP Cookbook 4.x
Middleware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 762 Security Header Middleware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 763 viewBuilder()->setOption($optionName, $optionValue) to set these options. • HtmlHelper::tableHeaders() now prefers header cells with attributes to be defined as a nested list. e.g ['Title', ['class' => 'special']]. • HttpsEnforcerMiddleware now has an hsts option that allows you to configure the Strict-Transport-Security header. Mailer • Mailer now accepts a autoLayout config which disabled auto layout in the ViewBuilder0 码力 | 967 页 | 2.88 MB | 1 年前3
CakePHP Cookbook 3.x
Email::addHeaders() now allow setting multiple headers of the same name. For that the value for the particular header key in the array argument passed to above functions must be an array. e.g. $email->addHeaders(['og:tag' Http\Client no longer uses the cookie() method results when building requests. Instead the Cookie header and internal CookieCollection are used. This should only effect applications that have a custom HTTP information. • New middleware has been added to make applying security headers easier. See security-header-middleware for more information. • New middleware has been added to transparently encrypt cookie0 码力 | 967 页 | 2.80 MB | 1 年前3
共 74 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8













