problems to run php cmd.php

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
lg

problems to run php cmd.php

Post by lg »

I have serious problems to run cmd.php

C:\Inetpub\wwwroot\cacti>php cmd.php
X-Powered-By: PHP/4.2.1
Content-type: text/html

<br />
<b>Notice</b>: Undefined variable: database in <b>c:\inetpub\wwwroot\cacti\include\database.php</b
> on line <b>17</b><br />
"w" no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable.
<br />
<b>Notice</b>: Undefined variable: do_not_read_config in <b>c:\inetpub\wwwroot\cacti\include\confi
g.php</b> on line <b>43</b><br />
<br />
<b>Notice</b>: Undefined variable: database in <b>c:\inetpub\wwwroot\cacti\include\database.php</b
> on line <b>17</b><br />
<br />
<b>Notice</b>: Undefined variable: do_not_read_config in <b>c:\inetpub\wwwroot\cacti\include\confi
g.php</b> on line <b>43</b><br />
<br />
<b>Notice</b>: Undefined variable: database in <b>c:\inetpub\wwwroot\cacti\include\database.php</b
> on line <b>17</b><br />
<br />
<b>Notice</b>: Undefined variable: do_not_read_config in <b>c:\inetpub\wwwroot\cacti\include\confi
g.php</b> on line <b>43</b><br />
<br />
<b>Notice</b>: Undefined variable: database in <b>c:\inetpub\wwwroot\cacti\include\database.php</b
> on line <b>17</b><br />
<br />
<b>Notice</b>: Undefined variable: do_not_read_config in <b>c:\inetpub\wwwroot\cacti\include\confi
g.php</b> on line <b>43</b><br />
<br />
<b>Notice</b>: Undefined variable: database in <b>c:\inetpub\wwwroot\cacti\include\database.php</b
> on line <b>17</b><br />
<br />
<b>Notice</b>: Undefined variable: do_not_read_config in <b>c:\inetpub\wwwroot\cacti\include\confi
g.php</b> on line <b>43</b><br />
<br />
<b>Notice</b>: Undefined variable: do_not_read_config in <b>c:\inetpub\wwwroot\cacti\include\confi
g.php</b> on line <b>43</b><br />
........ ETC


I have PHP 4.2.1 Mysql 1.4 win2k web serv. run over IIS.
I believe the problem is PHP.INI file but I don´t know how fix it

My php.ini file contains
[PHP]

engine = Off
short_open_tag = On
asp_tags = Off
precision = 12
y2k_compliance = Off
output_buffering = Off
output_handler =
unserialize_callback_func=
zlib.output_compression = Off
implicit_flush = Off
allow_call_time_pass_reference = On
safe_mode = Off
safe_mode_gid = Off
safe_mode_include_dir =
safe_mode_exec_dir =
safe_mode_allowed_env_vars = PHP_
safe_mode_protected_env_vars = LD_LIBRARY_PATH
disable_functions =
highlight.string = #CC0000
highlight.comment = #FF9900
highlight.keyword = #006600
highlight.bg = #FFFFFF
highlight.default = #0000CC
highlight.html = #000000
expose_php = On
max_execution_time = 200 ; Maximum execution time of each script, in seconds
memory_limit = 8M ; Maximum amount of memory a script may consume (8MB)
error_reporting = E_ALL; display all errors, warnings and notices
display_errors = On
display_startup_errors = Off
log_errors = Off
track_errors = Off
warn_plus_overloading = Off
variables_order = "EGPCS"
post_max_size = 8M
gpc_order = "GPC"
magic_quotes_gpc = On
magic_quotes_runtime = Off
magic_quotes_sybase = Off
auto_prepend_file =
auto_append_file =
default_mimetype = "text/html"
;include_path = ".;c:\php\includes"
doc_root =
user_dir =
enable_dl = On
cgi.force_redirect = 0
file_uploads = On
upload_tmp_dir = C:\PHP\uploadtemp ; temporary directory for HTTP uploaded files (will use system default if not specified)
upload_max_filesize = 2M
allow_url_fopen = On

extension_dir = c:/php/extensions
extension=php_snmp.dll
include_path=c:/inetpub/wwwroot/cacti
register_globals = On
register_argc_argv = On


[Syslog]
define_syslog_variables = Off
[mail function]
SMTP = bbchex05 ; for Win32 only
sendmail_from = jgarciaa@bancochile.cl ; for Win32 only
[Java]

[SQL]
sql.safe_mode = Off

[ODBC]
odbc.allow_persistent = On
odbc.check_persistent = On
odbc.max_persistent = -1
odbc.max_links = -1
odbc.defaultlrl = 4096
odbc.defaultbinmode = 1

[MySQL]

mysql.allow_persistent = On
mysql.max_persistent = -1
mysql.max_links = -1
mysql.default_port =
mysql.default_socket =
mysql.default_host =
mysql.default_user =
mysql.default_password =

[mSQL]
msql.allow_persistent = On
msql.max_persistent = -1
msql.max_links = -1

[PostgresSQL]
pgsql.allow_persistent = On
pgsql.auto_reset_persistent = Off
pgsql.max_persistent = -1
pgsql.max_links = -1

[Sybase]

sybase.allow_persistent = On
sybase.max_persistent = -1
sybase.max_links = -1
sybase.min_error_severity = 10
sybase.min_message_severity = 10
sybase.compatability_mode = Off

[Sybase-CT]
sybct.allow_persistent = On
sybct.max_persistent = -1
sybct.max_links = -1
sybct.min_server_severity = 10
sybct.min_client_severity = 10

[bcmath]
bcmath.scale = 0

[browscap]

[Informix]
ifx.default_host =
ifx.default_user =
ifx.default_password =
ifx.allow_persistent = On
ifx.max_persistent = -1
ifx.max_links = -1
ifx.textasvarchar = 0
ifx.byteasvarchar = 0
ifx.charasvarchar = 0
ifx.blobinfile = 0
ifx.nullformat = 0

[Session]
session.save_handler = files
session.save_path = C:\PHP\sessiondata ; argument passed to save_handler
session.use_cookies = 1
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = /
session.cookie_domain =
session.serialize_handler = php
session.gc_probability = 1
session.gc_maxlifetime = 1440
session.referer_check =
session.entropy_length = 0
session.entropy_file =
session.cache_limiter = nocache
session.cache_expire = 180
session.use_trans_sid = 1
url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"

[MSSQL]
mssql.allow_persistent = On
mssql.max_persistent = -1
mssql.max_links = -1
mssql.min_error_severity = 10
mssql.min_message_severity = 10
mssql.compatability_mode = Off

[Assertion]

[Ingres II]
ingres.allow_persistent = On
ingres.max_persistent = -1
ingres.max_links = -1
ingres.default_database =
ingres.default_user =
ingres.default_password =

[Verisign Payflow Pro]
pfpro.defaulthost = "test-payflow.verisign.com"
pfpro.defaultport = 443
pfpro.defaulttimeout = 30

[Sockets]
sockets.use_system_read = On

[com]

[Printer]

[mbstring]

[FrontBase]



Thanks for your help


:cry:
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests