php-windows Digest 25 Sep 2002 00:39:48 -0000 Issue 1355
Topics (messages 15975 through 15986):
Re: Install PHP with IIS 5/W2K
15975 by: Pascal S.
misterius ERROR after changing config.inc.php and changing it back
15976 by: M.B.
15977 by: Dash McElroy
15978 by: M.B.
Errr... problem uploading files
15979 by: Jose Fandos
$SCRIPT_NAME Problem
15980 by: Brad Harriger
15981 by: Brad Harriger
@include ...
15982 by: Wolfgang Schneider
15983 by: Jim Hunter
15984 by: Daniel Gustafsson
Getting winamp info
15985 by: Olivier Hubert
15986 by: Dash McElroy
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
You are right on. I was trying to execute the code by dragging and dropping
the file into an IE window. Accessing it through the localhost path works
great.
Thanks so much for your help.
Pascal
"Phil Driscoll" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
On Tuesday 24 September 2002 5:24 am, Pascal S. wrote:
> I installed PHP 4.2.3 using the installer from PHP.net
>
> I can send the test.php file to the php.exe, and I get the right html
code.
>
> However, trying to open the same test.php in IE 6 won't produce anything.
> The window gets the right title, all html is displayed right, but nothing
> between <?php ?> is executed.
>
> I have tried to change most of the settings in Internet Information
> Services, the extension .php under configuration is also set to
> C:\PHP\php.exe, etc...
>
> What should I look at next?
Are you opening the file as c:\php\test.php or as http://localhost/test.php?
If you view source, do you see the php source code?
--
Phil Driscoll
--- End Message ---
--- Begin Message ---
A couple of weaks ago, I changed my config.inc.php file.
I tried to use the advanched authentication by setting it to true.
After that I couldn't use my MYSQL.
Then I changed it back.
And it worked again.
But then I restarted my computer, and now I get this message:
Warning: MySQL Connection Failed: Can't connect to MySQL server on
'localhost' (10061) in C:\apache\htdocs\sunservernet\stats.php on line 4
MySQL connectie mislukt.
and I can't get to the PHPmyadmin-file by using my browser.
What on earth whent wrong?
Does anyone have a sugestion? (And yes, my MYSQLserver is running)
I have this configuration in the file:
<?php
/* $Id: config.inc.php,v 1.28 2000/07/13 13:52:48 tobias Exp $ */
/*
* phpMyAdmin Configuration File
* All directives are explained in Documentation.html
*/
// The $cfgServers array starts with $cfgServers[1]. Do not use
$cfgServers[0].
// You can disable a server config entry by setting host to ''.
$cfgServers[1]['host'] = 'localhost' ; // MySQL hostname
$cfgServers[1]['port'] = ''; // MySQL port - leave blank
for default port
$cfgServers[1]['adv_auth'] = false; // Use advanced
authentication?
$cfgServers[1]['stduser'] = ''; // MySQL standard user (only
needed with advanced auth)
$cfgServers[1]['stdpass'] = ''; // MySQL standard password
(only needed with advanced auth)
$cfgServers[1]['user'] = ''; // MySQL user (only needed with
basic auth)
$cfgServers[1]['password'] = ''; // MySQL password (only
needed with basic auth)
$cfgServers[1]['only_db'] = ''; // If set to a db-name, only
this db is accessible
$cfgServers[1]['verbose'] = ''; // Verbose name for this
host - leave blank to show the hostname
$cfgServers[2]['host'] = '';
$cfgServers[2]['port'] = '';
$cfgServers[2]['adv_auth'] = false;
$cfgServers[2]['stduser'] = '';
$cfgServers[2]['stdpass'] = '';
$cfgServers[2]['user'] = '';
$cfgServers[2]['password'] = '';
$cfgServers[2]['only_db'] = '';
$cfgServers[2]['verbose'] = '';
$cfgServers[3]['host'] = '';
$cfgServers[3]['port'] = '';
$cfgServers[3]['adv_auth'] = false;
$cfgServers[3]['stduser'] = '';
$cfgServers[3]['stdpass'] = '';
$cfgServers[3]['user'] = 'root';
$cfgServers[3]['password'] = '';
$cfgServers[3]['only_db'] = '';
$cfgServers[3]['verbose'] = '';
// If you have more than one server configured, you can set
$cfgServerDefault
// to any one of them to autoconnect to that server when phpMyAdmin is
started,
// or set it to 0 to be given a list of servers without logging in
// If you have only one server configured, $cfgServerDefault *MUST* be
// set to that server.
$cfgServerDefault = 1; // Default server (0 = no
default server)
$cfgServer = '';
unset($cfgServers[0]);
$cfgManualBase = "http://www.mysql.com/documentation/mysql/bychapter/";
$cfgConfirm = true;
$cfgPersistentConnections = false;
$cfgBorder = "0";
$cfgThBgcolor = "#D3DCE3";
$cfgBgcolorOne = "#CCCCCC";
$cfgBgcolorTwo = "#DDDDDD";
$cfgMaxRows = 30;
$cfgMaxInputsize = "300px";
$cfgOrder = "ASC";
$cfgShowBlob = true;
$cfgShowSQL = true;
require("english.inc.php");
$cfgColumnTypes = array(
"TINYINT",
"SMALLINT",
"MEDIUMINT",
"INT",
"BIGINT",
"FLOAT",
"DOUBLE",
"DECIMAL",
"DATE",
"DATETIME",
"TIMESTAMP",
"TIME",
"YEAR",
"CHAR",
"VARCHAR",
"TINYBLOB",
"TINYTEXT",
"TEXT",
"BLOB",
"MEDIUMBLOB",
"MEDIUMTEXT",
"LONGBLOB",
"LONGTEXT",
"ENUM",
"SET");
$cfgFunctions = array(
"ASCII",
"CHAR",
"SOUNDEX",
"CURDATE",
"CURTIME",
"FROM_DAYS",
"FROM_UNIXTIME",
"NOW",
"PASSWORD",
"PERIOD_ADD",
"PERIOD_DIFF",
"TO_DAYS",
"USER",
"WEEKDAY",
"RAND");
$cfgAttributeTypes = array(
"",
"BINARY",
"UNSIGNED",
"UNSIGNED ZEROFILL");
// Setting magic_quotes_runtime - do not change!
set_magic_quotes_runtime(0);
?>
please help me.
M.B.
--- End Message ---
--- Begin Message ---
Stupid question:
Is your MySQL server running? I had a similar issue when I forgot to set the
service to Automatic from Manual...
-Dash
-----Original Message-----
From: M.B. [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 24, 2002 10:24 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] misterius ERROR after changing config.inc.php and
changing it back
A couple of weaks ago, I changed my config.inc.php file.
I tried to use the advanched authentication by setting it to true.
After that I couldn't use my MYSQL.
Then I changed it back.
And it worked again.
But then I restarted my computer, and now I get this message:
Warning: MySQL Connection Failed: Can't connect to MySQL server on
'localhost' (10061) in C:\apache\htdocs\sunservernet\stats.php on line 4
MySQL connectie mislukt.
and I can't get to the PHPmyadmin-file by using my browser.
What on earth whent wrong?
Does anyone have a sugestion? (And yes, my MYSQLserver is running)
I have this configuration in the file:
<?php
/* $Id: config.inc.php,v 1.28 2000/07/13 13:52:48 tobias Exp $ */
/*
* phpMyAdmin Configuration File
* All directives are explained in Documentation.html
*/
// The $cfgServers array starts with $cfgServers[1]. Do not use
$cfgServers[0].
// You can disable a server config entry by setting host to ''.
$cfgServers[1]['host'] = 'localhost' ; // MySQL hostname
$cfgServers[1]['port'] = ''; // MySQL port - leave blank
for default port
$cfgServers[1]['adv_auth'] = false; // Use advanced
authentication?
$cfgServers[1]['stduser'] = ''; // MySQL standard user (only
needed with advanced auth)
$cfgServers[1]['stdpass'] = ''; // MySQL standard password
(only needed with advanced auth)
$cfgServers[1]['user'] = ''; // MySQL user (only needed with
basic auth)
$cfgServers[1]['password'] = ''; // MySQL password (only
needed with basic auth)
$cfgServers[1]['only_db'] = ''; // If set to a db-name, only
this db is accessible
$cfgServers[1]['verbose'] = ''; // Verbose name for this
host - leave blank to show the hostname
$cfgServers[2]['host'] = '';
$cfgServers[2]['port'] = '';
$cfgServers[2]['adv_auth'] = false;
$cfgServers[2]['stduser'] = '';
$cfgServers[2]['stdpass'] = '';
$cfgServers[2]['user'] = '';
$cfgServers[2]['password'] = '';
$cfgServers[2]['only_db'] = '';
$cfgServers[2]['verbose'] = '';
$cfgServers[3]['host'] = '';
$cfgServers[3]['port'] = '';
$cfgServers[3]['adv_auth'] = false;
$cfgServers[3]['stduser'] = '';
$cfgServers[3]['stdpass'] = '';
$cfgServers[3]['user'] = 'root';
$cfgServers[3]['password'] = '';
$cfgServers[3]['only_db'] = '';
$cfgServers[3]['verbose'] = '';
// If you have more than one server configured, you can set
$cfgServerDefault
// to any one of them to autoconnect to that server when phpMyAdmin is
started,
// or set it to 0 to be given a list of servers without logging in
// If you have only one server configured, $cfgServerDefault *MUST* be
// set to that server.
$cfgServerDefault = 1; // Default server (0 = no
default server)
$cfgServer = '';
unset($cfgServers[0]);
$cfgManualBase = "http://www.mysql.com/documentation/mysql/bychapter/";
$cfgConfirm = true;
$cfgPersistentConnections = false;
$cfgBorder = "0";
$cfgThBgcolor = "#D3DCE3";
$cfgBgcolorOne = "#CCCCCC";
$cfgBgcolorTwo = "#DDDDDD";
$cfgMaxRows = 30;
$cfgMaxInputsize = "300px";
$cfgOrder = "ASC";
$cfgShowBlob = true;
$cfgShowSQL = true;
require("english.inc.php");
$cfgColumnTypes = array(
"TINYINT",
"SMALLINT",
"MEDIUMINT",
"INT",
"BIGINT",
"FLOAT",
"DOUBLE",
"DECIMAL",
"DATE",
"DATETIME",
"TIMESTAMP",
"TIME",
"YEAR",
"CHAR",
"VARCHAR",
"TINYBLOB",
"TINYTEXT",
"TEXT",
"BLOB",
"MEDIUMBLOB",
"MEDIUMTEXT",
"LONGBLOB",
"LONGTEXT",
"ENUM",
"SET");
$cfgFunctions = array(
"ASCII",
"CHAR",
"SOUNDEX",
"CURDATE",
"CURTIME",
"FROM_DAYS",
"FROM_UNIXTIME",
"NOW",
"PASSWORD",
"PERIOD_ADD",
"PERIOD_DIFF",
"TO_DAYS",
"USER",
"WEEKDAY",
"RAND");
$cfgAttributeTypes = array(
"",
"BINARY",
"UNSIGNED",
"UNSIGNED ZEROFILL");
// Setting magic_quotes_runtime - do not change!
set_magic_quotes_runtime(0);
?>
please help me.
M.B.
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Whell, as I said in the last part of my message:
"Dash McElroy" <[EMAIL PROTECTED]> schreef in bericht
ABA3F1F1A223D411BE6C006008A6F7E2604B57@MSX1-PTON">news:ABA3F1F1A223D411BE6C006008A6F7E2604B57@MSX1-PTON...
> Stupid question:
> >...... Does anyone have a sugestion? (And yes, my MYSQLserver is running)
So yes it is running and it is running automaticly.
So that isn't problem.
M.B.
> Is your MySQL server running? I had a similar issue when I forgot to set
the
> service to Automatic from Manual...
>
> -Dash
>
> -----Original Message-----
> From: M.B. [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 24, 2002 10:24 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] misterius ERROR after changing config.inc.php and
> changing it back
>
>
> A couple of weaks ago, I changed my config.inc.php file.
>
> I tried to use the advanched authentication by setting it to true.
> After that I couldn't use my MYSQL.
> Then I changed it back.
> And it worked again.
> But then I restarted my computer, and now I get this message:
>
> Warning: MySQL Connection Failed: Can't connect to MySQL server on
> 'localhost' (10061) in C:\apache\htdocs\sunservernet\stats.php on line 4
> MySQL connectie mislukt.
>
>
> and I can't get to the PHPmyadmin-file by using my browser.
> What on earth whent wrong?
>
> Does anyone have a sugestion? (And yes, my MYSQLserver is running)
>
>
> I have this configuration in the file:
>
> <?php
> /* $Id: config.inc.php,v 1.28 2000/07/13 13:52:48 tobias Exp $ */
>
> /*
> * phpMyAdmin Configuration File
> * All directives are explained in Documentation.html
> */
>
> // The $cfgServers array starts with $cfgServers[1]. Do not use
> $cfgServers[0].
> // You can disable a server config entry by setting host to ''.
> $cfgServers[1]['host'] = 'localhost' ; // MySQL hostname
> $cfgServers[1]['port'] = ''; // MySQL port - leave
blank
> for default port
> $cfgServers[1]['adv_auth'] = false; // Use advanced
> authentication?
> $cfgServers[1]['stduser'] = ''; // MySQL standard user (only
> needed with advanced auth)
> $cfgServers[1]['stdpass'] = ''; // MySQL standard password
> (only needed with advanced auth)
> $cfgServers[1]['user'] = ''; // MySQL user (only needed
with
> basic auth)
> $cfgServers[1]['password'] = ''; // MySQL password (only
> needed with basic auth)
> $cfgServers[1]['only_db'] = ''; // If set to a db-name,
only
> this db is accessible
> $cfgServers[1]['verbose'] = ''; // Verbose name for this
> host - leave blank to show the hostname
>
> $cfgServers[2]['host'] = '';
> $cfgServers[2]['port'] = '';
> $cfgServers[2]['adv_auth'] = false;
> $cfgServers[2]['stduser'] = '';
> $cfgServers[2]['stdpass'] = '';
> $cfgServers[2]['user'] = '';
> $cfgServers[2]['password'] = '';
> $cfgServers[2]['only_db'] = '';
> $cfgServers[2]['verbose'] = '';
>
> $cfgServers[3]['host'] = '';
> $cfgServers[3]['port'] = '';
> $cfgServers[3]['adv_auth'] = false;
> $cfgServers[3]['stduser'] = '';
> $cfgServers[3]['stdpass'] = '';
> $cfgServers[3]['user'] = 'root';
> $cfgServers[3]['password'] = '';
> $cfgServers[3]['only_db'] = '';
> $cfgServers[3]['verbose'] = '';
>
> // If you have more than one server configured, you can set
> $cfgServerDefault
> // to any one of them to autoconnect to that server when phpMyAdmin is
> started,
> // or set it to 0 to be given a list of servers without logging in
> // If you have only one server configured, $cfgServerDefault *MUST* be
> // set to that server.
> $cfgServerDefault = 1; // Default server (0 =
no
> default server)
> $cfgServer = '';
> unset($cfgServers[0]);
>
> $cfgManualBase = "http://www.mysql.com/documentation/mysql/bychapter/";
>
> $cfgConfirm = true;
> $cfgPersistentConnections = false;
>
> $cfgBorder = "0";
> $cfgThBgcolor = "#D3DCE3";
> $cfgBgcolorOne = "#CCCCCC";
> $cfgBgcolorTwo = "#DDDDDD";
> $cfgMaxRows = 30;
> $cfgMaxInputsize = "300px";
> $cfgOrder = "ASC";
> $cfgShowBlob = true;
> $cfgShowSQL = true;
>
> require("english.inc.php");
>
> $cfgColumnTypes = array(
> "TINYINT",
> "SMALLINT",
> "MEDIUMINT",
> "INT",
> "BIGINT",
> "FLOAT",
> "DOUBLE",
> "DECIMAL",
> "DATE",
> "DATETIME",
> "TIMESTAMP",
> "TIME",
> "YEAR",
> "CHAR",
> "VARCHAR",
> "TINYBLOB",
> "TINYTEXT",
> "TEXT",
> "BLOB",
> "MEDIUMBLOB",
> "MEDIUMTEXT",
> "LONGBLOB",
> "LONGTEXT",
> "ENUM",
> "SET");
>
> $cfgFunctions = array(
> "ASCII",
> "CHAR",
> "SOUNDEX",
> "CURDATE",
> "CURTIME",
> "FROM_DAYS",
> "FROM_UNIXTIME",
> "NOW",
> "PASSWORD",
> "PERIOD_ADD",
> "PERIOD_DIFF",
> "TO_DAYS",
> "USER",
> "WEEKDAY",
> "RAND");
>
> $cfgAttributeTypes = array(
> "",
> "BINARY",
> "UNSIGNED",
> "UNSIGNED ZEROFILL");
>
> // Setting magic_quotes_runtime - do not change!
> set_magic_quotes_runtime(0);
> ?>
>
> please help me.
>
> M.B.
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Hi,
Under PHP 4.2.3 and 4.2.2 with Apache 1.3.6, all under Windows XP, when
a
form has a file input field, if I browse and upload, all the information
going with the post to the server gets lost!!! There is no trace of it
(and
this is what's really frustating me, no trace in any log of any errors).
var_dump's show everything empty. If I submit without browsing (i.e. no
file
selected), I do see the $_FILES array signaling an error, but otherwise
complete, and everything else (though, on further testing, it seems that
it
works one out of every 4 times when no file is selected, and never if a
file
is selected).
I have checked the max_filesize and every other limit and they seem ok.
I
have tried with different files with no results, picking them from
different
folders in the hard drive, too.
I have also tried the same code while in another server (Solaris and Red
Hat
Linux) and there it works, while I upload files from my XP machine. I
have
made the php.ini as close as possible to those other systems, but still
nothing.
I have checked the event viewer in Windows XP to see if there is
something
in there, but nothing showed up. I've been trying with both IE and
Mozilla.
No difference.
What follows is the phpinfo(). Maybe someone can spot a problem in
there.
PHP Version 4.2.3
System
Windows NT 5.1 build 2600
Build Date
Sep 6 2002 10:38:51
Server API
Apache
Virtual Directory Support
enabled
Configuration File (php.ini) Path
C:\WINDOWS\php.ini
Debug Build
no
Thread Safety
enabled
This program makes use of the Zend Scripting Language Engine: Zend
Engine
v1.2.0, Copyright (c) 1998-2002 Zend Technologies
PHP 4 Credits
Configuration
PHP Core
Directive
Local Value
Master Value
allow_call_time_pass_reference
Off
Off
allow_url_fopen
1
1
always_populate_raw_post_data
0
0
arg_separator.input
&
&
arg_separator.output
&
&
asp_tags
Off
Off
auto_append_file
no value
no value
auto_prepend_file
no value
no value
browscap
no value
no value
default_charset
no value
no value
default_mimetype
text/html
text/html
define_syslog_variables
Off
Off
disable_functions
no value
no value
display_errors
On
On
display_startup_errors
On
On
doc_root
no value
no value
enable_dl
On
On
error_append_string
no value
no value
error_log
no value
no value
error_prepend_string
no value
no value
error_reporting
2047
2047
expose_php
On
On
extension_dir
../
../
file_uploads
1
1
gpc_order
GPC
GPC
highlight.bg
#FFFFFF
#FFFFFF
highlight.comment
#FF9900
#FF9900
highlight.default
#0000CC
#0000CC
highlight.html
#000000
#000000
highlight.keyword
#006600
#006600
highlight.string
#CC0000
#CC0000
html_errors
On
On
ignore_user_abort
Off
Off
implicit_flush
Off
Off
include_path
..;c:\program files\php 4.2.3\pear
..;c:\program files\php 4.2.3\pear
log_errors
On
On
magic_quotes_gpc
Off
Off
magic_quotes_runtime
Off
Off
magic_quotes_sybase
Off
Off
max_execution_time
30
30
open_basedir
no value
no value
output_buffering
4096
4096
output_handler
no value
no value
post_max_size
8M
8M
precision
14
14
register_argc_argv
Off
Off
register_globals
Off
Off
safe_mode
Off
Off
safe_mode_exec_dir
no value
no value
safe_mode_gid
Off
Off
safe_mode_include_dir
no value
no value
sendmail_from
[EMAIL PROTECTED]
[EMAIL PROTECTED]
sendmail_path
no value
no value
short_open_tag
On
On
SMTP
localhost
localhost
sql.safe_mode
Off
Off
track_errors
Off
Off
unserialize_callback_func
no value
no value
upload_max_filesize
2M
2M
upload_tmp_dir
no value
no value
user_dir
no value
no value
variables_order
GPCS
GPCS
xmlrpc_error_number
0
0
xmlrpc_errors
Off
Off
y2k_compliance
Off
Off
standard
Regex Library
Bundled library enabled
Dynamic Library Support
enabled
Internal Sendmail Support for Windows
enabled
Directive
Local Value
Master Value
assert.active
1
1
assert.bail
0
0
assert.callback
no value
no value
assert.quiet_eval
0
0
assert.warning
1
1
safe_mode_allowed_env_vars
PHP_
PHP_
safe_mode_protected_env_vars
LD_LIBRARY_PATH
LD_LIBRARY_PATH
url_rewriter.tags a=href,area=href,frame=src,input=src,form=fakeentry
a=href,area=href,frame=src,input=src,form=fakeentry
bcmath
BCMath support
enabled
calendar
Calendar support
enabled
com
Directive
Local Value
Master Value
com.allow_dcom
Off
Off
com.autoregister_casesensitive
On
On
com.autoregister_typelib
Off
Off
com.autoregister_verbose
Off
Off
com.typelib_file
no value
no value
ftp
FTP support
enabled
mysql
MySQL Support
enabled
Active Persistent Links
0
Active Links
0
Client API version
3.23.39
Directive
Local Value
Master Value
mysql.allow_persistent
On
On
mysql.default_host
no value
no value
mysql.default_password
no value
no value
mysql.default_port
no value
no value
mysql.default_socket
no value
no value
mysql.default_user
no value
no value
mysql.max_links
Unlimited
Unlimited
mysql.max_persistent
Unlimited
Unlimited
odbc
ODBC Support
enabled
Active Persistent Links
0
Active Links
0
ODBC library
Win32
Directive
Local Value
Master Value
odbc.allow_persistent
On
On
odbc.check_persistent
On
On
odbc.default_db
no value
no value
odbc.default_pw
no value
no value
odbc.default_user
no value
no value
odbc.defaultbinmode
return as is
return as is
odbc.defaultlrl
return up to 4096 bytes
return up to 4096 bytes
odbc.max_links
Unlimited
Unlimited
odbc.max_persistent
Unlimited
Unlimited
pcre
PCRE (Perl Compatible Regular Expressions) Support
enabled
PCRE Library Version
3.4 22-Aug-2000
session
Session Support
enabled
Directive
Local Value
Master Value
session.auto_start
Off
Off
session.cache_expire
180
180
session.cache_limiter
nocache
nocache
session.cookie_domain
no value
no value
session.cookie_lifetime
0
0
session.cookie_path
/
/
session.cookie_secure
Off
Off
session.entropy_file
no value
no value
session.entropy_length
0
0
session.gc_maxlifetime
1440
1440
session.gc_probability
1
1
session.name
PHPSESSID
PHPSESSID
session.referer_check
no value
no value
session.save_handler
files
files
session.save_path
c:\windows\temp
c:\windows\temp
session.serialize_handler
php
php
session.use_cookies
On
On
session.use_trans_sid
1
1
xml
XML Support
active
XML Namespace Support
active
EXPAT Version
1.95.2
wddx
WDDX Support
enabled
apache
Apache for Windows 95/NT
Apache Version
Apache/1.3.24
Apache Release
10324100
Apache API Version
19990320
Hostname:Port
localhost:80
Timeouts
Connection: 300 - Keep-Alive: 15
Directive
Local Value
Master Value
child_terminate
0
0
engine
1
1
last_modified
0
0
xbithack
0
0
Apache Environment
Variable
Value
COMSPEC
C:\WINDOWS\system32\cmd.exe
DOCUMENT_ROOT
c:/documents and settings/jose/my documents/__wwwserver HTTP_ACCEPT
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plai
n;q=0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,text/css,*/*;q=
0.1
HTTP_ACCEPT_CHARSET
ISO-8859-1, utf-8;q=0.66, *;q=0.66
HTTP_ACCEPT_ENCODING
gzip, deflate, compress;q=0.9
HTTP_ACCEPT_LANGUAGE
en-us, en;q=0.50
HTTP_CONNECTION
keep-alive
HTTP_HOST
localhost
HTTP_KEEP_ALIVE
300
HTTP_USER_AGENT
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.2a) Gecko/20020910
PATH
C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
Files\Support Tools\
REDIRECT_STATUS
200
REDIRECT_URL
/testing/phpinfo.php
REMOTE_ADDR
127.0.0.1
REMOTE_PORT
3981
SCRIPT_FILENAME
c:/documents and settings/jose/my
documents/__wwwserver/testing/phpinfo.php
SERVER_ADDR
127.0.0.1
SERVER_ADMIN
[EMAIL PROTECTED]
SERVER_NAME
localhost
SERVER_PORT
80
SERVER_SIGNATURE
<ADDRESS>Apache/1.3.26 Server at localhost Port 80</ADDRESS>
SERVER_SOFTWARE
Apache/1.3.26 (Win32) PHP/4.2.3 mod_gzip/1.3.19.1a SystemRoot C:\WINDOWS
WINDIR C:\WINDOWS GATEWAY_INTERFACE CGI/1.1 SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET QUERY_STRING
REQUEST_URI
/testing/phpinfo.php
SCRIPT_NAME
/testing/phpinfo.php
HTTP Headers Information
HTTP Request Headers
HTTP Request
GET /testing/phpinfo.php HTTP/1.1
Accept
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plai
n;q=0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,text/css,*/*;q=
0.1
Accept-Charset
ISO-8859-1, utf-8;q=0.66, *;q=0.66
Accept-Encoding
gzip, deflate, compress;q=0.9
Accept-Language
en-us, en;q=0.50
Connection
keep-alive
Host
localhost
Keep-Alive
300
User-Agent
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.2a) Gecko/20020910
HTTP
Response Headers X-Powered-By PHP/4.2.3 Keep-Alive timeout=15, max=100
Connection Keep-Alive Transfer-Encoding chunked Content-Type text/html
Additional Modules
Environment
Variable
Value
ALLUSERSPROFILE
C:\Documents and Settings\All Users
CommonProgramFiles
C:\Program Files\Common Files
COMPUTERNAME
YAL
ComSpec
C:\WINDOWS\system32\cmd.exe
NUMBER_OF_PROCESSORS
1
OS
Windows_NT
Path C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
Files\Support Tools\
PATHEXT
..COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE
x86
PROCESSOR_IDENTIFIER
x86 Family 6 Model 8 Stepping 3, GenuineIntel
PROCESSOR_LEVEL
6
PROCESSOR_REVISION
0803
ProgramFiles
C:\Program Files
SystemDrive
C:
SystemRoot
C:\WINDOWS
TEMP
C:\WINDOWS\TEMP
TMP
C:\WINDOWS\TEMP
USERPROFILE
C:\Documents and Settings\LocalService
windir
C:\WINDOWS
PHP Variables
Variable
Value
_SERVER["COMSPEC"]
C:\WINDOWS\system32\cmd.exe
_SERVER["DOCUMENT_ROOT"]
c:/documents and settings/jose/my documents/__wwwserver
_SERVER["HTTP_ACCEPT"]
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plai
n;q=0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,text/css,*/*;q=
0.1
_SERVER["HTTP_ACCEPT_CHARSET"]
ISO-8859-1, utf-8;q=0.66, *;q=0.66
_SERVER["HTTP_ACCEPT_ENCODING"]
gzip, deflate, compress;q=0.9
_SERVER["HTTP_ACCEPT_LANGUAGE"]
en-us, en;q=0.50
_SERVER["HTTP_CONNECTION"]
keep-alive
_SERVER["HTTP_HOST"]
localhost
_SERVER["HTTP_KEEP_ALIVE"]
300
_SERVER["HTTP_USER_AGENT"]
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.2a) Gecko/20020910
_SERVER["PATH"]
C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
Files\Support Tools\
_SERVER["REDIRECT_STATUS"]
200
_SERVER["REDIRECT_URL"]
/testing/phpinfo.php
_SERVER["REMOTE_ADDR"]
127.0.0.1
_SERVER["REMOTE_PORT"]
3981
_SERVER["SCRIPT_FILENAME"]
c:/documents and settings/jose/my
documents/__wwwserver/testing/phpinfo.php
_SERVER["SERVER_ADDR"]
127.0.0.1
_SERVER["SERVER_ADMIN"]
[EMAIL PROTECTED]
_SERVER["SERVER_NAME"]
localhost
_SERVER["SERVER_PORT"]
80
_SERVER["SERVER_SIGNATURE"]
<ADDRESS>Apache/1.3.26 Server at localhost Port 80</ADDRESS>
_SERVER["SERVER_SOFTWARE"]
Apache/1.3.26 (Win32) PHP/4.2.3 mod_gzip/1.3.19.1a
_SERVER["SystemRoot"]
C:\WINDOWS
_SERVER["WINDIR"]
C:\WINDOWS
_SERVER["GATEWAY_INTERFACE"]
CGI/1.1
_SERVER["SERVER_PROTOCOL"]
HTTP/1.1
_SERVER["REQUEST_METHOD"]
GET
_SERVER["QUERY_STRING"]
_SERVER["REQUEST_URI"]
/testing/phpinfo.php
_SERVER["SCRIPT_NAME"]
/testing/phpinfo.php
_SERVER["PATH_TRANSLATED"]
c:/documents and settings/jose/my
documents/__wwwserver/testing/phpinfo.php
_SERVER["PHP_SELF"]
/testing/phpinfo.php
PHP License
This program is free software; you can redistribute it and/or modify it
under the terms of the PHP License as published by the PHP Group and
included in the distribution in the file: LICENSE This program is
distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. If you did not receive a copy of the PHP license, or
have any questions about PHP licensing, please contact [EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
I'm trying to create a simple script that logs access to several pages
on a site I'm working on. I want to capture the date and time, address
of the PC accessing the page, and the name of the script being accessed.
I have the following code:
<?php
$today = date("F j, Y H:i:s");
$lineOut = $REMOTE_ADDR;
$lineOut .= " ";
$lineOut .= $today;
$lineOut .= " ";
$lineOut .= $SCRIPT_NAME;
$lineOut .= "\n";
$fp = fopen("logfile.txt","a");
fputs($fp,$lineOut);
fclose($fp);
?>
Everything works fine except for the line "lineOut .= $SCRIPT_NAME;"
The value of $SCRIPT_NAME is always the path to the PHP executable, not
the script that contains the code. How do I correct this problem. I'm
running PHP 4.06 under Apache 1.3.22 on a Win 2000 PC.
Thanks in advance,
Brad
--- End Message ---
--- Begin Message ---
I got it figured out. I needed $PHP_SELF instead.
Brad
Brad Harriger wrote:
> I'm trying to create a simple script that logs access to several pages
> on a site I'm working on. I want to capture the date and time, address
> of the PC accessing the page, and the name of the script being accessed.
> I have the following code:
>
> <?php
> $today = date("F j, Y H:i:s");
> $lineOut = $REMOTE_ADDR;
> $lineOut .= " ";
> $lineOut .= $today;
> $lineOut .= " ";
> $lineOut .= $SCRIPT_NAME;
> $lineOut .= "\n";
>
> $fp = fopen("logfile.txt","a");
> fputs($fp,$lineOut);
> fclose($fp);
> ?>
>
> Everything works fine except for the line "lineOut .= $SCRIPT_NAME;" The
> value of $SCRIPT_NAME is always the path to the PHP executable, not the
> script that contains the code. How do I correct this problem. I'm
> running PHP 4.06 under Apache 1.3.22 on a Win 2000 PC.
>
> Thanks in advance,
>
> Brad
>
--- End Message ---
--- Begin Message ---
Hello,
I have a question about a syntax I had not noticed until now and I
could not find an explanation for the inclusion of the character "@"
in from of function statment ...
What's the difference between these:
(1) @include("../lang/english/trad4all.inc.php");
(2) include("../lang/english/trad4all.inc.php");
What does the "@" indicate in fron of the "include" ? Anyone have any
clue?
God bless you with His grace and peace
Wolfgang
Looking for Biblical information? COME AND SEE!
-- ONLINE Courses: http://classes.bibelcenter.de ... NEW!
-- BibelCenter: http://www.bibelcenter.de
-- Bookstore: http://www.worthy.net/BibelCenter/
--- End Message ---
--- Begin Message ---
The '@' character suppresses error messages that might occur.
Jim
-------Original Message-------
From: Wolfgang Schneider
Date: Tuesday, September 24, 2002 02:04:06 PM
To: php-windows
Subject: [PHP-WIN] @include ...
Hello,
I have a question about a syntax I had not noticed until now and I
could not find an explanation for the inclusion of the character "@"
in from of function statment ...
What's the difference between these:
(1) @include("../lang/english/trad4all.inc.php");
(2) include("../lang/english/trad4all.inc.php");
What does the "@" indicate in fron of the "include" ? Anyone have any
clue?
God bless you with His grace and peace
Wolfgang
Looking for Biblical information? COME AND SEE!
-- ONLINE Courses: http://classes.bibelcenter.de ... NEW!
-- BibelCenter: http://www.bibelcenter.de
-- Bookstore: http://www.worthy.net/BibelCenter/
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
.
--- End Message ---
--- Begin Message ---
At 23:01 2002-09-24 +0200, Wolfgang Schneider wrote:
>Hello,
>
>I have a question about a syntax I had not noticed until now and I
>could not find an explanation for the inclusion of the character "@"
>in from of function statment ...
>
>What's the difference between these:
>(1) @include("../lang/english/trad4all.inc.php");
>(2) include("../lang/english/trad4all.inc.php");
>
>What does the "@" indicate in fron of the "include" ? Anyone have any
>clue?
>God bless you with His grace and peace
>Wolfgang
the at (@)-sign in front of a function surpresses error messages from it afaik.
so if you tried to include a missing include file, an @-sign in front of
your include would simply run silent even if it was unable to include the
specified file.
--- End Message ---
--- Begin Message ---
Hi,
I would like to retrieve some Winamp information from the server running my
PHP site. The objective is to show what song Winamp is currently playing
(title only) if Winamp is in use. I've tried using WinampCOM but the
problem is that even if Winamp is not active, when I load the PHP page, it
starts winamp. Here is the sample code I'm using:
$winamp = new COM("WinampCOM.Application") or die("Could not instanciate
WinampCOM object");
Moreover, I cannot get the $winamp->CurrentSongFileName() to work properly,
the function always fails.
Anyone know how to interact with Winamp 2 in PHP? (server side only)
Thanks,
Olivier
--- End Message ---
--- Begin Message ---
I'm /sure/ this won't help you much (especially right off the bat), but this
is how LiveJournal's client does the same thing.
http://www.livejournal.com/developer/winamp.txt
It looks like it just looks at the current task lisk, looks for winamp, then
grabs the title. Unfortunately, it looks like C code...
-Dash
-----Original Message-----
From: Olivier Hubert [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 24, 2002 5:12 PM
To: php-windows
Subject: [PHP-WIN] Getting winamp info
Hi,
I would like to retrieve some Winamp information from the server running my
PHP site. The objective is to show what song Winamp is currently playing
(title only) if Winamp is in use. I've tried using WinampCOM but the
problem is that even if Winamp is not active, when I load the PHP page, it
starts winamp. Here is the sample code I'm using:
$winamp = new COM("WinampCOM.Application") or die("Could not instanciate
WinampCOM object");
Moreover, I cannot get the $winamp->CurrentSongFileName() to work properly,
the function always fails.
Anyone know how to interact with Winamp 2 in PHP? (server side only)
Thanks,
Olivier
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---