What do you want to save?
Add Code snippet
New code examples
-
PHP 2021-11-20 05:23:10
create config value file in php
<?php return (object) array( 'host' => 'localhost', 'username' => 'root', 'pass' => 'password', 'database' => 'db' ); ?> This allows you to use the object syntax when you include the php : $configs->host instead o... Add solution -
PHP 2021-11-03 05:24:12
get image width and height in laravel
Core php : list($width, $height, $type, $attr) = getimagesize($_FILES["gallery_image"]['tmp_name']); With Intervention : $upload_file = $request->file('gallery_image'); $height = Image::make($upload_file)->height(); $width = Image::make($... Add solution -
PHP 2021-10-14 17:05:04
how get the size of image in laravel
Core php : list($width, $height, $type, $attr) = getimagesize($_FILES["gallery_image"]['tmp_name']); With Intervention : $upload_file = $request->file('gallery_image'); $height = Image::make($upload_file)->height(); $width = Image::make($... Add solution -
PHP 2021-09-15 19:56:03
how to create config file in php
<?php return (object) array( 'host' => 'localhost', 'username' => 'root', 'pass' => 'password', 'database' => 'db' ); ?> This allows you to use the object syntax when you include the php : $configs->host instead o... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5