php-windows Digest 17 Sep 2002 22:55:28 -0000 Issue 1344

Topics (messages 15855 through 15867):

Not getting proper output
        15855 by: rinku
        15865 by: George Nicolae

Re: Exec () works for me in Apache, but not in IIS, Do I need execute
        15856 by: Kurtis Harper

Re: MSSQL Date Format Problem
        15857 by: Matt Kynaston

Re: Calling DLL from PHP
        15858 by: Pozzer Franco

MS Outlook [Public Folders]
        15859 by: Lukas Boldrino

in Win32 env: calling external pgm from PHP script
        15860 by: Pozzer Franco
        15863 by: David Hollister

Re: REGISTER_SHUTDOWN_FUNCTION() BUG -- Please Fix.
        15861 by: Brian 'Bex' Huff
        15864 by: Jason Caldwell

Re: error: loading extensions / php_xslt.dll on win32
        15862 by: Marco Siegl

error from PHP...any ideas?
        15866 by: Matt Babineau

SESSIONS- clustered environment
        15867 by: Matt Babineau

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 ---
When I am passing value from one form to another - the another form
doesn't return perfect value.
Please tell me the correct method of passing value.

--- End Message ---
--- Begin Message ---
give us some code and some examples.

--


Best regards,
George Nicolae
IT Manager
___________________
PaginiWeb.com  - Professional Web Design
www.PaginiWeb.com


"Rinku" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> When I am passing value from one form to another - the another form
> doesn't return perfect value.
> Please tell me the correct method of passing value.
>


--- End Message ---
--- Begin Message ---
Sorry Tracker,
I must be missing something I am still unable to execute the convert
command.

I am out of ideas :o(

"Tracker1" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Kurtis Harper wrote:
> > Thanks but how do I add the IUSER_MACHINENAME and change the
permissions, In
> > webserver properties in IIS, the securty has IUSER_MACHINENAME  but I do
not
> > see where I give the permissions to the file.  Where do I assign these
> > permissions.
> >
> > BTW I am running XP pro
> >
> > Thanks again for any help you can give me.
>
> right click on the file, properties..security tab.. and add
> IUSER_MACHINENAME.. if it isn't there, check the allow box for execute.
>
> fyi, MACHINENAME is the name of the machine that iis is running on..
>
> --
> -----------------------------------------------------------------------
>   Michael J. Ryan                          |      ICQ: 4935386
>       tracker1(at)theroughnecks(dot)net    |  AIM/AOL: azTracker1
>   Roughneck BBS:                           |    Yahoo: azTracker1
>       http://www.theroughnecks.net         |      MSN: (email address)
>       telnet://theroughnecks.net           | Trillian: www.trillian.cc
> --- Synchronet 3.10j-Win32 NewsLink 1.30
>  *  Roughneck BBS - www.theroughnecks.net - telnet://theroughnecks.net


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.386 / Virus Database: 218 - Release Date: 9/9/2002


--- End Message ---
--- Begin Message ---
PHP is supposed to output the date according to the locale settings of the
server - see setlocale() function to force the issue. But dates are always a
pain - strtotime() and strftime() are your friends.

> Incidentally, inserting a value into the databases on both
> machines works
> presenting the date as "14/9/2002", it is just when returning
> a recordset to
> PHP via the select statement that the difference occurs.

Yikes! And what happens with "02/01/2002"? Remember: a yank build that DB.
If it can, it probably will put months before days. _Always_ convert to
YYYYMMDD before inserting, otherwise terrible things start happening on
November the nineth.

Matt
--- End Message ---
--- Begin Message ---


Brian hanks for all and sorry if I trouble you again.

I ask a litle help if you wnat and if you have time for me.

thanks for this and sorry again for the trouble.

I want use a external pgm (.exe file) from my script PHP.

My env it it Win32 NT Apache 1.3.24 and PHP 4.2.1.

I have find same sample but ONLY in the Linux or Unix system. Not in
Win32.

I have try to execute same sample in my env but It do not work.

I ask you if you have same code and same sample for me.

Have  you same idea how to do.

thanks for all. Ciao franco.

--- End Message ---
--- Begin Message ---
Hey guys!

I hava a question. Is there a posibillity to get acces to MS outlook Public
Folders? (listing them, adding a post, reading posts) ?


thanks !



--- End Message ---
--- Begin Message ---
I always have found aid on this NG and want to write tanks to all of this.

I hope that also in this occasion to find an aid and of the indications for
my problem.

My env it is Win32 with Aoache 1.3.24 and PHP 4.2.1.

I have a pgn .exe files that I want to execute from script PHP and I want to
post it same parameters like par1, par2..... and so on.

I like also to receive from pgm a feedback or return code for to test a
result of the esecution.

I have make  a script such like below but it not work:

 <?
  $cmd=('D:\\winnt\\system32\\write.exe');
 echo"<br>cmd=$cmd<br>";
 exec($cmd);
?>

My system root it is : D:\winnt\system32\.......

My document root it is D:program files\apache group\apache\htdocs.

The url of the browser when I call the script it is:
http://localhost/exec/zip.php

If  there sameone have same sample code to send to me or same indication how
to resolve it??????????????

Ciao Franco.
www.infocamere.it
[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
You should try:

Yo - try this 

<?
exec('cmd /c "write.exe" '); 
?>

-----Original Message-----
From: Pozzer Franco [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 17, 2002 4:51 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] in Win32 env: calling external pgm from PHP script

I always have found aid on this NG and want to write tanks to all of this.

I hope that also in this occasion to find an aid and of the indications for
my problem.

My env it is Win32 with Aoache 1.3.24 and PHP 4.2.1.

I have a pgn .exe files that I want to execute from script PHP and I want to
post it same parameters like par1, par2..... and so on.

I like also to receive from pgm a feedback or return code for to test a
result of the esecution.

I have make  a script such like below but it not work:

 <?
  $cmd=('D:\\winnt\\system32\\write.exe');
 echo"<br>cmd=$cmd<br>";
 exec($cmd);
?>

My system root it is : D:\winnt\system32\.......

My document root it is D:program files\apache group\apache\htdocs.

The url of the browser when I call the script it is:
http://localhost/exec/zip.php

If  there sameone have same sample code to send to me or same indication how
to resolve it??????????????

Ciao Franco.
www.infocamere.it
[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---

Are you sure its a bug?  If you check the documentation on 
"register_shutdown_function", you'll see that it occurs AFTER the data 
in the output buffer has been sent to the user.  Therefore, functions 
like "echo" and "print" are not supposed to work:

http://www.php.net/manual/en/function.register-shutdown-function.php

Wierd that it works when you do "exit"...

To test whether or not its actually broken, you may need to open a file 
for writing, and print some data to the file... or the error logs, or 
something else.

-- 

Brian 'Bex' Huff
[EMAIL PROTECTED]
Phone: 952-903-2023
Fax: 952-829-5424

> I'm posting this here to give this BUG attention.  It's a pretty serious one
> for Win32 users, and it would be great if it could be fixed *very
> quickly* -- I posted this in the Bug Reports on PHP.net on May 27th, 2002.
> 
> Here's the link: http://bugs.php.net/bug.php?id=17461
> 
> I need to use this function to perform certain *required* tasks on a
> Timeout -- however (and please read the Bug Report, before replying) the
> Timeout functionality of this function DOES NOT work on Win32 builds.
> 
> If your a C/C++ / PHP contributor and have a moment to look into this -- it
> would be great -- I would love to see this fixed in release 4.2.4 !!!
> 
> Thanks
> Jason
> 
> 


--- End Message ---
--- Begin Message ---
It's a bug.  spoke to Rasmus at some length about just before i posted it in
the bug report.

The online help page is inaccurate in describing the full functionality of
the function:
http://www.php.net/manual/en/function.register-shutdown-function.php

REGISTER_SHUTDOWN_FUNCTION() is suppose to kick-off when any one of the
following things happen -- Exit, Error, TIMEOUT or User Abort.

According to Rasmus, the TIMEOUT functionality of this function works fine
under Linux -- however, it's not working under Win32 !

There apparently is another bug with this function -- you are suppose to be
able to call more than one REGISTER_SHUTDOWN_FUNCTION(), and they are
suppose to executed in-order... some people are reporting that only the
first encountered REGISTER_SHUTDOWN_FUNCTION() is executed, then the script
exits.

Someone needs to go through this function, pretty thoroughly, and get it
working correctly.  Being able to run code on a timeout, user-abort or error
is critical.

Jason


"Jason Caldwell" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I'm posting this here to give this BUG attention.  It's a pretty serious
one
> for Win32 users, and it would be great if it could be fixed *very
> quickly* -- I posted this in the Bug Reports on PHP.net on May 27th, 2002.
>
> Here's the link: http://bugs.php.net/bug.php?id=17461
>
> I need to use this function to perform certain *required* tasks on a
> Timeout -- however (and please read the Bug Report, before replying) the
> Timeout functionality of this function DOES NOT work on Win32 builds.
>
> If your a C/C++ / PHP contributor and have a moment to look into this --
it
> would be great -- I would love to see this fixed in release 4.2.4 !!!
>
> Thanks
> Jason
>
>


--- End Message ---
--- Begin Message ---
hi horst,
i think your're problem is that you'll need to get the new libexpat.dll
provided from james clark.

visit http://sourceforge.net/projects/expat/ to get the latest expat v1.95.5
(which includes the new libexpat.dll - the older version was called:
"expat.dll", provided with expat v1.95.2)

you probably have a newer php4ts.dll / php_xslt.dll (came up with new php
4.2.3) on your machine telling dependancy checker to call for libexpat.dll,
so don't worry.

good luck!

additionaly, i didn't found an official installation procedure yet, because
i think, the php.net core team supports php on linux with more power, than
php on win32 systems. due to this, the documentation process for php on
linux is always two steps ahead.


greetzalot,
- marco

<mail>[EMAIL PROTECTED]</mail>
<url>http://www.remslakecity.de</url>

----- Original Message -----
From: "HL" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 17, 2002 2:12 PM
Subject: Re: error: loading extensions / php_xslt.dll on win32


> I get this 'module not found'-errors all the time and could not find a
> solution up to now.
> i tried everything this group recommends, but the problem gets weirder and
> weirder.
> I even tried DependencyMaker and it says a libexpat.dll is missing. This
dll
> is not included to the php-4.2.3-distribution. (somebody suggested
expat.dll
> will do - NOT on my machine)
>
> > i found a rersolution to the php_xslt.dll extension installting problem
>
> you're lucky!
>
> > in your php.ini, you have to write: extension_dir = c:/php/extensions
>
> would be d:/php/extensions on my machine. does NOT solve the problem.
>
> > copy the 4 following .dll's to your windows/system32 directory
> > - php/php4ts.dll
> > - php/extensions/php_xslt.dll
> > - php/dlls/expat.dll
> > - php/dlls/sablot.dll
>
> all done. does NOT solve the problem.
>
> I am using IIS 5 on WIN2000/SP3 . But this is definitely not a
> server-related problem i think.
> To me it seems very much as a bug in the php-module-implementation or in
the
> php_xslt.dll itself.
>
> Btw: is there somehing like an official installation procedure?
>
> any help would be very appreciated.
> [EMAIL PROTECTED]
>
>
>
>
>

--- End Message ---
--- Begin Message ---
IIS 5, Win2K, Running as ISAPI, HTTPS, PHP 4.2
 
PHP has encountered an Access Violation at 01152A55
 
Any ideas how to deal with this? I got this on my development server.
Should I just use PHP as a CGI instead of ISAPI?
 
 
 
Matt Babineau
MCWD / CCFD
-----------------------------------------
e:  <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]
p: 603.943.4237
w:  <http://www.criticalcode.com/> http://www.criticalcode.com
PO BOX 601
Manchester, NH 03105
 
--- End Message ---
--- Begin Message ---
What would be the best way to handle sessions in a clustered environment
without making the load-balancing persistant?
 
Matt Babineau
MCWD / CCFD
-----------------------------------------
e:  <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]
p: 603.943.4237
w:  <http://www.criticalcode.com/> http://www.criticalcode.com
PO BOX 601
Manchester, NH 03105
 
--- End Message ---

Reply via email to