What do you want to save?
Add Code snippet
New code examples
-
PHP 2022-02-03 07:10:02
How to use my constants in Larvel
Create a file constants.php inside app/config/ and put your settings in an array: <?php //file : app/config/constants.php return [ 'ADMIN_NAME' => 'administrator' ]; Then anywhere in your controllers or views you can get the value by using Confi... Add solution -
Other 2022-01-30 17:50:07
nginx redirect http to https cloudflare
server { listen 80 default_server; listen [::]:80 default_server; server_name mydomain.com www.mydomain.com; if ($http_x_forwarded_proto = "http") { return 301 https://$server_name$request_uri; } root /var/www/html; index ... Add solution -
PHP 2022-01-22 02:46:04
how to use php
// Firstly you must have PHP installed & running a web server // This could be Apache, Nginx, etc... // Or for quick testing purposes and for the purpose // of this example, you could run // PHP's own dev server from a shell php -S 127.0.0.1:8080 -t y... Add solution -
-
Html 2021-11-18 07:39:14
sum total free html code
<?php include('header.php');?> <body><br><br><div class="container"> <div class="alert alert-success">Sum the Numbers in a Column</div> <br /> <table class="table table-stri... Add solution -
PHP 2021-11-18 01:29:27
enable socket in php
This answer assumes you do have a php_sockets.dll extension file accessible (in your PHP installation extension directory or where required); If you're using windows, just uncomment the following line in your php.ini file: ;extension=php_sockets.dll If... Add solution -
PHP 2021-11-09 03:34:13
404 page in laravel
//step 1 ) create the errors/404.blade.php in view. // step 2 ) go to Handler.php and replace the render function to belwo function. public function render($request, Throwable $exception) { if ($exception instanceof AccessDeniedHttpExceptio... Add solution -
PHP 2021-11-08 23:50:11
php input onchange
/* You can't execute PHP in the browser. Do an AJAX call or POST to a PHP function on the web server, or write a Javascript function that executes in the browser. */ // html <input name="file" onchange="mainInfo(this.value);" // A... Add solution -
-
PHP 2021-11-06 03:02:22
php reporting error all
/* Answer to: "php error reporting" */ ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); /* What do these lines of code do exactly? The ini_set function will try to override the configuration foun... Add solution