Date: 03/13/01
- Next message: sschadt <email protected>: "[PHP-DEV] PHP 4.0 Bug #9738: odbc_prepare does implicit SQLSetStmtOption (6,2) (sets to dynamic cursor)"
- Previous message: Mike Robinson: "RE: [PHP-DEV] 4.0.5RC1 packaged"
- Next in thread: sniper <email protected>: "[PHP-DEV] PHP 4.0 Bug #8202 Updated: exec("java -cp classpath classname inputArgument"); has no effect"
- Maybe reply: sniper <email protected>: "[PHP-DEV] PHP 4.0 Bug #8202 Updated: exec("java -cp classpath classname inputArgument"); has no effect"
- Maybe reply: Lee.Seldon <email protected>: "[PHP-DEV] PHP 4.0 Bug #8202 Updated: exec("java -cp classpath classname inputArgument"); has no effect"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ID: 8202
User Update by: Lee.Seldon <email protected>
Old-Status: Feedback
Status: Open
Bug Type: *Function Specific
Description: exec("java -cp classpath classname inputArgument"); has no effect
ID 8202
I don't get any error messages.
A student of mine tried the code on his system, and claimed it worked.
Using 4.0.3 as CGI installation
Not urgent - our work-around -> re-wrote the Java code in PHP, and that works.
Lee
Previous Comments:
---------------------------------------------------------------------------
[2001-02-24 12:40:58] jmoore <email protected>
are you not getting any errors?? Can you try exec with other programs and see if it happens with them?
Not getting a unable to fork eror are you? what SAPI are you using ISAPI or CGI?
---------------------------------------------------------------------------
[2000-12-11 22:57:15] Lee.Seldon <email protected>
The command prompt line
java -cp .;C:Javabin;C:Javalib;C:Javalibtools.jar;E:Health_InfoHealthWebDirectoryMessages HTML_HL7translator E:Health_InfoHealthWebDirectoryMessagesDischargeDis-2000-11-28-1.htm
runs the java class HTML_HL7translator with input file Dis-2000-11-28-1.htm
jdk1.3 is installed and works
None of the commands in the following cause HTML_HL7translator to run:
<?php
$javaHL7 = exec("java -cp .;C:Javabin;C:Javalib;C:Javalibtools.jar;E:Health_InfoHealthWebDirectoryMessages HTML_HL7translator E:Health_InfoHealthWebDirectoryMessagesDischargeDis-2000-11-28-1.htm");
echo "did execn";
passthru("java -cp .;C:Javabin;C:Javalib;C:Javalibtools.jar;E:Health_InfoHealthWebDirectoryMessages HTML_HL7translator E:Health_InfoHealthWebDirectoryMessagesDischargeDis-2000-11-26-2.htm");
echo "did passthrun";
$javaHL7s = system("java -cp .;C:Javabin;C:Javalib;C:Javalibtools.jar;E:Health_InfoHealthWebDirectoryMessages HTML_HL7translator E:Health_InfoHealthWebDirectoryMessagesDischargeDis-2000-11-26-4.htm");
echo "did system()";
?>
[PHP] extracts
;;;;;;;;;;;;;;;;;;;;
; Language Options ;
;;;;;;;;;;;;;;;;;;;;
engine = On ; Enable the PHP scripting language engine under Apache
short_open_tag = On ; allow the <? tag. otherwise, only <?php and <script> tags are recognized.
asp_tags = Off ; allow ASP-style <% %> tags
precision = 14 ; number of significant digits displayed in floating point numbers
y2k_compliance = Off ; whether to be year 2000 compliant (will cause problems with non y2k compliant browsers)
output_buffering = Off ; Output buffering allows you to send header lines (including cookies)
implicit_flush = Off ; Implicit flush tells PHP to tell the output layer to flush itself
allow_call_time_pass_reference = On ; whether to enable the ability to force arguments to be
safe_mode = Off
safe_mode_exec_dir =
safe_mode_allowed_env_vars = PHP_ ; Setting certain environment variables
safe_mode_protected_env_vars = LD_LIBRARY_PATH ; This directive contains a comma-
disable_functions =
; Colors for Syntax Highlighting mode. Anything that's acceptable in <font color=???> would work.
highlight.string = #DD0000
highlight.comment = #FF8000
highlight.keyword = #007700
highlight.bg = #FFFFFF
highlight.default = #0000BB
highlight.html = #000000
; Misc
expose_php = On
;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;
max_execution_time = 30 ; Maximum execution time of each script, in seconds
memory_limit = 8M ; Maximum amount of memory a script may consume (8MB)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Error handling and logging ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; error_reporting is a bit-field. Or each number up to get desired error reporting level
E_ALL - All errors and warnings
error_reporting = E_ALL; display all errors, warnings and notices
display_errors = Off ; Print out errors (as a part of the output)
display_startup_errors = Off ; Even when display_errors is on, errors that occur during
log_errors = On
track_errors = Off ; Store the last error/warning message in $php_errormsg (boolean)
error_log = E:Health_InfoHealthWebDirectoryphp_error.txt ; log errors to specified file
warn_plus_overloading = Off ; warn if the + operator is used with strings
;;;;;;;;;;;;;;;;;
; Data Handling ;
;;;;;;;;;;;;;;;;;
; Note - track_vars is ALWAYS enabled as of PHP 4.0.3
variables_order = "EGPCS" ; This directive describes the order in which PHP registers
register_argc_argv = On ; This directive tells PHP whether to declare the argv&argc
post_max_size = 8M ; Maximum size of POST data that PHP will accept.
gpc_order = "GPC" ; Thi
magic_quotes_gpc = On ; magic quotes for incoming GET/POST/Cookie data
magic_quotes_runtime= Off ; magic quotes for runtime-gener
magic_quotes_sybase = Off ; Use Sybase-style ma
auto_prepend_file =
auto_append_file =
; PHP's built-in default is text/html
default_mimetype = "text/html"
;default_charset = "iso-8859-1"
;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;
include_path = ; UNIX: "/path1:/path2" Windows: "path1;path2"
doc_root = ; the root of the php pages, used only if nonempty
user_dir = ; the directory under which php opens the script using /~username, used only if nonempty
extension_dir = ./ ; directory in which the loadable extensions (modules) reside
enable_dl = On ; Whether or not to enable the dl() function.
; The dl() function does NOT properly work in multithreaded
; servers, such as IIS or Zeus, and is automatically disabled on them.
;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;
file_uploads = On ; Whether to allow HTTP file uploads
upload_tmp_dir = C:Program FilesPhp4uploadtemp ; temporary directory for HTTP uploaded files (will use system default if not specified)
upload_max_filesize = 2M ; Maximum allowed size for uploaded files
;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;
extension=php_java.dll
;;;;;;;;;;;;;;;;;;;
; Module Settings ;
;;;;;;;;;;;;;;;;;;;
[Syslog]
define_syslog_variables = Off ; Whether or not to define the various s
[mail function]
SMTP = smtp.monash.edu.au ; for Win32 only
sendmail_from = Lee.Seldon <email protected> ; for Win32 only
[Debugger]
debugger.host = localhost
debugger.port = 7869
debugger.enabled = False
[Logging]
[Java]
java.class.path = extensionsjdk1.3php_java.jar
java.home = c:java
java.library = c:javajrebinhotspotjvm.dll
java.library.path = .
[SQL]
sql.safe_mode = Off
[ODBC]
uodbc.allow_persistent = On ; allow or prevent persistent links
uodbc.check_persistent = On ; check that a connection is still validbefore reuse
uodbc.max_persistent = -1 ; maximum number of persistent links. -1 means no limit
uodbc.max_links = -1 ; maximum number of link
uodbc.defaultlrl = 4096 ; Handling of LONG fields. Returns number of bytes
uodbc.defaultbinmode = 1 ; Handling of binary data. 0 means passth
[Session]
session.save_handler = files ; handler used to store/retrieve data
session.save_path = C:Program FilesPhp4sessiondata ; argument pass
session.use_cookies = 1 ; whether to use cookies
session.name = PHPSESSID
session.auto_start = 0 ; initialize session on request startup
session.cookie_lifetime = 0 ; lifetime in seconds of cookie
session.cookie_path = / ; the path the cookie is valid for
session.cookie_domain = ; the domain the cookie is valid for
session.serialize_handler = php ; handler used to serialize data
session.gc_probability = 1 ; percentual probability that the
session.gc_maxlifetime = 1440 ; after this number of seconds, stored
session.referer_check = ; check HTTP Referer to invalidate
session.entropy_length = 0 ; how many bytes to read from the file
session.entropy_file = ; specified here to create the session id
session.cache_limiter = nocache ; set to {nocache,private,public} to
session.cache_expire = 180 ; document expires after n minutes
session.use_trans_sid = 1 ; use transient sid support if enabled
; End:
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=8202
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: sschadt <email protected>: "[PHP-DEV] PHP 4.0 Bug #9738: odbc_prepare does implicit SQLSetStmtOption (6,2) (sets to dynamic cursor)"
- Previous message: Mike Robinson: "RE: [PHP-DEV] 4.0.5RC1 packaged"
- Next in thread: sniper <email protected>: "[PHP-DEV] PHP 4.0 Bug #8202 Updated: exec("java -cp classpath classname inputArgument"); has no effect"
- Maybe reply: sniper <email protected>: "[PHP-DEV] PHP 4.0 Bug #8202 Updated: exec("java -cp classpath classname inputArgument"); has no effect"
- Maybe reply: Lee.Seldon <email protected>: "[PHP-DEV] PHP 4.0 Bug #8202 Updated: exec("java -cp classpath classname inputArgument"); has no effect"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

