php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11386 shell_exec and file size
Submitted: 2001-06-10 14:40 UTC Modified: 2001-06-12 02:47 UTC
From: annaz29 at hotmail dot com Assigned:
Status: Closed Package: Performance problem
PHP Version: 4.0.4pl1 OS: redhat linux
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: annaz29 at hotmail dot com
New email:
PHP Version: OS:

 

 [2001-06-10 14:40 UTC] annaz29 at hotmail dot com
the command:/usr/local/bin/change_charset < input.html >output.html 

can be run correctly on the command line prompt after telnet to the server. 


but when I insert the below in to the php script, then the result not correctly. 
shell_exec ('/usr/local/bin/change_charset < input.html >output.html'); 

what's wrong is that the file input.html is 26K and output.html should be also about 26K, but in fact it is only 13K, obvious, the whole web page become a half page after performance shell_exec or exec. 

I have changed memory_limit to 18M and MAX_file_size to 6M in the file php.ini and restart apache, but no work at all. 

I think it may be a bug.

best regards

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-12 02:47 UTC] sniper@php.net
Impossible to know without knowing WHAT the change_charset
does. But you might wanna try putting set_time_limit(0);
in the beginning of the script..

--Jani

 [2001-06-12 02:47 UTC] sniper@php.net
Impossible to know without knowing WHAT the change_charset
does. But you might wanna try putting set_time_limit(0);
in the beginning of the script..

--Jani

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 15:01:34 2025 UTC