Следуя инструкциям из раздела «Как использовать аутентификацию по умолчанию в рюкзаке» я сделал так, чтобы Laravel Backpack использовал страницу входа в Laravel Breeze вместо своей собственной, однако, как только я попаду в панель администратора...
Я разрабатываю систему чата. у меня есть три стола (users , chats , user_chat) where the user chat is the pivot table.
I want to check every time that same users want to communicate to back to there chat room and don't create a new chat room.
like...
У меня точно такой же вопрос, как и раньше, но последнему вопросу уже 6 лет и существуют новые версии Doctrine, поэтому теперь я задаю его в отношении последней версии Doctrine.
I want to automatically generate short descriptions for all existing product tags which would be the same as the product tag itself is it possible? I suppose it should be possible with php function. Any idea?
Предположим, мы создаем игрушечный автономный сервис, подобный WeTransfer, с помощью следующего кода. Это работает для файлов размером менее 100 МБ.
Как заставить это работать с файлами размером 1 ГБ и более? который может превышать размер php.ini...
Я пытаюсь выполнить массовое обновление формулы и проверить введенные данные перед отправкой их в базу данных. Но я должен сделать что-то не так, возможно, ссылка на местоположение заголовка находится не в том месте, потому что она проверяет только...
Ищу совет и рекомендации по изменению приведенного ниже кода, чтобы он не был уязвим для каких-либо атак SQL.
Стараюсь сделать это путем экранирования пользовательских данных, передаваемых в SQL. запросы, но не уверен, какой самый безопасный и...
We are using php and codeigniter.
I have a server on which we add edit data. We want to send this data via API to another server.
When another server receives the data, it should send current date and time to 1st server. When 1st server receives...
Я создал очень простой пример, используя phpmailer , and it's working, except it sends the email twice . The script is only being executed once, but I'm always getting 2 separate emails in the destinatary email (i know because the subject changes...
I was trying to use spatie role and permission but when i try to update role and permission it gives me the above error and highlights the if statement in the function below located inside the user model
public static function...
I'm new to php and API calls, I'm trying to find the email address of my local MP using the parliament API (
Challenge is, I can't return the email address directly. I can loop through the results of the call, but I want to return the email to a...
I'm implementing Google Handler for logging in via PHP, and I'm encountering an issue with session management. When I log out, the session doesn't seem to be destroyed properly. Subsequently, when I attempt to access the Google Handler again, I'm...
I'm trying to change the default theme editor ( jqte ) to the WP editor, but the edited content is not updating upon form submission.
Here is the code I'm trying to use:
ob_start();
$editor_id = 'ad_description'; // Unique ID for the editor...
I am new at WordPress/Gutenberg, and I am not familiar with PHP. I'm trying to write a custom block with JavaScript in Gutenberg, but I found most of the functions available only work in PHP. How I can use functions in JavaScript like...
I dont know how to describe this problem. Lets say i have this table in my database:
| Team | Zone |
| ---- | ---- |
| Alfa | A |
| Alfa | BB |
| Alfa | CCC |
| Beta | A |
| Beta | CCC |
| Beta | DDDD |
| Crit | BB |
| Crit | CCC |
Looking for advice, and best practices for changing the code below, so that it isn't vulnerable to any SQL attacks.
Looking to do this by escaping user data passed to SQL queries, but not sure of the safest and best way to do this.
Looking for any...
I have created a website in Wordpress. In that , I has a page create_invoice, where I have added html that takes user input in the form.
I have set up the logic so that this page is only displayed to logged in user.
What I want is, when user submits...
I am trying to start mysql on xammp control panel, but I am getting this error.
I want to connect php on VS code to mysql through xampp.I have tried uninstall and reinstall xampp several times, I am still getting the same error. I also copied the...
I am doing a school practice sac where I have to create a program where the scenario is that:
Penelope is moving house and knows that it will be quite an expensive time. She needs a program that will allow her to add up how much it will cost to...
I have been running php 7.4 FPM with apache since it was released - today after doing an apt upgrade we started getting 'Uncaught Error: Call to undefined function xmlrpc_encode_request()' . After running a php -v we are now seeing PHP 8.0 as the...
I have a login/register form. When I insert the data manually in phpmyadmin and try login it works, so it has a connection and is reading it correctly. But when I try to make a new account via the site it comes as a bad request.
I made a separate...
Вы не можете начинать темы Вы не можете отвечать на сообщения Вы не можете редактировать свои сообщения Вы не можете удалять свои сообщения Вы не можете добавлять вложения