Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Return Image to the Browser from Private Folder
Post: RE: Return Image to the Browser from Private Folde...

Thank you for the response. I have discovered the `Content-Disposition` header and solved it yesterday using existing version as follow: Code: -- $download = $this->response->download('filena...
890 Views
2 Replies
07-22-2023, 09:57 AM
amit
  Photo Thread: Return Image to the Browser from Private Folder
Post: Return Image to the Browser from Private Folder

Hi, CodeIgniter 4 has the DownloadResponse class that presents a dialog box in the browser to download the file. However, I have images in a folder outside the public directory. And I would li...
890 Views
2 Replies
07-21-2023, 11:05 AM
amit
    Thread: Long-living PHP support (Swoole/RoadRunner etc)
Post: RE: Long-living PHP support (Swoole/RoadRunner etc...

I would like CodeIgniter to not rely on specific PSR interfaces as they change over time, and rather store its data in a simple array/object format. For example, if CI has PSR X for logging and a thi...
5,416 Views
14 Replies
10-29-2022, 02:59 AM
amit
    Thread: Serving HTTP verbs via CLI
Post: RE: Serving HTTP verbs via CLI

kenjis Wrote: (10-10-2022, 04:35 PM) -- What exactly is it? -- Swoole server (https://github.com/swoole/swoole-src) kenjis Wrote: (10-10-2022, 04:35 PM) -- What is the exact issue? How to reprod...
1,621 Views
3 Replies
10-15-2022, 12:59 AM
amit
    Thread: Serving HTTP verbs via CLI
Post: Serving HTTP verbs via CLI

Currently, any request made through CLI receives the method 'cli'. Further, there are PHP servers that run purely in CLI mode and forwards requests to frameworks like CI. However, currently CI i...
1,621 Views
3 Replies
10-09-2022, 02:59 AM
amit
    Thread: Question about deleting expired session files.
Post: RE: Question about deleting expired session files.

Guys, I have tweaked with session config & can see that GC does delete them automatically.
16,508 Views
6 Replies
09-02-2015, 09:18 PM
amit
    Thread: Question about deleting expired session files.
Post: Question about deleting expired session files.

I'm using latest stable version 3.x of CI with file system as session driver & sess_regenerate_destroy as false, and need help to understand why aren't old sessions files deleted. As from CI docume...
16,508 Views
6 Replies
09-02-2015, 01:13 AM
amit
    Thread: Auto load cache driver with parameters
Post: RE: Auto load cache driver with parameters

CroNiX, Thank you much. It's what I was looking for.
5,210 Views
2 Replies
09-02-2015, 12:48 AM
amit
    Thread: Auto load cache driver with parameters
Post: Auto load cache driver with parameters

I know I can load a particular caching driver in a controller with options as second parameters: Code: -- $this->load->driver('cache', array('adapter' => 'apc', 'backup' => 'file')); -- I wonder i...
5,210 Views
2 Replies
06-20-2015, 06:15 AM
amit
    Thread: Auto load cache driver with parameters
Post: Auto load cache driver with parameters

I know I can load a particular caching driver in a controller with options as second parameters: Code: -- $this->load->driver('cache', array('adapter' => 'apc', 'backup' => 'file')); -- I wonder i...
3,407 Views
1 Replies
06-20-2015, 06:12 AM
amit
    Thread: Locking a config variable
Post: RE: Locking a config variable

gadelat Wrote: (06-19-2015, 09:43 AM) -- Changes of config items using config->set_item are only done in memory. It doesn't save changes to config file. So if one script changes config item and meanw...
4,368 Views
2 Replies
06-19-2015, 11:20 AM
amit
    Thread: Locking a config variable
Post: Locking a config variable

Hi all, I'm saving an array in $config array like this one below: Code: -- $config['listed'] = array(86, 52, 265, 7, 580); -- And this array get updated from database when a certain event is fi...
4,368 Views
2 Replies
06-19-2015, 06:00 AM
amit
    Thread: Is random_string() function generate unique string?
Post: Is random_string() function generate unique string...

I'm using random_string() to generate 8 letters long unique string. My question is: will CI create UNIQUE random string each time?
9,117 Views
0 Replies
02-01-2015, 06:31 AM
amit

Theme © iAndrew 2016 - Forum software by © MyBB