|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-11-17 19:41 UTC] pierrick@php.net
[2012-11-17 19:41 UTC] pierrick@php.net
-Status: Open
+Status: Not a bug
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 17:00:01 2025 UTC |
Description: ------------ this code has not any problem: exec('C:/mysql/bin/mysqldump.exe --user=root --password=123456 --host=localhost mydb > D:\myfile.sql'); but this: exec('mydb > D:\myfile.sql'); is any program executed in this? but it create the file with 0byte so now you can create any type of files exec('mydb > D:\myfile.php'); exec('mydb > D:\myfile.exe'); exec('mydb > D:\myfile.txt'); Test script: --------------- exec('mydb > D:\myfile.php'); exec('mydb > D:\myfile.exe'); exec('mydb > D:\myfile.txt');