php-windows Digest 15 Feb 2001 15:04:16 -0000 Issue 447
Topics (messages 5573 through 5579):
multi-language-support / date conversion in general
5573 by: Dirk.Dinger.dignos.com
PHP4 Session Management ... BIG TROUBLE
5574 by: Andreas Lange
5579 by: Yoann Chevalier
Problem with: exec(), system()
5575 by: Johan Huhtalo
5576 by: samipetri.maijanen.kaukomarkkinat.fi
5578 by: Johan Huhtalo
system commands on windows
5577 by: Microsoft News
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]
----------------------------------------------------------------------
Am I getting this right : People born before 1970 do not exist in PHP.
The general problem I see here is:
How can I store a date/time/currency in a language independant way, say some
WDDX or
general XML representation, and present these values "on the fly" in the
current client's
language specific way ?
I mean this a problem everybody has, who want's to build multi-language
dynamic web content.
The problem is, that according to the docs, I could use "localeconv()" to
determine current
currency symbols and separators and so forth - but IT IS NOT IMPLEMENTED
YET,
according to PDF-PHP-manual page 763.
Any suggestions ?
Dirk
hi all,
i need the following:
disabling the use of cookies for the php4-session-management
in the module-version this is no problem -> .htaccess file ;)
but i need it for the CGI-Version of PHP4
any suggestions?
CodeDuck
In the file php.ini, you have to set the variable "session.use_cookies" to
0.
It's work for me on W98 SE, Apache 1.3.14r2 and 1.3.17, PHP 4.0.4pl1
installed as a module or a CGI.
Yoan Chevalier
----- Original Message -----
From: "Andreas Lange" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 15, 2001 11:13 AM
Subject: [PHP-WIN] PHP4 Session Management ... BIG TROUBLE
> hi all,
>
> i need the following:
>
> disabling the use of cookies for the php4-session-management
>
> in the module-version this is no problem -> .htaccess file ;)
> but i need it for the CGI-Version of PHP4
>
> any suggestions?
>
> CodeDuck
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
I don´t know whats the problem with exex, system :(
first time i get: error message: Warning: Unable to fork
[C:\winnt\system32\cmd.exe dir C:\] in c:/program files/apache
group/apache/htdocs/relay/relay.php4 on line 28
when second time, it hangs, i dont get any response from the server.
i have to restart Apache to get the error msg again.
using: Apache 1.3.14 on WinNT 4.0
PHP Version 4.0.4pl1
code:
<?php
print("Hello world!<BR>\n");
$cmd = "C:\\winnt\\system32\\cmd.exe dir C:\\"; /* for test, want to
use c:\\test\\test.exe, but gets the same errors */
$hmm = system( $cmd );
?>
Thanks for help.
--
Regards
Johan
Try this: Needs the "K"-switch to work properly (on win2k anyway...)
<?php
print("Hello world!<BR>\n");
$cmd = "C:\\winnt\\system32\\cmd.exe /K \"dir C:\\\"";
/* for test, want to use c:\\test\\test.exe, but gets the same errors
*/
$hmm = system( $cmd );
?>
T. SJM
ps. I escaped the DIR C: => "DIR C:\" as well (\"DIR C:\\\"), even though
it works without.
Johan Huhtalo <[EMAIL PROTECTED]>
15.02.2001 12:12
Vastaanottaja: [EMAIL PROTECTED]
Kopio:
Aihe: [PHP-WIN] Problem with: exec(), system()
I don´t know whats the problem with exex, system :(
first time i get: error message: Warning: Unable to fork
[C:\winnt\system32\cmd.exe dir C:\] in c:/program files/apache
group/apache/htdocs/relay/relay.php4 on line 28
when second time, it hangs, i dont get any response from the server.
i have to restart Apache to get the error msg again.
using: Apache 1.3.14 on WinNT 4.0
PHP Version 4.0.4pl1
code:
<?php
print("Hello world!<BR>\n");
$cmd = "C:\\winnt\\system32\\cmd.exe dir C:\\"; /* for test, want to
use c:\\test\\test.exe, but gets the same errors */
$hmm = system( $cmd );
?>
Thanks for help.
--
Regards
Johan
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
Didn´t help :(
thanks anyway.
[EMAIL PROTECTED] wrote:
> Try this: Needs the "K"-switch to work properly (on win2k anyway...)
>
> <?php
> print("Hello world!<BR>\n");
> $cmd = "C:\\winnt\\system32\\cmd.exe /K \"dir C:\\\"";
> /* for test, want to use c:\\test\\test.exe, but gets the same errors
> */
> $hmm = system( $cmd );
> ?>
>
> T. SJM
>
> ps. I escaped the DIR C: => "DIR C:\" as well (\"DIR C:\\\"), even though
> it works without.
>
> Johan Huhtalo <[EMAIL PROTECTED]>
> 15.02.2001 12:12
>
>
> Vastaanottaja: [EMAIL PROTECTED]
> Kopio:
> Aihe: [PHP-WIN] Problem with: exec(), system()
>
> I don´t know whats the problem with exex, system :(
> first time i get: error message: Warning: Unable to fork
> [C:\winnt\system32\cmd.exe dir C:\] in c:/program files/apache
> group/apache/htdocs/relay/relay.php4 on line 28
>
> when second time, it hangs, i dont get any response from the server.
> i have to restart Apache to get the error msg again.
>
> using: Apache 1.3.14 on WinNT 4.0
> PHP Version 4.0.4pl1
>
> code:
>
> <?php
> print("Hello world!<BR>\n");
> $cmd = "C:\\winnt\\system32\\cmd.exe dir C:\\"; /* for test, want to
> use c:\\test\\test.exe, but gets the same errors */
> $hmm = system( $cmd );
> ?>
>
> Thanks for help.
>
> --
> Regards
>
> Johan
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
Regards
Johan
=========================================================
Johan Huhtalo E-mail: [EMAIL PROTECTED]
Software Engineer
Enea OSE Systems AB
Box 232
S-183 23 TABY Phone : +46-8-50-714-723
Sweden Fax: +46-8-50-714-040
GSM: +46-709-714-723
WWW: www.enea.se/ose
=========================================================
my php is 4.0 installed on NT 4.0 option pack 4.0 .
When I try to run a system command through a php script, it does not work.
Pl. suggest ?