php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24473 Maybe wrong system or exec command
Submitted: 2003-07-03 02:19 UTC Modified: 2003-07-03 08:55 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: habr at iinfo dot cz Assigned:
Status: Not a bug Package: Program Execution
PHP Version: 4CVS-2003-07-03 (stable) OS: WINXP->Linux
Private report: No CVE-ID: None
 [2003-07-03 02:19 UTC] habr at iinfo dot cz
Description:
------------
system("mysqldump --user=*** --password=*** --host=localhost --force database table > /www/sqldump.sql");

This command executes mysql and doesn't create the file, the output is only on the screen.I don't know why the file isn't created.

Thanx



Reproduce code:
---------------
system("mysqldump --user=*** --password=*** --host=localhost --force database table > /www/sqldump.sql");

Expected result:
----------------
Output to the file, not tho the scrren or to the variable like


system(" ....",$array);

Actual result:
--------------
screen output only, no redirection

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-07-03 05:13 UTC] sniper@php.net
Works fine here..propably permissions problem.


 [2003-07-03 08:55 UTC] habr at iinfo dot cz
what kind of permitions do you mean?
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 08:01:30 2024 UTC