php-windows Digest 1 Oct 2003 16:21:49 -0000 Issue 1935
Topics (messages 21632 through 21640):
TimeZone and DST on windows...
21632 by: jsWalter
Re: Can't start php under Apache after Load Module php4apache.dll
21633 by: manon
XML->HTML using XSLT
21634 by: Thijs Koerselman
Microsoft Windows 2000 [Version 5.00.2195]
21635 by: Morten Gulbrandsen
21637 by: Wolfgang Schneider
Re: Can start php under Apache after Load Module php4apache.dll
21636 by: Morten Gulbrandsen
21638 by: Mike Quinn
21639 by: Mike Quinn
File contents type
21640 by: Pavel Szalbot
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 ---
How can I query the windows system for the Time Zone that particular machine
is sitting on?
Also, I would like to know if Daylight Savings Time is in effect on that
machine as well.
Can any one help?
Thanks
Walter
BTW: I've looked at PEAR:Date:TimeZone::getDefault()
It thinks I'm in Bangladesh, not America/Central like my Windows time
dialog says I am.
--- End Message ---
--- Begin Message ---
Try this: put a copy of the php4ts.dll in your php\sapi folder
-----Oorspronkelijk bericht-----
Van: Morten Gulbrandsen [mailto:[EMAIL PROTECTED]
Verzonden: dinsdag 30 september 2003 18:04
Aan: [EMAIL PROTECTED]
Onderwerp: Can't start php under Apache after Load Module php4apache.dll
Hello Programmers
I try to run a service.
Apache 1.28 (win32) under win2000
And gets this error:
Microsoft Management Console
Der Dienst "Apache" auf "Lokalen Computer"
konnte nicht gestartet werden.
Der Dienst hat keinen Fehler zurückgegeben.
Es kann sich um einen internen Windows-Fehler oder
einen internen Dienstfehler handeln.
Setzen Sie sich mit Ihrem Systemadministrator in Verbindung, falls das
Problem weiterhin besteht.
C:\>NET START APACHE
Apache wird gestartet.
Apache konnte nicht gestartet werden.
Der Dienst hat keinen Fehler gemeldet.
>From my edited httpd.conf file:
LoadModule php4_module "c:\temp\php-4.3.3-Win32\sapi\php4apache.dll"
AddModule mod_php4.c
AddType application/x-httpd-php .php
However Apache did start and run smoothly before I attempted to append
the directives in httpd.conf.
How can I run
php version 4.3.3
Apache version 1.3.28
MySQL server version: 4.1.0-alpha-max-debug
successfully under
Microsoft Windows 2000 [Version 5.00.2195]
Please ?
Yours Sincerely
Morten Gulbrandsen
--- End Message ---
--- Begin Message ---
Thanks - especially Ken - for all the help. My aim was to make the use of
my XML browser independent, so I tried to work with the XSLT extension but
without much succes. I used this code from the manual and changed the filenames,
but I get validation errors or nothing at all. I know the XML is working
without PHP so I don't get it. Anyone?
<?
// Allocate a new XSLT processor
$xh = xslt_create();
// Process the document
xslt_process($xh, "webdev.xml", "menus.xsl", "result.xml")
print "<pre>\n";
readfile("result.xml");
print "</pre>\n";
xslt_free($xh);
?>
--- End Message ---
--- Begin Message ---
Please tell me,
is
php version 4.3.3
Apache version 1.3.28
MySQL server version: 4.1.0-alpha-max-debug
Suitable for
Microsoft Windows 2000 [Version 5.00.2195]
Yours Sincerely
Morten Gulbrandsen
--- End Message ---
--- Begin Message ---
On Wed, 1 Oct 2003 11:10:31 +0200, Morten Gulbrandsen wrote:
Hi Morten
>php version 4.3.3
>Apache version 1.3.28
>MySQL server version: 4.1.0-alpha-max-debug
>
>Suitable for
>Microsoft Windows 2000 [Version 5.00.2195]
I have this setup now running on my Win2K notebook ... and so far
there were no problems after setting up the appropriate configuration
files, especially for php and apache ...
God bless you with His grace and peace
Wolfgang
Looking for Biblical information? COME AND SEE!
Biblical studies ... www.bibelcenter.de
Christian Bookstore www.christianbook.com/Christian/Books/home?event=AFF&p=1009812
--- End Message ---
--- Begin Message ---
Thanks,
I did, and now I can restart Apache.
Here is my simplest PHP script.
<?php echo $_SERVER["REMOTE_ADDR"]; ?>
And the output is
127.0.0.1
Can't ask for more than that!
I hacked a small script in order to connect to MySQL,
containing these lines.
<html>
<head>
<title>a simple example</title>
</head>
<body bgcolor="white">
<p>Welcome to the very first MySQL database.</p>
<?php
# USHL home page
$conn_id = @mysql_connect ("localhost", "sampadm", "secret")
or exit ();
mysql_select_db ("sampdb")
or exit ();
$result_id = mysql_query ("SELECT COUNT(*) FROM member")
or exit ();
if ($row = mysql_fetch_row ($result_id))
print ("<p>The League currently has " . $row[0] . " members.</p>");
mysql_free_result ($result_id);
?>
</body>
</html>
Unfortunately I did not get anything else than the HTML paragraph.
However, if I run this query from the command prompt,
C:\mysql\bin>mysql -h localhost -u sampadm -psecret sampdb
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 408 to server version: 4.1.0-alpha-max-debug
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> select count(*) from member;
+----------+
| count(*) |
+----------+
| 102 |
+----------+
1 row in set (0.05 sec)
mysql>
I Do get a result, but not from php + apache, only from the command prompt.
So it seems to me that PHP and Apache is living well under Windows,
but I can't get the MySQL database to communicate with them.
What can I do, please?
Is this the right place for MySQL + php questions?
Yours sincerely
Morten Gulbrandsen
"Manon" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED]
Try this: put a copy of the php4ts.dll in your php\sapi folder
-----Oorspronkelijk bericht-----
Van: Morten Gulbrandsen [mailto:[EMAIL PROTECTED]
Verzonden: dinsdag 30 september 2003 18:04
Aan: [EMAIL PROTECTED]
Onderwerp: Can't start php under Apache after Load Module php4apache.dll
Hello Programmers
I try to run a service.
Apache 1.28 (win32) under win2000
And gets this error:
Microsoft Management Console
Der Dienst "Apache" auf "Lokalen Computer"
konnte nicht gestartet werden.
Der Dienst hat keinen Fehler zurückgegeben.
Es kann sich um einen internen Windows-Fehler oder
einen internen Dienstfehler handeln.
Setzen Sie sich mit Ihrem Systemadministrator in Verbindung, falls das
Problem weiterhin besteht.
C:\>NET START APACHE
Apache wird gestartet.
Apache konnte nicht gestartet werden.
Der Dienst hat keinen Fehler gemeldet.
>From my edited httpd.conf file:
LoadModule php4_module "c:\temp\php-4.3.3-Win32\sapi\php4apache.dll"
AddModule mod_php4.c
AddType application/x-httpd-php .php
However Apache did start and run smoothly before I attempted to append
the directives in httpd.conf.
How can I run
php version 4.3.3
Apache version 1.3.28
MySQL server version: 4.1.0-alpha-max-debug
successfully under
Microsoft Windows 2000 [Version 5.00.2195]
Please ?
Yours Sincerely
Morten Gulbrandsen
--- End Message ---
--- Begin Message ---
Hi Morton,
Remove or exit(); on the mysql_select_db("sampdb"); and that should work for
you!
Regards,
Michael Quinn
"Morten Gulbrandsen" <[EMAIL PROTECTED]> escribió en el mensaje
news:[EMAIL PROTECTED]
Thanks,
I did, and now I can restart Apache.
Here is my simplest PHP script.
<?php echo $_SERVER["REMOTE_ADDR"]; ?>
And the output is
127.0.0.1
Can't ask for more than that!
I hacked a small script in order to connect to MySQL,
containing these lines.
<html>
<head>
<title>a simple example</title>
</head>
<body bgcolor="white">
<p>Welcome to the very first MySQL database.</p>
<?php
# USHL home page
$conn_id = @mysql_connect ("localhost", "sampadm", "secret")
or exit ();
mysql_select_db ("sampdb")
or exit ();
$result_id = mysql_query ("SELECT COUNT(*) FROM member")
or exit ();
if ($row = mysql_fetch_row ($result_id))
print ("<p>The League currently has " . $row[0] . " members.</p>");
mysql_free_result ($result_id);
?>
</body>
</html>
Unfortunately I did not get anything else than the HTML paragraph.
However, if I run this query from the command prompt,
C:\mysql\bin>mysql -h localhost -u sampadm -psecret sampdb
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 408 to server version: 4.1.0-alpha-max-debug
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> select count(*) from member;
+----------+
| count(*) |
+----------+
| 102 |
+----------+
1 row in set (0.05 sec)
mysql>
I Do get a result, but not from php + apache, only from the command prompt.
So it seems to me that PHP and Apache is living well under Windows,
but I can't get the MySQL database to communicate with them.
What can I do, please?
Is this the right place for MySQL + php questions?
Yours sincerely
Morten Gulbrandsen
"Manon" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
Try this: put a copy of the php4ts.dll in your php\sapi folder
-----Oorspronkelijk bericht-----
Van: Morten Gulbrandsen [mailto:[EMAIL PROTECTED]
Verzonden: dinsdag 30 september 2003 18:04
Aan: [EMAIL PROTECTED]
Onderwerp: Can't start php under Apache after Load Module php4apache.dll
Hello Programmers
I try to run a service.
Apache 1.28 (win32) under win2000
And gets this error:
Microsoft Management Console
Der Dienst "Apache" auf "Lokalen Computer"
konnte nicht gestartet werden.
Der Dienst hat keinen Fehler zurückgegeben.
Es kann sich um einen internen Windows-Fehler oder
einen internen Dienstfehler handeln.
Setzen Sie sich mit Ihrem Systemadministrator in Verbindung, falls das
Problem weiterhin besteht.
C:\>NET START APACHE
Apache wird gestartet.
Apache konnte nicht gestartet werden.
Der Dienst hat keinen Fehler gemeldet.
>From my edited httpd.conf file:
LoadModule php4_module "c:\temp\php-4.3.3-Win32\sapi\php4apache.dll"
AddModule mod_php4.c
AddType application/x-httpd-php .php
However Apache did start and run smoothly before I attempted to append
the directives in httpd.conf.
How can I run
php version 4.3.3
Apache version 1.3.28
MySQL server version: 4.1.0-alpha-max-debug
successfully under
Microsoft Windows 2000 [Version 5.00.2195]
Please ?
Yours Sincerely
Morten Gulbrandsen
--- End Message ---
--- Begin Message ---
Sorry I didn't mean work literally, but it should return the error you are
looking for to describe what's up. Likewise with the other lines remove the
or exit(); in case you have a typo.
"Mike Quinn" <[EMAIL PROTECTED]> escribió en el mensaje
news:[EMAIL PROTECTED]
> Hi Morton,
>
> Remove or exit(); on the mysql_select_db("sampdb"); and that should work
for
> you!
>
> Regards,
>
> Michael Quinn
>
> "Morten Gulbrandsen" <[EMAIL PROTECTED]> escribió en el mensaje
> news:[EMAIL PROTECTED]
> Thanks,
>
>
>
> I did, and now I can restart Apache.
>
> Here is my simplest PHP script.
>
>
>
> <?php echo $_SERVER["REMOTE_ADDR"]; ?>
>
>
>
> And the output is
>
>
>
> 127.0.0.1
>
>
>
> Can't ask for more than that!
>
>
>
> I hacked a small script in order to connect to MySQL,
>
> containing these lines.
>
>
>
> <html>
> <head>
> <title>a simple example</title>
> </head>
> <body bgcolor="white">
> <p>Welcome to the very first MySQL database.</p>
> <?php
> # USHL home page
> $conn_id = @mysql_connect ("localhost", "sampadm", "secret")
> or exit ();
> mysql_select_db ("sampdb")
> or exit ();
> $result_id = mysql_query ("SELECT COUNT(*) FROM member")
> or exit ();
> if ($row = mysql_fetch_row ($result_id))
> print ("<p>The League currently has " . $row[0] . " members.</p>");
> mysql_free_result ($result_id);
> ?>
> </body>
> </html>
>
>
>
>
>
>
>
>
>
> Unfortunately I did not get anything else than the HTML paragraph.
>
>
>
> However, if I run this query from the command prompt,
>
>
>
>
> C:\mysql\bin>mysql -h localhost -u sampadm -psecret sampdb
> Welcome to the MySQL monitor. Commands end with ; or \g.
> Your MySQL connection id is 408 to server version: 4.1.0-alpha-max-debug
>
>
>
> Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
>
>
>
> mysql> select count(*) from member;
> +----------+
> | count(*) |
> +----------+
> | 102 |
> +----------+
> 1 row in set (0.05 sec)
>
>
>
> mysql>
>
> I Do get a result, but not from php + apache, only from the command
prompt.
>
>
>
> So it seems to me that PHP and Apache is living well under Windows,
>
> but I can't get the MySQL database to communicate with them.
>
>
>
> What can I do, please?
>
> Is this the right place for MySQL + php questions?
>
>
>
> Yours sincerely
>
>
>
> Morten Gulbrandsen
>
>
>
> "Manon" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
> news:[EMAIL PROTECTED]
> Try this: put a copy of the php4ts.dll in your php\sapi folder
>
> -----Oorspronkelijk bericht-----
> Van: Morten Gulbrandsen [mailto:[EMAIL PROTECTED]
> Verzonden: dinsdag 30 september 2003 18:04
> Aan: [EMAIL PROTECTED]
> Onderwerp: Can't start php under Apache after Load Module php4apache.dll
>
>
> Hello Programmers
>
> I try to run a service.
>
> Apache 1.28 (win32) under win2000
>
> And gets this error:
>
> Microsoft Management Console
> Der Dienst "Apache" auf "Lokalen Computer"
> konnte nicht gestartet werden.
> Der Dienst hat keinen Fehler zurückgegeben.
>
> Es kann sich um einen internen Windows-Fehler oder
> einen internen Dienstfehler handeln.
>
> Setzen Sie sich mit Ihrem Systemadministrator in Verbindung, falls das
> Problem weiterhin besteht.
>
>
>
> C:\>NET START APACHE
> Apache wird gestartet.
> Apache konnte nicht gestartet werden.
>
> Der Dienst hat keinen Fehler gemeldet.
>
> >From my edited httpd.conf file:
>
> LoadModule php4_module "c:\temp\php-4.3.3-Win32\sapi\php4apache.dll"
> AddModule mod_php4.c
> AddType application/x-httpd-php .php
>
> However Apache did start and run smoothly before I attempted to append
> the directives in httpd.conf.
>
> How can I run
> php version 4.3.3
> Apache version 1.3.28
> MySQL server version: 4.1.0-alpha-max-debug
>
> successfully under
> Microsoft Windows 2000 [Version 5.00.2195]
>
> Please ?
>
> Yours Sincerely
>
> Morten Gulbrandsen
--- End Message ---
--- Begin Message ---
Hi,
how could I determine file type? (not according to extension..)
Thanks
--- End Message ---