Category "php"

Extract Plain Text from Email Body (IMAP Extension)

I'm a bit new to using the IMAP Extension in PHP to check for emails. I don't fully understand all the encoding used in emails. I would like to extract plain te

mcrypt is not installed with the php 5.6

I have installed the php version 5.6 and in order to run my laravel application it is asking to install and enable the mcrypt extension. These are the steps I f

Entity provider not working in security.yml php symfony3.4 ({"code":401,"message":"bad credentials"}.)

I'm using symfony 3.4 with DoctrineMongoDBBundle and LexikJWTAuthenticationBundle . I'm trying to create a user login which return JWT token. If i specify the u

PHP mail function is sending blank message body

I am aware there are other subjects with similar questions however their answered didn't solve my problem. I developed a website and temporarily decided to go

Magento 2 : Allow customer to edit custom options on Cart

I am trying to add functionality to allow a customer to edit options. I have created a Module Vendor/COptions. This is loading custom options and select, howev

Failed when put cache to file in laravel

When i run Cache::put('max_age','100',60)); Then the error said that file_put_contents(storage/framework/cache/data/8f/87/8f87426f74633c0fa8f717150f13e8fc04

Get Woocommerce CoCart API response(add, update, delete) after promotion applied

I would like to get the responses of each route (add to cart, update cart and delete cart) already applied to the promotion. What I face now is it only response

XML to CSV with PHP converter [problem with images grabing]

I really need your help who works with XML and PHP. Looked for many other questions, but still nothing was found about my situation when in xml there is deeper

Creating command to backup MySql database in Laravel

I wanted to back up my database. I am using Xampp MySql. The username is root and the password is not set. I run the command using Command Prompt but it shows n

Dropzone: Submit both form data and dropzone at once

I know there some questions like this, but they didn't answer questions exactly. This is what I need, Upload files using Dropzone Save form data and uploaded im

PHPUnit 7: Failed asserting that exception of type \InvalidArgumentException is thrown

I have this code: public function method(){ //... if(!$exist) { throw new \InvalidArgumentException('Ce client inexistant', 400); } } I do the UT

After submitting the data from the form it directs to white screen

I have an issue when I clicked the button and submit the data from the form.it gets directly to the white screen and nothing happen I checked the database it do

Update Total in checkout of Woocommerce with Ajax Request

Before asking question on SO, I searched a lot about what I needed to make a ajax request with WordPress. All my code and the request is working, but is not doi

api response laravel doesn't show

I have some problem when I want to return a value from api, when I use dd() function it will show the result. But when I use return, it doesn't show the result

How to find the date a user created their Google account

I referer this link Login with Google using PHP API library and other tutorial and implement Google Login API in my script. Once the user has logged in I am lo

Undefined Array Key error when uploading image on php

im new here, hope to grow into this community. I am currently learning php and i am making a program to upload a file. i found a tutorial with some code that ma

Timber: Single post pagination does not work (wp_link_pages)

I am fairly new to Timber and I am trying to get the pagination for a single post item working. Since there are a lot of topics around the pagination for archiv

Windows 10 defender detects Backdoor:PHP/Dirtelti.MTF for php file

I am running wamp with Windows 10 and I have a simple example code that uses eval function: <?php echo eval(file_get_contents('test2.php')); Windows defende

does swoole table destroy itself when swoole websocket server shuts down

i am setting up a Swoole web socket server for my chat application on CentOS 7 host machine. and will use Swoole table for storing users list. But i am not sure

Sendgrid 550 unauthenticated senders not allowed laravel swiftmailer

When I'm using SendGrid to send email in Laravel, it results in the following error: "550 unauthenticated senders not allowed" I couldn't find out why thi