Skip to content

Apache ignore headers and status codes from Lumen

I have app based on Docker and microservices. Angular, MySQL, Lumen + Apache. Unfortunately on Docker my API doesn’t send any header or status code. Any response is 200. I tried change HTTP server to NGINX but for nothing. I have no idea how can i fix this issue. Apache config Dockerfile docker-compose.…

nginx return 200 but empty reponse

I am currently migrating apache to nginx and I am struggling to get it working. Basically I get a 200 response with no content. My nginx configuration is as below: server { listen [::]:8749 …

Insert php and html code into database and then fetching/getting it

So I’am trying to add Php code to the database it works when I insert it in the database. But when I go to the browser the Php code I added was commented code: Is there any way to fix this? Answer Like Dharman said, $insert should be divided, so assign your include to a variable and then create $insert

trim() leaves a single trailing and leading space

php 7.4 I believe php’s trim is malfunctioning. It removes duplicate trailing and leading spaces, but it leaves a single trailing and leading space. $str is a “comma seperated value” array. How can I get trim() to behave properly and thus get $list to become {“test”, “test&…

Create an array include email

I am trying to create a function to extract email to send but I do not find the solution Thank you email type : contact<contact@contact.com>, contact1<contact1@contact.com> the function and after I make a loop via foreach. Answer You could make use of array_map and array_filter to sanitize email a…

PHP MYSQL – Anti Multi Account [closed]

Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 1 year ago. Improve this question I need to make an anti-multi account, i found this example for the mys…