Skip to content

Tag: php

AJAX progress bar of load script

I have a big problem to make a progress bar in AJAX. The whole page is in AJAX, inside one of the webpage is AJAX which loads a function to get some big rows from the database. I tried to make progress bar in this script in a foreach loop a flush() method and by writing/reading to $_SESSION, but still

NGINX server configuration for Codeigniter

/etc/nginx/conf.d/default.conf my codeigniter folder is ‘ci’ which is located in /var/www/html/ci what configuration do I need to work url rewriting?… Answer I didn’t want to change the current document root (/var/www/html) since my ‘ci’ folder is located at /var/www/html/c…

Laravel 5.4 fopen(): Filename cannot be empty

I want to upload image in laravel 5.4 Here’s the code: in FilesystemAdapter.php (line 146) I checked the FileSystemAdapter.php and saw that the problem is in this line: When I var dump the $file variable it returns the correct info, but when I var_dump($file->getRealPath(); it says bool(false) and I …

Laravel 5.4 Combining two collections

So I Have two collections, sales and costs. Now I need them to combine into one collection for my foreach condition (I’m not sure if I can use two collections in one foreach) RAW Queries: Here’s my query for these two collections: Things I’ve tried testing: Converting the collections into ar…

wordpress date format change function

I am using below function getting dates from advanced custom fields pro plugin my below code displays the dates from options , i want date format is different i have used below code to change the format but not working , here the_field(‘event_start_date’); directly displaying without print/echo An…