Skip to content

Tag: php

Array of images in laravel

While I am retrieving array of images I get this error: Trying to get property ‘images’ of non-object (View: C:xampphtdocsuserresourcesviewsproductview.blade.php) view blade: Answer you need to clean and fix your code: your controller function: in blade file:

Zip files in a directory use part of URL as file name

I use a php file to created zip archive of all jpg files in a folder and make it available for download. Here is the script: I was wondering if it is possible to use part of url as archive name? My URLS look like this: I want the archive name to be Pictures-Album-CustomText.zip Answer You have a couple of