Skip to content
Advertisement

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 has some problems: I need to

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://localhost:8000/auth/login I come to the login page. How to prevent that and to come

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 have associated logos.

update only single element while sharing same class

I have below jquery which shows an image preview from file input. The above code is working well, but the problem is it updates all img elements using the same class screenshot blade ANy suggestion to update only specific img element while using same class ? Answer Just update your readURL function like this: I solved it for you on

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 the data within $_FILES

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 is: how do I set $times

Advertisement