Skip to content
Advertisement

$_SESSION is echoing when it shouldn’t?

im doing a a basic form where the user enters data, it has three php pages, one with the html stuff, second one with the a class called registration, the third one is called validation.php it has the error handlers. if the user typed something wrong, i want to display an error on the same page, that’s why im using

Symfony autowire/autoconfigure not working

I created a symfony 5.3 api. My plan is to inject the “EntityManager” via “EntityManagerInterface”. Error that comes: My services.yaml My CreateUserAccountController.php in src/Controller/: My composer.json: I know that I dont use the Manager, but it doesn´t work for me. The webserver I use: symfony cli webserver Has anyone a idea, where the problem is? Answer This is actually a

Query string keeps appending but it shouldn’t

So my problem is when i send an email with a link to reset the password the query string gets appended each time. For example: 99cb65f44c7acf7f80610e92358ca7ce006b852fb9d7be716154c0fe5a954867b87a4b281a7b42f5208dbbbac0a6d3de7444575b41b6a307a2fdd00e3b6d2cae <= First query string as i want to have it Then when i send a new email with a new token the variable will append the old value to the new one like this:

Remove characters from beginning and end string

I want to ouput only MYID from URL. What I did so far: output: https://whatever.expamle.com/display/MYID ouput: MYID?out=1234567890?Browser=0?OS=1 How can I combine this? Thanks. Answer When the string is always a Uniform Resource Locator (URL), like you present it in your question, given the following string: you can benefit from parsing it first: and then making use of the fact that

How can I get date day by day?

I’m beginner in PHP and I’m trying to learn. I want to get the date of the next four days in Laravel. I tried like this but it returns the date four days later. I want to take all the next four days. How can I show all the next four days in the blade? Answer I hope this will

Advertisement