php-windows Digest 31 Dec 2001 17:56:14 -0000 Issue 929
Topics (messages 11225 through 11238):
Mpanel, IIS and win2k server problem
11225 by: Isan Kaiser
Re: MySQL problems...
11226 by: VivoAnt
Re: Deleting a file under Windows
11227 by: LaserJetter
11228 by: Richard Black
Settings per virtual site on IIS ?
11229 by: Olivier Mascia
Is there a FAQ for this list ?
11230 by: Olivier Mascia
problems with domxml and xslt extensions
11231 by: Luca
11236 by: Olivier Mascia
Re: Humor... Was: Mathimatical equations in PHP [Th is message has nothing to do with
PHP and if thats your prime concern, pl ease, delete t his message]
11232 by: Asendorf, John
error when using IIS 5 and PHP
11233 by: charles
11235 by: Olivier Mascia
PHP-based authentication on IIS/ISAPI : how to ?
11234 by: Olivier Mascia
Re: Performance tuning #2
11237 by: Peter Illes
11238 by: alain samoun
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 ---
After installing my win2k server with IIS and also
php(exe version, not the isapi one), I tried
installing mpanel. For some reason or another, Mpanel
simply does not pass the cookie variables (or so I
believe)since I keep getting the same error message
that I believe. When I modified the code to echo the
cookie variables out, I was able to log into Mpanel.
In case any of you don't know what Mpanel is, check
out this url:
http://www.mattsscripts.co.uk/mpanel.htm
I've read that win2k server has problems passing
cookie information and this maybe the problem but I'm
keeping my views open just in case it isn't.
Sounds weird but it really happened. Anyone out there
using Mpanel with win2k server and IIS? Perhaps you
can shed some light on this.
All software I used are as follows:
php (version 4.0.3 and 4.1.0)(cgi version for both
versions)
win2k server version IIS 5.0
Any help would be appreciated. Thanks in advance.
__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com
--- End Message ---
--- Begin Message ---
N/M I got it to work... My host had some wierd problems with MySQL... It's
fixed now :)
Why do I keep getting this wierd errors though? It's all over mysite...
Warning: Supplied argument is not a valid MySQL result resource in
/users/ionichost.com/vivoant/includes/sql_layer.php on line 230
----- Original Message -----
From: "VivoAnt" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, December 30, 2001 9:01 PM
Subject: Re: [PHP-WIN] MySQL problems...
> Do I have to CHMOD PHPMyAdmin ???
>
> ----- Original Message -----
> From: "Pac mon" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Sunday, December 30, 2001 1:59 AM
> Subject: Re: [PHP-WIN] MySQL problems...
>
>
> > My guess is that you have a password set for the root user in Mysql, but
> > (from the error statement) I can see that a password was not sent to
Mysql
> > for verification. That being neccessary, of course. I believe David is
> > referring the the exact variables in phpMyAdmin that would hold the
value
> in
> > question. Good Luck.
> >
> > >
> > >Hi VivoAnt
> > >
> > >On 30 December 2001 at 01:02:22 -0800 (which was 09:02 where I live)
> > >VivoAnt
> > >rearranged electrons to get
> > >
> > >V> Thanks for the help on my previous question :) I got it to work
> finally
> > >V> :) After I did everything I tried to upload phpmyadmin to my server.
I
> > >V> tried accessing the page but I got this error:
> > >
> > >V> Error
> > >V> MySQL said:
> > >
> > >V> Access denied for user: 'root@localhost' (Using password: NO)
> > >
> > >V> I'm not sure what that means...
> > >
> > >At a guess I would say that you have not configured config.inc.php3 (or
> > >config.inc.php) correctly check the following entries
> > >
> > >$cfgServers[1]['host']
> > >$cfgServers[1]['user']
> > >$cfgServers[1]['password']
> > >
> > >--
> > > BBFN,
> _______________________________________________
> > > David | David Elliott | Software Engineer
> > >|
> > > _________________________| [EMAIL PROTECTED] | PGP Key ID
0x650F4534
> > >|
> > >| We're riding on the Escalator of Life
> |
> > >
> > >
> > >--
> > >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]
> > >
> >
> >
> > _________________________________________________________________
> > Get your FREE download of MSN Explorer at
> http://explorer.msn.com/intl.asp.
> >
> >
> > --
> > 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]
>
--- End Message ---
--- Begin Message ---
The PDF manual I downloaded for 4.0.6 said something about unlink not
working on windows but it's always worked fine for me!
It might be a warning as it may not work under certain conditions
"SéBastien ThüLer" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I suppose the PDF version of the manual is not up-to-date, then.
> Thanks for the info!
>
> -Séb
>
> "Daniel Beulshausen" <[EMAIL PROTECTED]> a écrit dans le message news:
> [EMAIL PROTECTED]
> At 18:11 30.12.2001 +0100, Sébastien Thüler wrote:
> >Hello!
> >
> >The manual says that unlink() doesn't work under Windows.
> >Question is : what is the way to delete a file under Windows ?
>
> i must be blind then :)
> for sure unlink works under windows, everyone saying something different
is
> nuts.
>
> daniel
>
> /*--
> Daniel Beulshausen - [EMAIL PROTECTED]
> Using PHP on Windows? http://www.php4win.com
>
>
>
--- End Message ---
--- Begin Message ---
I've not had any problems with it on Windows 98 at home. On WinNT (4.0, serv. pack 6 I
think) it doesn't work.
For me at least. (PHP 4.0.4pl1)
Richy
-----Original Message-----
From: LaserJetter [SMTP:[EMAIL PROTECTED]]
Sent: 30 December 2001 20:36
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] Deleting a file under Windows
The PDF manual I downloaded for 4.0.6 said something about unlink not
working on windows but it's always worked fine for me!
It might be a warning as it may not work under certain conditions
"SeBastien ThuLer" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I suppose the PDF version of the manual is not up-to-date, then.
> Thanks for the info!
>
> -Seb
>
> "Daniel Beulshausen" <[EMAIL PROTECTED]> a ecrit dans le message news:
> [EMAIL PROTECTED]
> At 18:11 30.12.2001 +0100, Sebastien Thuler wrote:
> >Hello!
> >
> >The manual says that unlink() doesn't work under Windows.
> >Question is : what is the way to delete a file under Windows ?
>
> i must be blind then :)
> for sure unlink works under windows, everyone saying something different
is
> nuts.
>
> daniel
>
> /*--
> 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]
--- End Message ---
--- Begin Message ---
Hello,
Is there some mechanism with PHP 4.1 on Win32/IIS (ISAPI module)
allowing to define some initialisation settings per website ?
Something along the line of Apache php_value/php_flag instructions that
can be set in its httpd.conf file within virtual-sites settings :
php_value include_path ".:/usr/local/lib/php"
php_flag safe_mode on
Or possibility to have the ISAPI module load an additional php.ini local
to the site in addition to the global one in %SYSTEM% ?
phpinfo() lists "local" settings and "global" settings.
Are those necessarily the same with PHP ISAPI on IIS ?
Thanks for any answer or suggestions,
--
Olivier Mascia <[EMAIL PROTECTED]>
--- End Message ---
--- Begin Message ---
Is there a FAQ for list ?
When subscribed to this list, can I post to it through the related news
group at news.php.net and set the list itself in no-mail mode ?
--
Olivier Mascia <[EMAIL PROTECTED]>
--- End Message ---
--- Begin Message ---
First off, I can't get DOMXML to work. The lines
$doc = xmldoc($this->xml); // (line 26)
$root = $doc->root(); // (line 27)
raise a parse error:
"Parse error: parse error in d:\...\class.xmltemplate.php on line 27"
I'm running PHP 4.1.0 as an Apache module with Apache 1.3.14 on
Win98 (but I was experiencing the same problem with 4.0.6). All the
required dlls (libxml2.dll, iconv-1.3.dll) have been copied to the
system directory, and phpinfo() tells me that DOMXML is enabled
(with libxml 2.4.1).
I also happen to have a problem with the new xslt extension: the
lines
$xh = xslt_create();
$head = xslt_process($xh, 'arg:/_xml', 'arg:/_xsl', NULL,
array('_xml' => $this->xml, '_xsl' => $this->xsl),
array('$contentpath' => $this->content->href,
'$mode' => 'gethead'));
make Apache crash. Here are the details:
--
APACHE ha provocato un errore di pagina non valida nel
modulo PHP_XSLT.DLL in 015f:01692140.
Registri:
EAX=00000000 CS=015f EIP=01692140 EFLGS=00010246
EBX=00000007 SS=0167 ESP=025cf338 EBP=05d040f0
ECX=ffffffff DS=0167 ESI=0612bba0 FS=4e57
EDX=00000000 ES=0167 EDI=00000000 GS=0000
Byte all'indirizzo CS:EIP:
f2 ae f7 d1 49 51 52 89 4e 04 ff 15 44 50 69 01
Immagine dello stack:
00000001 06131ab4 009230ed 0625f9c0 0612bba0 00000000
00000001 05d040f0 00000000 06124d00 05d040f0 025cfc90
0612f468 0612f0c0 0612f3a0 0612eff8
--
The same call made from the command line (with sabcmd) works fine.
The leading $s in the parameter names are not typos: Sablotron 0.71
(at least the command line version) seems to require them.
Thanks,
Luca
--- End Message ---
--- Begin Message ---
Hello,
Luca wrote:
L> First off, I can't get DOMXML to work. The lines
L>
L> $doc = xmldoc($this->xml); // (line 26)
L> $root = $doc->root(); // (line 27)
L>
L> raise a parse error:
L>
L> "Parse error: parse error in d:\...\class.xmltemplate.php on line 27"
When I does :
$dom = xmldoc(searchitems("03000")); // searchitems returns a XML string
$root = $dom->root();
/* or $root = domxml_root($dom); */
print_r($root);
it gives me no problems (php4.1.0 win32 as ISAPI on IIS5.1).
--
Olivier Mascia <[EMAIL PROTECTED]>
--- End Message ---
--- Begin Message ---
Hey Anders,
I recognize humor. You're just not funny. But, never fear, when it comes
to pomposity you've got a corner on the market.
John
------
A sample of Ander's "humor":
"Yes, there is naive approach to this: remove every single web page with
scripting."
"To beging with, why not give the manual a try?"
"Why do you uses quotes here?"
"Of course it is possible. (Why would it not be?)
I've don it my self (stored ptrocedures that builds HTML pages),
and especially the full text search you were talking about."
--- End Message ---
--- Begin Message ---
I get the following error when trying to test PHP with IIS 5 using tha Isapi
DLL. Any ideas what is causing it?
The HTTP server encountered an unhandled exception while processing the
ISAPI Application '
php4isapi!HttpExtensionProc + 0x44
wam!SE_TABLE::ReleaseExtension(class HSE_BASE *) + 0x99A
wam!SE_TABLE::ReleaseExtension(class HSE_BASE *) + 0x30A
w3svc!IIS_VROOT_TABLE::AddRefRecord(void const *,int) + 0x2E4
w3svc!PARAM_LIST::CanonList(void) + 0x242E
w3svc!HTTP_REQ_BASE::BuildURLMovedResponse(class BUFFER *,class STR
*,unsigned long,int) + 0x3979
w3svc!HTTP_REQ_BASE::BuildURLMovedResponse(class BUFFER *,class STR
*,unsigned long,int) + 0x3915
w3svc!HTTP_REQ_BASE::TestConnection(void) + 0xDE5
w3svc!HTTP_REQUEST::ReprocessURL(char *,enum HTTP_VERB) + 0x25A
w3svc!DumpW3InfoToHTML + 0xA95
w3svc!DumpW3InfoToHTML + 0x1813
w3svc!HTTP_REQ_BASE::TestConnection(void) + 0xE5C
w3svc!ScanForTerminator(char const *) + 0x548
w3svc!IIS_SERVER_INSTANCE::QueryMaxEndpointConnections(void)const + 0x331E
w3svc!IIS_SERVER_INSTANCE::QueryMaxEndpointConnections(void)const + 0x323D
ISATQ!_AtqGetCapTraceInfo@4 + 0x644
ISATQ!_AtqGetCapTraceInfo@4 + 0x934
+ 0x4CE0377A
'.
--- End Message ---
--- Begin Message ---
Hello,
charles wrote:
c> I get the following error when trying to test PHP with IIS 5 using tha Isapi
c> DLL. Any ideas what is causing it?
I'm running PHP 4.1.0/Win32 as ISAPI on IIS 5.0/Win2K and IIS5.1/WinXP
without any apparent problems. Have you copied the php4ts.dll to your
%SYSTEM% directory ? Is the php.ini-recommended also there (renamed as
php.ini) ? Is the path to extensions properly setup in php.ini ? If you
stop and restart IIS from a command-prompt :
net stop IISADMIN (answer yes to the question)
net start W3SVC
do you see any error displayed ?
Have you carefully followed the setup instructions regarding the
settings to be made in IIS "Home Directory" tab settings and in "ISAPI
Filters" tab too ?
--
Olivier Mascia <[EMAIL PROTECTED]>
--- End Message ---
--- Begin Message ---
Hello,
It looks like things as described in :
<http://www.zend.org/zend/tut/authentication.php>
do not work at all as described when using PHP 4.1 as ISAPI on IIS.
Are there known steps on how to deal correcty with PHP-based
authentication on IIS ?
--
Olivier Mascia <[EMAIL PROTECTED]>
--- End Message ---
--- Begin Message ---
Thanks, Manuel, those are both very good ideas that we will make use of.
My original problem is simpler than that, though: I'd like to pre-allocate a
buffer for the string. Is this possible in PHP?
This is possible in both C/C++ and Delphi (with SetLength() in Delphi). The
reason for this to have let's say 4-5 re-allocations instead of ~10,000+
re-allocations.
Of course we could get into the source of PHP to add the functionality (or
alternatively, roll our own cache object), but this is a very basic feature,
and I'm sure it does have it, I'm just too unlucky not finding out how...
Happy New Year,
Peter
--- End Message ---
--- Begin Message ---
No faq, but an archive at:
http://marc.theaimsgroup.com/?l=php-windows&r=1&w=2
A+
Alain
-----Original Message-----
From: Peter Illes [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 31, 2001 8:42 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Re: Performance tuning #2
Thanks, Manuel, those are both very good ideas that we will make use of.
My original problem is simpler than that, though: I'd like to pre-allocate a
buffer for the string. Is this possible in PHP?
This is possible in both C/C++ and Delphi (with SetLength() in Delphi). The
reason for this to have let's say 4-5 re-allocations instead of ~10,000+
re-allocations.
Of course we could get into the source of PHP to add the functionality (or
alternatively, roll our own cache object), but this is a very basic feature,
and I'm sure it does have it, I'm just too unlucky not finding out how...
Happy New Year,
Peter
--
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 ---