Skip to content

How to disable csrf in symfony?

I used the code below and it has csrf too. But how can I disable its csrf? I searched and Disable CSRF token on login form did not help, as there createFormBuilder() is not used in my case below, so what should I do? Answer

PHP stream remote video file

Let’s say I have a video on a remote server and this its url “http://domain/video-path/video.mp4” What is the correct way to stream this video using php with seekable.. I know how to stream the …

How to add main menu url with a url instead of slug in wordpress?

I have used the following function to add menu in wordpress admin backend. But i cant able to add url eg: http://www.google.com in menu href any solution for this ? Answer The short answer is that this is not possible to do using the add_menu_page() function. Probably for good reason, WordPress does not allow…

Clickhouse connection refuse

I have a problem with connection to clickhouse-server by http over 8123 port. All parameters are default. Please help me to resolve this problem. Answer First of all check if even you clickhouse-server is running properly or not using this command: sudo lsof -i :8123 You should be able to see a similar output…

Visual Studio Code: Unable to locate phpcs

I am facing this issue in Visual Studio Code. I have already tried reinstalling the phpcs extension but still facing this issue. Unable to locate phpcs Please add phpcs to your global path or …