Category "php"

Symfony- Error ocurred when I try to make an entity

When I use: php bin/console make:entity to create a new db entity, I get the following error: In DoctrineHelper.php line 180: Class "Doctrine\Persistence\Mappin

Gmail Error Action: failed Final-Recipient: Status: 5.0.0 Remote-MTA: dns; gmail-smtp-in.l.google.com Messages missing a valid address in From: header

I am getting this error attempting to send emails to gmail. Any thoughts on what it means or how i can fix? This message was created automatically by mail deliv

Issue with Generating Random Numbers using Laravel contains vs foreach loop [duplicate]

Hey guys I come across this strange issue where if I use the foreach it does not generate a unique random number wheres if I use laravel funct

Is it possible to connect a PHPmyAdmin database using Angular and Postman?

this is my first time using StackOverflow and I don't know how this works but I'll be quick and short. So, I'm in an internship and I'm learning Angular and I o

array_combine() expects parameter 2 to be array, string given in php

Array ( [0] => tttt [1] => tttt ) $terms_keys = array("terms"); $terms_array = array(); foreach ( array_map(null,$inv_terms) as $key => $value

What is the proper way to POST data using javascript fetch? [duplicate]

I am trying to get away from jQuery and start using promises and arrow functions. Try as I might, I can't seem to pass data to PHP using java

PHP Notice: Undefined index: user_type in /var/www/mysite/public_html/index.php on line 66, referer: https://example.com/

I just transfer my PHP app, I used to have my app on example.com/app but now I transferred the app to its own domain, othersite.com. My principal site and PHP s

php MS_SQL server resource_id 39 issue

i am accessing my website from another computer in same network. before when i was using localhost on same pc website was working fine when i chnaged that to IP

Data from new HTML form input field not being passed to email using PHP and JavaScript

This is my first post on the site. I added a new input field to a previously working HTML contact form in order to collect the user’s street address. Alth

My coding mistake or problem with the integrity of the data?

I'm learning Laravel from Laracasts videos and so far I've made simple blog with 4 posts that are dynamic but only 2 of them when I click on the name of the pos

Attach Database Backup file in E-Mail send not working

I am using following code to take backup of my mysql database. With this code, a file is created and get saved in same folder where this script is kept. It is w

Issue on my Wordpress Site with the footer.php file

I used a debug and I get the following error: PHP Fatal error Uncaught TypeError: ceil(): Argument #1 ($num) must be of type int|float, string given in /var/www

PHP / JS - Firefox Cookies Expires not set

This is the way how I set cookies in JavaScript: function setCookie(cname, cvalue) { expires = "expires=2147483647"; document.cookie = cname + "=" + c

Install an Older Version of Laravel with Sail

I have a server that is still running PHP 7.4.x I, therefore, need to install laravel 8.x (the current version of laravel is 9.x) with laravel-sail. Since I don

Reload does not change POST state

I have a problem where I want to reload the page on submit. I did this with the simple script function shown below. However, the echo'd "hello" does not disappe

Issue on Getting PHP Generated Image By jQuery Ajax Call

Can you please take a look at this code and let me know why I am not able to get a PHP generated captcha (image) by Ajax call in jQuery? What I have in captcha.

How to serialize protobuf message with schema id [closed]

Looking for a library or algorithm that implements serialization of a message in protobuf format with schema version which retrieved from conf

How to paginate in react using inertia on laravel?

How to paginate in react using inertia on laravel? pulling the paginated data: $contacts = Contact::orderBy('name', 'asc')->paginate(10); return Inertia::ren

Assets retrieving issue in Laravel 5.4

Issue: Assets retrieving issue in Laravel 5.4 Server root directory -- public_html/ -- pilardir/ [Laravel Installed Here Project Controller, Models, Views Worki

Function parameter description

I've been building a blog on Symfony and noticed something in my code. This is my query builder and when I set these two min and max parameters, in this order p