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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: hugo at mni dot pt
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Tue May 06 15:01:30 2025 UTC