Category "php"

adldap2: unable to retrieve custom user attribute

I've written a small php script to retrieve all the users in a certain group and obtain two values, username and employeeid. Unfortunately, the second field is

Laravel php artisan serve to mimic HTTPS

I have been searching around to see if there is a way I can mock SSL for local development using Laravel's artisan to serve HTTPS with no luck. Is this possibl

How can i update or reset my password without entering email field in laravel-8?

i have some users in my usertable ,when ever i sent to reset token to my mail based on that mail i am updating my user account password(reset-password)that's wo

renameColumn migration fails for existing column with columns does not exist error

I get the error Doctrine\DBAL\Schema\SchemaException : There is no column with name 'price' on table 'class_rooms'. while running migration to rename the price

Illuminate\Contracts\Container\BindingResolutionException Target class [app\Http\Controllers\FrontEnd\IndexController] does not exist

**Target class ** does not exist. ?? Why I didn't understand Error Is lluminate\Contracts\Container\BindingResolutionException Target class [app\Http\Control

Laravel trying to save $appends attributes

I am coding on Laravel 6, and stumbled up on this problem. I have accessors for a field that i need in my model in some cases, but it does not exist in my datab

args[max_input] woocommerce if statement confused

Cant seem to figure this out with if statements. Wanting it to show QTY 4 unless stock available is less than 4.. So far I have this.. function wpse_292293_quan

PHP 8.1: strftime() is deprecated

When upgrading to PHP 8.1, I got an error regarding "strftime". How do I correct the code to correctly display the full month name in any language? $date = str

WooCommerce Product Addons - append image to product addon field

I actually struggling with WooCommerce Product Addons plugin. The result which I want is to give possibility that woocommerce product addon fields (checkboxes t

Having problems with sessions not allowing flow from isset to isset in same page

I have a page titled "test.php" When I remove all session statements it works fine. However I wish to create session for security purposes (cannot get in witho

how to retrieve the first and last instance of a row in pdo dataset

I have a dataset that I retrieve using PDO and fetchall. I need to find the first date a part was sold and its cost then also I need to find the last date that

Why does using salted hash on python and php give me different results?

I ran into a problem in translating code from PHP to Python. Initially, there is a PHP code that creates a salted hash of a password with verification, and this

Open source html and css

Is HTML or CSS open source like PHP or Python? For example PHP itself: PHP source link in GITHUB

Excel / PHPSpreadSheet : LOAD and SAVE WITH Charts, unexpected argument

I'm trying to load my excel file through PHPSpreadSheet library including the charts. At the reader step, everything is working fine and I could without difficu

Emails created with summernote are formatted differently when sent from Firefox and Chrome

I am trying to use summernote to send emails from a text editor. When the email is sent from Firefox, it is correctly formatted and matches the text entered in

Hi, I am making a contact form thingy, and my php isn't working any reason why?

Error: the code: <?php $name = $_POST['name']; $mail = $_POST['mail']; $message = $_POST['message']; $to ="[email protected]"; $sub

Laravel : How to Create Dropdown to Select FOREIGN KEY from Other Table?

i want to ask you how to select FOREIGN KEY (from "doa_id in "doas" table) when user create a new data (to the "notes table) in a form. This is my code : NoteCo

Unit (real unit test) of test laravel relationship

Background Framework: laravel 9.x PHP 8.0 Continuous integration (Travis CI etc) I am working on a project that is legally very sensitive, so testing is vital.

What might the issue with this my code to upload image in my users form

I created a form to capture user details including their passport, but when ever the user fill the form, it went blank without populating the database with the

Is there a way to use Foundry Model for Authentification inside Functional Tests?

1) App\Tests\Controller\Admin\Api\Promotion\PromotionDeleteControllerTest::test_deleting_promotion LogicException: The first argument of "Symfony\Bundle\Framewo