php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13112 problems writing files when PHP is run from command line
Submitted: 2001-09-03 12:27 UTC Modified: 2001-10-02 19:30 UTC
From: hugo at mni dot pt Assigned:
Status: Closed Package: Filesystem function related
PHP Version: 4.0.6 OS: windows
Private report: No CVE-ID: None
 [2001-09-03 12:27 UTC] hugo at mni dot pt
There is a problem when i use PHP as a command script.
When i write some string with accented chars to the screen it is ok, but when i write the same string into a file the accents don't show and are changed by other Chars.
When i run the same script by the browser i don't get any problem.

Is this a PHP problem or a character map of my computer?

Thank you.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-09-03 13:40 UTC] mfischer@php.net
With which application do you view the file?
Try redirecting stdout to a file and see if you can see the accented characters.

php -f yourscript.php >output

Awaiting feedback.

- Markus
 [2001-10-02 19:30 UTC] sniper@php.net
No feedback, not enough information.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 08:01:30 2024 UTC