Skip to content

Execute node script in php from remote server

I have a web application that interacts with API. In html file is an element with onclick property for this function: Then index2.php has written only this code: <?php exec(“/usr/local/bin/node script.js”); ?> The script.js is just a file which is executed. Everything works fine on my maschi…

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…