php-windows Digest 2 Apr 2001 02:14:52 -0000 Issue 522

Topics (messages 6419 through 6431):

gettext with php as module on win32
        6419 by: Claude Philipona

Re: Time
        6420 by: Asendorf, John
        6422 by: Svensson, B.A.T.

Re: [PHP-GTK] RE: [PHP-WIN] Time
        6421 by: Joe Stump

MS is going to distribute Linux in September
        6423 by: Alain Samoun
        6425 by: John Meyer
        6426 by: Daniel Beulshausen
        6427 by: Asendorf, John
        6428 by: Daniel Beulshausen
        6429 by: Daniel Beulshausen
        6430 by: James Moore
        6431 by: Patrick

FDF and FDFtk on PHP 4.0.5RC1
        6424 by: Flint Doungchak

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]


----------------------------------------------------------------------


I'm using the php distribution of www.php4win.de (php4.0.5-rc1-win32-20010316)
which provides quite a lot of nice extensions like gettext.
It was very easy to implement gettext. All functions are working with either php
as module (apache) or cgi.  With the cgi version it is fully functionning, I can
switch the language from one page to the other.

However, with php as module, gettext keeps the language from the first page that
accessed a valid language. LC_TIME is working fine with both.

Example:
Let's see the pages test_fr.php and test_en.php (the only thing that change is
$language)

<?php
$language="fr";
putenv ("LANG=$language");
bindtextdomain ("testgettext", "./locale");
textdomain ("testgettext");
setlocale ("LC_TIME", $language);
print (gettext ("str_hello").",<br>");
print (strftime ("%A, %d %B %Y"))
?>

With php as cgi, everthing is fine
test_fr.php ->
Bonjour,
 dimanche, 01 avril 2001

test_en.php ->
Hello,
Sunday, 01 April 2001

With php as module:

page test_fr.php ->
Bonjour,
dimanche, 01 avril 2001

page test_en.php ->
Bonjour,             (it should be Hello)
Sunday, 01 April 2001 (this is ok)

actually all the pages will appear in french (except the date that is always in
the right language) until....

I restart Apache-php (module) and I call the pages in reverse order:
page test_en.php ->
Hello,
Sunday, 01 April 2001

page test_fr.php ->
Hello,           (it should be Bonjour)
dimanche, 01 avril 2001

Any idea about this problem? Is it due to the multi-threaded type of the module?
Is there a configuration that would prevent this behaviour? I  would prefer to
use php as module to use some of teh features only available on the module type.

Claude Philipona












I know this sounds silly, but you could use Windows Scheduler and set 24
instances, one for each hour, set for every day.  May sound like a drag, but
it would work.

---------------------
John Asendorf - [EMAIL PROTECTED]
Web Applications Developer
http://www.lcounty.com - NEW FEATURES ADDED DAILY!
Licking County, Ohio, USA
740-349-3631
Aut insanit homo, aut versus facit


> -----Original Message-----
> From: Josh Seward [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 30, 2001 10:22 PM
> To: [EMAIL PROTECTED]; php-gtk
> Subject: [PHP-WIN] Time 
> 
> 
> Hello, 
> 
> Is there a way to have php run a script at a certain time? 
> What I really need is something like cron on unix systems. I 
> would use windows scheduler but it only goes by days. I ned 
> to run this once every hour.
> 
> 
> P.S. To let everyone how helped me before. I can now send 
> commands to an outside program I am running w/ the fsockopen 
> command. This is after I open the prog. with popen. Thank you 
> all for your help., especially Steph and Micheal. Your 
> efffort and advice is much appriciated. If your ever in 
> Athens Ohio the first round is on me :-)
> 




If you are running NT, then use 'at'. It works in a similar
way as cron.

>-----Original Message-----
>From: Josh Seward [mailto:[EMAIL PROTECTED]]
>Sent: Saturday, March 31, 2001 5:22 AM
>To: [EMAIL PROTECTED]; php-gtk
>Subject: [PHP-WIN] Time 
>
>
>Hello, 
>
>Is there a way to have php run a script at a certain time? 
>What I really need is something like cron on unix systems. I 
>would use windows scheduler but it only goes by days. I ned to 
>run this once every hour.
>
>
>P.S. To let everyone how helped me before. I can now send 
>commands to an outside program I am running w/ the fsockopen 
>command. This is after I open the prog. with popen. Thank you 
>all for your help., especially Steph and Micheal. Your efffort 
>and advice is much appriciated. If your ever in Athens Ohio 
>the first round is on me :-)
>




0 * * * * php -q /path/to/file.php 

Oh shit - damn windows for not being POSIX!

--Joe

On Sun, Apr 01, 2001 at 01:27:35PM -0400, Asendorf, John wrote:
> I know this sounds silly, but you could use Windows Scheduler and set 24
> instances, one for each hour, set for every day.  May sound like a drag, but
> it would work.
> 
> ---------------------
> John Asendorf - [EMAIL PROTECTED]
> Web Applications Developer
> http://www.lcounty.com - NEW FEATURES ADDED DAILY!
> Licking County, Ohio, USA
> 740-349-3631
> Aut insanit homo, aut versus facit
> 
> 
> > -----Original Message-----
> > From: Josh Seward [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, March 30, 2001 10:22 PM
> > To: [EMAIL PROTECTED]; php-gtk
> > Subject: [PHP-WIN] Time 
> > 
> > 
> > Hello, 
> > 
> > Is there a way to have php run a script at a certain time? 
> > What I really need is something like cron on unix systems. I 
> > would use windows scheduler but it only goes by days. I ned 
> > to run this once every hour.
> > 
> > 
> > P.S. To let everyone how helped me before. I can now send 
> > commands to an outside program I am running w/ the fsockopen 
> > command. This is after I open the prog. with popen. Thank you 
> > all for your help., especially Steph and Micheal. Your 
> > efffort and advice is much appriciated. If your ever in 
> > Athens Ohio the first round is on me :-)
> > 
> 
> -- 
> PHP GTK 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]


/******************************************************************************\
 *                    Joe Stump - PHP/SQL/HTML Developer                      *
 * http://www.care2.com - http://www.miester.org - http://gtk.php-coder.net   *
 * "Better to double your money on mediocrity than lose it all on a dream."   * 
\******************************************************************************/




Well guys, party is over, we all are going to have to switch to Linux...
See:
http://www.mslinux.org/

alain




Did we really have to recycle this old joke for April Fools?

-----Original Message-----
From: Alain Samoun [mailto:[EMAIL PROTECTED]]
Sent: Sunday, April 01, 2001 11:53 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: [PHP-WIN] MS is going to distribute Linux in September


Well guys, party is over, we all are going to have to switch to Linux...
See:
http://www.mslinux.org/

alain

-- 
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]




At 11:53 01.04.2001 -0700, Alain Samoun wrote:
>Well guys, party is over, we all are going to have to switch to Linux...
>See:
>http://www.mslinux.org/

bad april fool :)
to see a better one look at phpinfo() :)

daniel

/*--
daniel beulshausen - [EMAIL PROTECTED]
using php on windows? http://www.php4win.de





Are those french fries?

---------------------
John Asendorf - [EMAIL PROTECTED]
Web Applications Developer
http://www.lcounty.com - NEW FEATURES ADDED DAILY!
Licking County, Ohio, USA
740-349-3631
Aut insanit homo, aut versus facit


> -----Original Message-----
> From: Daniel Beulshausen [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, April 01, 2001 4:22 PM
> To: Alain Samoun; [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP-WIN] MS is going to distribute Linux in September
> 
> 
> At 11:53 01.04.2001 -0700, Alain Samoun wrote:
> >Well guys, party is over, we all are going to have to switch 
> to Linux...
> >See:
> >http://www.mslinux.org/
> 
> bad april fool :)
> to see a better one look at phpinfo() :)
> 
> daniel
> 
> /*--
> daniel beulshausen - [EMAIL PROTECTED]
> using php on windows? http://www.php4win.de
> 
> 
> -- 
> 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]
> 




At 16:21 01.04.2001 -0400, Asendorf, John wrote:
>Are those french fries?

thies said that where bread sticks :)

daniel

/*--
daniel beulshausen - [EMAIL PROTECTED]
using php on windows? http://www.php4win.de





At 22:29 01.04.2001 +0200, Tomasz Abramowicz wrote:
>is this what they call "coders sense of humour"? :)

partially :) maybe a hobby too ;)

daniel

/*--
daniel beulshausen - [EMAIL PROTECTED]
using php on windows? http://www.php4win.de






> Are those french fries?
> 

Breadsticks

James




and I thought only M$ did stuff like that :o)


"Daniel Beulshausen" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> At 11:53 01.04.2001 -0700, Alain Samoun wrote:
> >Well guys, party is over, we all are going to have to switch to Linux...
> >See:
> >http://www.mslinux.org/
>
> bad april fool :)
> to see a better one look at phpinfo() :)
>
> daniel
>
> /*--
> daniel beulshausen - [EMAIL PROTECTED]
> using php on windows? http://www.php4win.de
>
>
> --
> 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]
>






Please enlighten me oh great list of users. You never let me down... :-)

I'm having this really strange and frustrating problem on a box with the
following:

IIS 4.0
NT SP6a
PHP 4.0.3 (in CGI mode)
php_mssql70.dll (SQL 7.0)
php_fdf.dll

Now. The box works fine with that spec. When I updrade to a newer version of
PHP, including 4.0.4pl1 or 4.0.5RC1, if I activate the php_fdf.dll module,
PHP never closes (i.e. a thread opens in task manager and just never closes
until it times out) even if I run phpinfo(). It's fine without the fdf
enabled. I have in new installations, replaced the FDFtk.dll which is placed
in the system32 directory (so that isn't it). Again, this problem doesn't
occur in 4.0.3.

I tried using the old (4.0.3) php_fdf.dll with 4.0.5, but it complained
about the difference in thread safe. I also have tried using the old tk with
the new release. No gumbo there either.

When I try using the fdf features without the FDFtk.dll installed in
system32, PHP says it can't find php_fdf.dll in my extentsions directory
(but at least it doens't crash).

Does the php_fdf.dll use any other libraries (besides the toolkit) that
could be conflicting with the newer versions of php?

Now the kicker, I have another box with: 

IIS 5.0
Win2k SP1
PHP 4.0.5 (in CGI mode)
php_mssql.dll (SQL 2000)
php_fdf.dll

No problem. The box works fine. Of course I did not have previous
installations of PHP on this box.

I'm totally frustrated now and don't know where to go from here. Could
someone give me some hints as to why this is occuring. I would really like
to use some of the great new session manangement feature available in 4.0.5.

Thanks in advance.

-Flint
_________________________________________________
Flint Doungchak, President
Net Solutions, LLC
840 Lawrence Street
Eugene, OR 97401
[EMAIL PROTECTED]
Voice +1 541 345-7087
Fax   +1 541 485-5519
http://www.netsolutionsllc.com

***************************************************************
The contents of this transmission may be confidential in 
nature and should be directed only to the person to whom it 
is addressed.  Do not read, copy, or disseminate this 
material unless you are the intended recipient.  If this 
transmission reached you in error, please forward the e-mail 
to the sender to advise, then destroy the transmission you 
received.  Thank you. 




Reply via email to