php-windows Digest 29 Sep 2001 01:27:47 -0000 Issue 779
Topics (messages 9597 through 9613):
session
9597 by: Sichta Daniel
9609 by: GF
Re: IIS & PHP Session
9598 by: Phil Driscoll
What's with this ODBC Error?!?!?!?
9599 by: Asendorf, John
Re: Using COM
9600 by: Crawley
9601 by: Alain Samoun
9613 by: David Broker
Re: Questions about versions of PHP and Apache
9602 by: Alain Samoun
4.0.8-dev filesize function broken now?
9603 by: Asendorf, John
9607 by: Frank M. Kromann
Re: Well, I've got it running
9604 by: Daniel Beulshausen
9605 by: Asendorf, John
9606 by: Daniel Beulshausen
LOCAL TIME
9608 by: Afan Pasalic
9610 by: Alain Samoun
Compiling problems.
9611 by: A.J. Ostman
IIS5 Erro-Doc
9612 by: Dennis Körner
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 ---
Hi,
cfg: Apache 1.3.20, php406 w2k
Is there any "nice" way to do session_end when user close internet browser ?
Dan
--- End Message ---
--- Begin Message ---
You could have an onUnload event in javascript trigger a call to a php
script to do a session_end.
Gaylen
http://www.gaylenandmargie.com
KISGB - PHP Guestbook http://www.gaylenandmargie.com/publicscripts/
"Sichta Daniel" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
> cfg: Apache 1.3.20, php406 w2k
> Is there any "nice" way to do session_end when user close internet browser
?
>
> Dan
>
--- End Message ---
--- Begin Message ---
Change your session save path in php.ini to somewhere that exists on an NT
box - e.g. c:\temp (or create your own php session temp directory)
Cheers
--
Phil Driscoll
--- End Message ---
--- Begin Message ---
I'm getting this error now in TWO different places...
ODBC The description for Event ID ( 0 ) in Source ( ODBC ) could not be
found. It contains the following insertion string(s): Error in
d:\mdac25\odbc\core\dm\perf.c(296), The system cannot find the file
specified. : Failed to query
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ODBC\Performance\First
Counter. Perflib The Open Procedure for service "ODBC" in DLL "ODBC32.DLL"
failed. Performance data for this service will not be available. Status code
returned is DWORD 0.
I know this is an English posting mail list... but this is the error I get.
If anyone speaks the language this error message is written in, could you
decipher it for me? The only thing I seem to be able to find on it is that
Perf.c is a freeware performance counter... does anyone know where/how it
is affecting my scripts?
---------------------
John Asendorf - [EMAIL PROTECTED]
Web Applications Developer
http://www.lcounty.com - NEW FEATURES ADDED DAILY!
Licking County, Ohio, USA
740-349-3631
Nullum magnum ingenium sine mixtura dementiae fuit
--- End Message ---
--- Begin Message ---
"David Broker" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Thanks Rich,
> However to access this IIS thing you need to do something like this:
>
> $iis = COM("IIS://localhost/w3scv");
>
> Which is apparently only supported in 4.0.7.
Hum, now Im not shure what your component is...
The value between the quotes is a string that is looked-up in the registry
under HKEY_CLASSES_ROOT ), if its on a diffrent machine then you might want
to try using the second arg to COM, which is a server name.
If the 'interface' is accessed through a web server then I dont know how to
use it as I've never seen anything about it... have you got a link to info
about this component ? I'd be interested in finding out more... I might
even be able to help.
sorry I cant help more
Rich
--- End Message ---
--- Begin Message ---
I must be missing something here,
>$iis = COM("IIS://localhost/w3scv");
>Which is apparently only supported in 4.0.7.>
What does this COM function do David?
Alain
On Fri, Sep 28, 2001 at 02:58:49AM +0000, David Broker wrote:
> In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
>(Crawley) wrote:
> >"David" <[EMAIL PROTECTED]> wrote in message
> >[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> >> $adsi = new COM(server.object)
> >
> >All you need is ...
> >
> >$adsi = new COM( "comobjectname" );
> >$adsi->objectmethod();
> >
> >try that, the only problem you might have is passing variables by
> >reference... to do that you can ONLY ( at present ) pass by refrence
> >variables of type VARIANT *. So check your interface.
> >
> >You also might have trouble passing arrays - but when 4.0.7 comes out that
> >should be fixed.
> >
> >Rich
> >
> >
>
> Thanks Rich,
> However to access this IIS thing you need to do something like this:
>
> $iis = COM("IIS://localhost/w3scv");
>
> Which is apparently only supported in 4.0.7.
>
> Thanks,
> David
>
> --
> 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]
--- End Message ---
--- Begin Message ---
>> $iis = COM("IIS://localhost/w3scv");
>Hum, now Im not shure what your component is...
>
>The value between the quotes is a string that is looked-up in the registry
> under HKEY_CLASSES_ROOT ), if its on a diffrent machine then you might want
>to try using the second arg to COM, which is a server name.
>
>If the 'interface' is accessed through a web server then I dont know how to
>use it as I've never seen anything about it... have you got a link to info
>about this component ? I'd be interested in finding out more... I might
>even be able to help.
>
>sorry I cant help more
>
>Rich
Rich,
Microsoft claims (in the IIS help) that this is an object which you can access
with any language which supports COM.
In the VBscript found on any Win2K server it is called like this:
varname = GetObject("IIS://localhost/w3scv")
So I'm assuming that IIS://localhost/w3scv is an object.
My problem was that I could not access that object, as that format (the
"IIS://")is not supported in the non-dev releases.
I will (probably) be running it on a local machine so I shouldn't have a
problem there.
Regards,
David
--- End Message ---
--- Begin Message ---
PHP4.05 was a 'bummer' for win, upgrade to 4.06 fast...
Alain
On Fri, Sep 28, 2001 at 11:44:27AM +0200, Martin Lindhe wrote:
> > Does anyone know the minimum version of Apache that PHP-4.0.5
> > can work with?
> > I have a 1.3.7, but it crashes quite often, and it seems it's
> > the PHP module causes it so.
> > Any idea?
> >
> > Kenneth
> >
>
> Are you having problems with running 1.3.20? This is what i use under
> windows and it's
> working very well.
>
> /Martin
>
> --
> 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]
--- End Message ---
--- Begin Message ---
I have a little script which moves some files aournd and this line:
echo "<tr><td>$flename " . filesize("$flename") . "(bytes) has been changed
to $newname and has been moved!</td></tr>\n";
Is getting this error (don't let the words 'Microsoft Word' throw you off,
they are part of the file name):
Warning: stat failed for Microsoft Word - 34-493.pdf (errno=2 - No such file
or directory) in d:\InetPub\wwwroot\cc\resolutions\rmdres.php on line 53
But then I get the right message returned:
Microsoft Word - 34-493.pdf (bytes) has been changed to 34-384.pdf and has
been moved!
Warning: stat failed for Microsoft Word - 34-384.log (errno=2 - No such file
or directory) in d:\InetPub\wwwroot\cc\resolutions\rmdres.php on line 63
This used to work with 4.0.6-dev and before...
---------------------
John Asendorf - [EMAIL PROTECTED]
Web Applications Developer
http://www.lcounty.com - NEW FEATURES ADDED DAILY!
Licking County, Ohio, USA
740-349-3631
Nullum magnum ingenium sine mixtura dementiae fuit
--- End Message ---
--- Begin Message ---
I dont think this is an issue with filesize() but with current working directory.
$flename must have the fulle path to the file, or the current working directory must
be where $flename is located.
I know there has been changes to how this works over the time, though I don't remeber
when exactly.
- Frank
> I have a little script which moves some files aournd and this line:
>
> echo "<tr><td>$flename " . filesize("$flename") . "(bytes) has been changed
> to $newname and has been moved!</td></tr>\n";
>
>
> Is getting this error (don't let the words 'Microsoft Word' throw you off,
> they are part of the file name):
>
> Warning: stat failed for Microsoft Word - 34-493.pdf (errno=2 - No such file
> or directory) in d:\InetPub\wwwroot\cc\resolutions\rmdres.php on line 53
> But then I get the right message returned:
> Microsoft Word - 34-493.pdf (bytes) has been changed to 34-384.pdf and has
> been moved!
> Warning: stat failed for Microsoft Word - 34-384.log (errno=2 - No such file
> or directory) in d:\InetPub\wwwroot\cc\resolutions\rmdres.php on line 63
>
> This used to work with 4.0.6-dev and before...
>
> ---------------------
> John Asendorf - [EMAIL PROTECTED]
> Web Applications Developer
> http://www.lcounty.com - NEW FEATURES ADDED DAILY!
> Licking County, Ohio, USA
> 740-349-3631
> Nullum magnum ingenium sine mixtura dementiae fuit
>
>
> --
> 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]
>
>
>
--- End Message ---
--- Begin Message ---
At 10:40 27.09.2001 -0400, Asendorf, John wrote:
>Hi Alain... thanks, I've seen it, but the app is written and the last thing
>I need now is to 1) learn ADODB and then re-write the app to reflect ADODB
>and 2) add another potential wrench into the works...
>
>And I'm not sure how ADODB will fix the SAPI modules problems I'm having
>anyway...
the apache modul was broken in the last php4win build (i guess you're using
that).
wait 'till the next build or downgrade to 4.0.6
daniel
>But thank you for the suggestion.
>
>---------------------
>John Asendorf - [EMAIL PROTECTED]
>Web Applications Developer
>http://www.lcounty.com - NEW FEATURES ADDED DAILY!
>Licking County, Ohio, USA
>740-349-3631
>Nullum magnum ingenium sine mixtura dementiae fuit
>
>
> > -----Original Message-----
> > From: Alain Samoun [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, September 26, 2001 7:16 PM
> > To: Phil Driscoll
> > Cc: Asendorf, John; Php-Windows (E-mail)
> > Subject: Re: [PHP-WIN] Well, I've got it running
> >
> >
> > Phil, John:
> > Did you ever try ADODB?
> > http://php.weblogs.com/ADODB
> >
> > Alain
> > On Wed, Sep 26, 2001 at 09:51:55PM +0100, Phil Driscoll wrote:
> > > I know < 0 about ODBC, but it would be interesting to see
> > if the same code
> > > caused an error when running with PHP as a CGI (or at least
> > it may yeild more
> > > clues).
> > >
> > > Is there anyone on the list into ODBC who can help out here?
> > > --
> > > Phil Driscoll
> > >
> > > --
> > > 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]
--
daniel beulshausen - [EMAIL PROTECTED]
using php on windows? http://www.php4win.com
--- End Message ---
--- Begin Message ---
Oh. Thanks Daniel. I must have missed those mails. I thought I saw
"something" related to it...
Once again, thanks for all the work you do.
---------------------
John Asendorf - [EMAIL PROTECTED]
Web Applications Developer
http://www.lcounty.com - NEW FEATURES ADDED DAILY!
Licking County, Ohio, USA
740-349-3631
Nullum magnum ingenium sine mixtura dementiae fuit
> -----Original Message-----
> From: Daniel Beulshausen [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 28, 2001 1:25 PM
> To: Asendorf, John; Alain Samoun; Php-Windows (E-mail)
> Subject: RE: [PHP-WIN] Well, I've got it running
>
>
> At 10:40 27.09.2001 -0400, Asendorf, John wrote:
> >Hi Alain... thanks, I've seen it, but the app is written and
> the last thing
> >I need now is to 1) learn ADODB and then re-write the app to
> reflect ADODB
> >and 2) add another potential wrench into the works...
> >
> >And I'm not sure how ADODB will fix the SAPI modules
> problems I'm having
> >anyway...
>
> the apache modul was broken in the last php4win build (i
> guess you're using
> that).
> wait 'till the next build or downgrade to 4.0.6
>
> daniel
>
> >But thank you for the suggestion.
> >
> >---------------------
> >John Asendorf - [EMAIL PROTECTED]
> >Web Applications Developer
> >http://www.lcounty.com - NEW FEATURES ADDED DAILY!
> >Licking County, Ohio, USA
> >740-349-3631
> >Nullum magnum ingenium sine mixtura dementiae fuit
> >
> >
> > > -----Original Message-----
> > > From: Alain Samoun [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, September 26, 2001 7:16 PM
> > > To: Phil Driscoll
> > > Cc: Asendorf, John; Php-Windows (E-mail)
> > > Subject: Re: [PHP-WIN] Well, I've got it running
> > >
> > >
> > > Phil, John:
> > > Did you ever try ADODB?
> > > http://php.weblogs.com/ADODB
> > >
> > > Alain
> > > On Wed, Sep 26, 2001 at 09:51:55PM +0100, Phil Driscoll wrote:
> > > > I know < 0 about ODBC, but it would be interesting to see
> > > if the same code
> > > > caused an error when running with PHP as a CGI (or at least
> > > it may yeild more
> > > > clues).
> > > >
> > > > Is there anyone on the list into ODBC who can help out here?
> > > > --
> > > > Phil Driscoll
> > > >
> > > > --
> > > > 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]
>
>
> --
> daniel beulshausen - [EMAIL PROTECTED]
> using php on windows? http://www.php4win.com
>
--- End Message ---
--- Begin Message ---
At 13:23 28.09.2001 -0400, Asendorf, John wrote:
>Oh. Thanks Daniel. I must have missed those mails. I thought I saw
>"something" related to it...
the next build will follow early next week.
i can also send you an updated one if you're in an urgent need.
daniel
>Once again, thanks for all the work you do.
>
>---------------------
>John Asendorf - [EMAIL PROTECTED]
>Web Applications Developer
>http://www.lcounty.com - NEW FEATURES ADDED DAILY!
>Licking County, Ohio, USA
>740-349-3631
>Nullum magnum ingenium sine mixtura dementiae fuit
>
>
> > -----Original Message-----
> > From: Daniel Beulshausen [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, September 28, 2001 1:25 PM
> > To: Asendorf, John; Alain Samoun; Php-Windows (E-mail)
> > Subject: RE: [PHP-WIN] Well, I've got it running
> >
> >
> > At 10:40 27.09.2001 -0400, Asendorf, John wrote:
> > >Hi Alain... thanks, I've seen it, but the app is written and
> > the last thing
> > >I need now is to 1) learn ADODB and then re-write the app to
> > reflect ADODB
> > >and 2) add another potential wrench into the works...
> > >
> > >And I'm not sure how ADODB will fix the SAPI modules
> > problems I'm having
> > >anyway...
> >
> > the apache modul was broken in the last php4win build (i
> > guess you're using
> > that).
> > wait 'till the next build or downgrade to 4.0.6
> >
> > daniel
> >
> > >But thank you for the suggestion.
> > >
> > >---------------------
> > >John Asendorf - [EMAIL PROTECTED]
> > >Web Applications Developer
> > >http://www.lcounty.com - NEW FEATURES ADDED DAILY!
> > >Licking County, Ohio, USA
> > >740-349-3631
> > >Nullum magnum ingenium sine mixtura dementiae fuit
> > >
> > >
> > > > -----Original Message-----
> > > > From: Alain Samoun [mailto:[EMAIL PROTECTED]]
> > > > Sent: Wednesday, September 26, 2001 7:16 PM
> > > > To: Phil Driscoll
> > > > Cc: Asendorf, John; Php-Windows (E-mail)
> > > > Subject: Re: [PHP-WIN] Well, I've got it running
> > > >
> > > >
> > > > Phil, John:
> > > > Did you ever try ADODB?
> > > > http://php.weblogs.com/ADODB
> > > >
> > > > Alain
> > > > On Wed, Sep 26, 2001 at 09:51:55PM +0100, Phil Driscoll wrote:
> > > > > I know < 0 about ODBC, but it would be interesting to see
> > > > if the same code
> > > > > caused an error when running with PHP as a CGI (or at least
> > > > it may yeild more
> > > > > clues).
> > > > >
> > > > > Is there anyone on the list into ODBC who can help out here?
> > > > > --
> > > > > Phil Driscoll
> > > > >
> > > > > --
> > > > > 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]
> >
> >
> > --
> > daniel beulshausen - [EMAIL PROTECTED]
> > using php on windows? http://www.php4win.com
> >
>
>--
>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]
--
daniel beulshausen - [EMAIL PROTECTED]
using php on windows? http://www.php4win.com
--- End Message ---
--- Begin Message ---
Hi to all,
how can I to show the time/date data of visitors computer? I mean, in depend on
visitor's local time some info will be different.
Tanks for any help!
Afan
--- End Message ---
--- Begin Message ---
Use the Date object of Javascript.
Alain
On Fri, Sep 28, 2001 at 04:53:01PM -0400, Afan Pasalic wrote:
> Hi to all,
> how can I to show the time/date data of visitors computer? I mean, in depend on
>visitor's local time some info will be different.
>
> Tanks for any help!
>
> Afan
--- End Message ---
--- Begin Message ---
I am having problems compiling the most recent version of PHP with
Visual Studio 6 in windows 2k. Does anyone know where there are step by
step guides to compile the source. I am particularly haveing problems
with finding all the INCLUDE files, etc.
Thanks,
A.J. Ostman
[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
Hello!
How do I make the IIS5 to display the 404 Error Document instead of the
Error-Page of the PHP.EXE?
Thanks
Dennis Körner
--- End Message ---