Skip to content
Advertisement

Laragon – pretty url for one app does not work

After enabling the auto virtual host I wanted to try pretty url for my current project. Problem is it first showed index of/ of the project and after trying some solutions it now shows “This site cannot be reached!” error. The pretty url feature wotks withother projects. What I tried: .restarting laragon and pc .enabeling nginx .renaming the project .clearing

PHP UTC String to date

I have a problem. In my code I have the following line: The goal is to get the previous and next hour, so I tried this: But then the I get the following result: Because of my timezone (+1) the RunDateTimeGMT0 gets converted to a date of my timezone. I want the following result: How can I keep the date

How to call functions within a class like Symfony QueryBuilder

I’m trying to create a PHP class and when I call its functions I want them to be called this way. class example: Now I want to call it this way: I’ve seen this in PDO and in Symfony QueryBuilder. If there’s a way to do this please tell me. Thanks in advance. Answer In order to achieve method chaining

Send file with jquery and recive in PHP (No plugIn)

I’m trying to send a file using AJAX with the form but the PHP file seems to receive nothing, not only the files but also the form elements. In PHP if i try to get a value from the $_POST i get an Undefined Index. I’ve tried: and the method you see in the code below. I’m restricted to do

How to decode in php?

Can anyone help me to decode in human readable form? I got the file Obfuscated by YAK Pro. Unable to understand what nAbP2 term is. Please guide me thanks. Answer nAbP2 is a label. In the third line of the posted code you can find the goto statement. It jumps to the respective label. It means that it will continue

Advertisement