I use Prestashop 1.7.5.0
now on my import.php (with 755 permission) I've:
// PRESTASHOP SETTINGS FILE
require_once ('app/config/parameters.php');
// REMOTE CSV FILE (CUSTOMIZE YOURCSVFILEPATH, CAN BE AN URL OR A LOCAL PATH)
$remote_csv_file = 'import.csv';
// DB CONNECTION (CUSTOMIZE YOURDBHOSTNAME AND YOURDBPORT)
//$db = new PDO("mysql:host=localhost;port=3306;dbname="._DB_NAME_."", _DB_USER_, _DB_PASSWD_);
$db = new PDO('mysql:host=localhost;dbname=prestashop', $database_user , $database_password);
but always error 500
test also commented require_once ('config/settings.inc.php'); and add
$database_host = 'localhost';
$database_port = '';
$database_name = 'XXXX';
$database_user = 'XXXXXXX';
$database_password = 'XXXXXXX';
always error 500