I’m sorry for my English. Good day, developers, I need your help, I have an app that I must migrate https://creamedicinaprepagada.com/ It is developed in Laravel + VueJS, at the moment it is hosted in AWS CPANEL, but I must migrate to CPANEL HOSTINGER. I am passing all the files and databases from the A…
Tag: php
Symfony4: Security user session saving from DB (Entity) does not work
When I was verifying the operation with Symfony4, when I entered the ID and password, the same login page was displayed. It seems that I haven’t passed the information necessary for making it behaviorally serious, but I don’t know how to fix it. Putting $this->salt in selialize() didn’t c…
ACF wordpress Modulo variable
I have some code. Trying to add ACF filed(number) instead static number So when I save this I have error like Fatal error: Uncaught DivisionByZeroError: Modulo by zero When I change <?php $fff = the_field(‘show_ad_every_x_posts’, ‘option’); ?> to <?php $fff = 7; ?> It works…
Get API over VPN with PHP [closed]
Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed last year. Improve this question I have a question with my problem. I have a task where I want to get the REST API but the API …
ajax code contains “PHP site_url” with parameters in ajax
I want to ask, is it possible, if the ajax code contains “PHP site_url” with parameters in ajax this is the specific code: this is the full code: Answer please try this
Why is max_input_vars ignored?
I have max_input_vars set to 10000 in .htaccess. ini_get(‘max_input_vars’) correctly returns 10000 and phpinfo correctly shows the local value of max_input_vars to be 10,000 (with a master value of 1,000) and yet a sample script on a GoDaddy shared server with anything more than 1,000 <input ty…
Filtering Laravel datetime field for values after a certain time
I have an eloquent model that has a “start_time” field, which is of type dateTime, and I want users to be able to filter instances of the model based on time of day. So for example, the “start_time” field is in the format “2021-02-17 21:52:12” and I want the user to be able…
How to echo in PHP [closed]
Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed last year. Improve this question I am tr…
How can I log out the user even if they don’t respond to JavaScript’s “confirm()”?
This was the initial code I was using: The confirm dialog awaits action from the user. If the action is “cancel”, they remain logged in. If the action is “OK” the are redirected to the logout.php page. The issue is that if the user does not respond, they are not logged out after those …
How to pass a variable in PHP from a Python file?
I’m trying to call a Python script in a PHP file and pass a variable value from that script after pressing the submit button. I have it: index.php test.py Both files are in the same folder. Why is it not working? I’d like to do this without Flask / Django. Answer You can’t declare a variable…