<?php use Magento\Framework\App\Bootstrap; require __DIR__ . '/app/bootstrap.php'; $params = $_SERVER; $bootstrap = Bootstrap::create(BP, $params); $objectManager = $bootstrap->getObjectManager(); $state = $objectManager->get('Magento\Framework\App\State'); $state->setAreaCode('frontend'); $resource = $objectManager->get('Magento\Framework\App\ResourceConnection'); $connection = $resource->getConnection(); $sql = "Select * FROM customer_entity" ; $result = $connection->fetchAll($sql); print_r($result); ?>
3 thoughts on “Magento 2 External PHP Script”
For the knowledge that you can gather for the external PHP script and that you must know from the help of the google drive support to maintain the total guidance for that.
I am very much grateful for your efforts put on this article,This article is very informative, updated and transparent. Can I expect you will post this type of another article in near future?
Visit Our Blog :- How Do I Cancel My SilverSingles Membership
Today many people work in blogging and interested to build career there. we do face some problem to do that. we often make some mistake and this content and tips will help us a lot to do that.
Visit Our Website:- Uber Customer Service