Skip to content

Tag: php

Using GET to correlate with switch statement

I’m trying to use a switch statement to execute a section of code to run a query to generate an html list. I would like use the get value from the URL to correlate with the switch statement IE list….

FPDF string output

I use OctoberCms (laravel). This uses own Filesystem https://octobercms.info/docs/services-filesystem-cdn/ That is why I need to take generated $pdf as a string, and than use Storage::put(‘docs/kek.pdf’, $pdf); But it isn’t works, because Output() anyway returns to $pdf only object. Have you…

gmdate 12 hours off

I’m trying to get the GMT to send with an API request however my time is off from the actual GMT. Right now the GMT is 6:40 PM Friday, November 20, 2020. However when I run gmdate(“Y-m-dTh:i:sZ&…