79153255

Date: 2024-11-03 17:19:52
Score: 1
Natty:
Report link

Thanks to all. I found the answer and I share it for other people.

In the 3rd way, I put the absolute path for mysqldump:

$command1 = 'D:/xampp/mysql/bin/mysqldump --user=' . $dbUser . ' --password=' . $dbPassword . ' --host=' . $dbHost . ' ' . $dbName . ' > "' . $fnStorage . '"';
exec($command1, $output, $returnVar);

Now, it works for both design (VSCode) and production environments :)

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Morteza M