menu

Recent questions tagged php

1 vote
1 answer
How do I set a certain amount of time to execute one step of the cycle? I need to write a loop so that each iteration of the loop takes a certain amount of time to process. In other words, I need to slow down the loop. So that in 1 second no ...
by leonovkv
asked Sep 24, 2021
1 vote
2 answers
How to properly integrate api into an MVC pattern? I have a site in PHP, it is implemented using MVC pattern. About the standard work with the site I understand, but how do I properly integrate api here? Where do I work ...
by danchikraw
asked Sep 24, 2021
1 vote
3 answers
How do I make a clockwise permutation of an array? Hi, could you please tell me where the last element of the array goes and why element is the same as the zero element? I just need to make a permutation from 1,2,3 ...
by wolverine777
asked Sep 24, 2021
1 vote
2 answers
How to connect a public cadastral map to the site? Good day! Is there any way to integrate a public cadastral map with your site that would display points on the cadastral number. ...
by Dante161
asked Sep 24, 2021
1 vote
1 answer
image
How do I protect the data sent from the backend to the frontend of the online game browser? In many online games, there is a game crash. Can you please tell me how data is transmitted in vue js. If it's sent over a web socket, how to protect it. After all, t ...
by jaygen
asked Sep 24, 2021
1 vote
1 answer
How do I fix a 403 error when connecting to WebSocket? A simple webchat on ratchet on instructions . Chat works fine on the local machine, but on the server when you try to connect you get an error 403 VM3045:1 WebSocket ...
by DeboshiR
asked Sep 24, 2021
2 votes
1 answer
Is it possible to save the connection to the zip archive between requests? Good afternoon. Given: several hundred thousand images in a zip archive. ZipArchive is used to access them. Task: display a web page with several dozen images. Pro ...
by cohen
asked Sep 24, 2021
1 vote
1 answer
How do I insert the current date in the subject line of an email in "a href="mailto:"? Is it possible to use the construct " a href="mailto:123@site.ru?subject=vopros" to make the recipient see the current date in the subject line next to the word "vopros" ...
by PolinaD
asked Sep 24, 2021
1 vote
1 answer
Guzzle cannot work with windows-1250 (loses Polish letters)? I use guzzle("guzzlehttp/guzzle": "^7.2") to download the main page of rp.pl (Polish) with a simple request. $r = $client->request('GET', 'http://rp.pl');$body = $r- ...
by Vincent1
asked Sep 24, 2021
1 vote
2 answers
Different password_verify and password_hash? I use to store passwords password_hash, on the local everything was fine, moved to the host, and now for one password is displayed different hash, why? ...
by LYTK4
asked Sep 24, 2021
8 votes
2 answers
Where to learn/read about common backend topics? I'm interested in general backend topics without any connection to the language, i.e. routing, caching, form processing, protection against various attacks, proper use o ...
by aby125
asked Sep 24, 2021
1 vote
2 answers
How to make a global array with multi-thread access in PHP? Good afternoon. I am currently developing a web server in PHP 7.4.11 that uses sockets and the HTTP protocol to receive messages from the Android client. I use Workerm ...
by RigelGL
asked Sep 24, 2021
1 vote
1 answer
Not sending data from the site to telegram and email at the same time? Hello. I don't know anything about php. I found ready-made options for sending data from the site to telegram and email. They work separately, but not together. What i ...
by maratakbutin
asked Sep 24, 2021
1 vote
1 answer
How do I work with imagemagick? I have an image that I want to change with imagemagick via php. The question is, how am I supposed to specify parameters without knowing how they will change my image? ...
by Sazanovdm
asked Sep 24, 2021
1 vote
1 answer
Transition mysql > mysqli? There is a store in 2005 made in Shop Script free, all works fine, but since the hosting and Opencart installed and the latest versions that require PHP 7.4, then the ol ...
by Admos_ru
asked Sep 24, 2021
1 vote
1 answer
image
How do I get the text onto a php page? Hello, what am I doing wrong? I can't get the data from the database to the page. <?phpinclude "databases.php";$result = mysqli_query($link,"SELECT FROM `goods`"); ...
by Vlad2508
asked Sep 23, 2021
1 vote
2 answers
A regular expression does not see the "-" symbol. How to solve it? There are url patterns, but regular expressions do not see the "-" sign. Here is the code leading to the regular: $to_match = preg_replace('/{(a-z+):(^\}+)}/', '( ...
by nurasyl_mels
asked Sep 23, 2021
1 vote
2 answers
Is it possible to adjust the operation of the method depending on the object? (W)Coded a simple thing that should show/delete/edit/create records in the database. There are two tables, similar in structure, but in the internal logic are responsib ...
by vertello77
asked Sep 23, 2021
1 vote
3 answers
How do I create an inbox system in php? Hello, I mean without using the framework, where can you store such and display new messages? The first idea I had was a messages table in the database where the text of ...
by eternal_blue
asked Sep 23, 2021
1 vote
1 answer
The question of image optimization, load the area that is visible, the rest do not load, how to implement? Hey guys. Faced with the issue of optimizing images, I do not mean its size, and the loading of the visible part. Adaptive sites, and not all loads the whole picture, ...
by ws17
asked Sep 23, 2021