Skip to content

NginX: catch all file outside of root dir, with exceptions

I’m building a site running NginX / PHP and want all access to be processed by /private/routes.php. But I also want to add some exceptions to this for css/js-files and the odd php file in the public directory (and sub dirs). Folder / file structure: My current NginX config: The above config works but ha…

Problem at startup laravel9 system after git clone

After I made a git clone with my project, composer install and everything and php artisan serve I’m just getting three lines of footers like this: 2022 © Webshooter LM AB | Du använder version 4.1.9 | Laravel 9.12.2 screendump: https://imgur.com/Lyt5IhS If I change http://localhost:8000/app/ to http://l…

Get icon from XML URL

I am creating some EPG for the website. I do not have experience. Unfortunately, I’m finding it difficult. How can I get the icons, what is wrong in this code?` Answer If I understand you correctly, something like this should get you close to what I think you are trying to do. Note that not all programs…

PHP 8.1 $_FILES missing type property

I am upgrading my website from PHP 7.4 to 8.1 which is causing an unusual issue with $_FILES. I’m trying to upload a new file but nothing happens. This issue cannot be regarding the file size as I’m trying to upload .txt files containing a single word. Example of my code: When the from is posted t…

PHP: mktime() parse error invalid numeric literal

I need to set variable, let’s call it $times to specific amount of 8AM. I tried using mktime(08,00) but it returns Parse error: Invalid numeric literal Since I’m new to php, I still don’t know which function is best used for thing such as this, weather it is time() date() or so. My question …