php-windows Digest 19 May 2005 06:19:23 -0000 Issue 2674
Topics (messages 26024 through 26032):
Re: HTML source code is cut off in some cases with Windows 2003 SP 1, IIS, PHP
5.0.4, CGI/FastCGI
26024 by: Shinan Kassam
26030 by: Louis Solomon \[SteelBytes\]
Help with windows 2003 iis6, exec() and permissions
26025 by: Adam Niedzwiedzki
26027 by: Adam Niedzwiedzki
26031 by: Louis Solomon \[SteelBytes\]
26032 by: Adam Niedzwiedzki
Re: Firefox COM objects?
26026 by: Shark Mayhem
26028 by: Louis Solomon \[SteelBytes\]
Re: problems / mistake in pack () and unpack() ???
26029 by: Louis Solomon \[SteelBytes\]
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 ---
I am actually surprised that configuration works at all for you. I was
using the exact same configuration but I needed php_ldap.dll module
for AD authentication. For some reason, I couldn't load modules with
2003, IIS6 , SP1 and PHP 4.3.10 or 5.0.4.
As far as the strange behavior, it was suggested to me that I should
use ISAPI with IIS. I haven't had the opportunity to heavily test the
stability but everything seems to work fine. So using ISAPI instead of
CGI might help your issues.
Can anyone else comment on ISAP vs CGI for newer PHP releases?
Hope this helps
-Shinan
On 5/17/05, Marco Ab�cherli <[EMAIL PROTECTED]> wrote:
> Hello
>
> I have a problem with Windows 2003 SP 1, IIS, PHP 5.0.4, CGI and FastCGI.
>
> In some cases the PHP generated HTML source code delivered to the client is
> cut off. Not the whole HTML source code ist deliverd. This occurs not
> regularly.
>
> Example: call page test.php -> the site is well displayed. Open a new
> browser window, call the same page -> the last part of the page will not be
> displayed. I can't figure out a rule. Sometimes it works sometimes it
> doesn't.
>
> I tested the problem with the following installations:
>
> Error occurs:
> - PHP 5.0.4 CGI
> - PHP 5.0.4 CGI with Zend Optimizer
> - PHP 5.0.4 FastCGI with Zend WinEnabler 1.2
>
> No Error:
> - Static HTML file
> - PHP 4.3.7 CGI
> - PHP 4.3.9 FastCGI mit Zend WinEnabler 1.2
> - PHP 5.0.4 ISAPI
>
> This error occurs only after updating our test server to SP1.
>
> Thanks,
> Marco Ab�cherli
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Shinan S. Kassam
--- End Message ---
--- Begin Message ---
> Can anyone else comment on ISAP vs CGI for newer PHP releases?
isapi has only one advantage with PHP ... the PHP engine (and modules?)
don't have to get reloaded for each script.
it does have disadvantages ... since PHP is not overly stable (in my
experience), it is not a great choice.
also I have been able to get connection reuse working with CGI (this
involved a lot of work and uses the prepend&append ini settings), but the
php ISAPI forces connection close :-( I wish the php team would fix this.
--
Louis Solomon
www.SteelBytes.com
--- End Message ---
--- Begin Message ---
Hi all,
There is so much info on google/pnp.net etc on this but all of them seem to
work some of the time and the rest of them seem to work the rest of the
time;).
I just can't seem to find what is the most secure and correct/guaranteed way
of setting this up.
A windows 2003 server, running IIS6, and PHP 4.3.11, soon to move to php
5.0.4.
What is the correct way to setup php/iis to allow php access to run exec()
(ping.exe,cat.exe (from gnu utilities for win32), and any other command
shell stuff.) etc.
Also what is the correct way to setup folder permissions on Windows 2003 to
allow php to write a file. Is it possible to set permissions on the folder
and not the file (in case it has the file is deleted and uploaded again
etc).
I've googled and found 1000's, 10's of 1000's of options but after working
through the first half dozen and not having any luck (or most of the saying
that you open your system up to a HUGE security hole if you give IUSER_XXX
write access to cmd.exe, I'm just after the "correct"/recommended" way to do
the above.
Cheers
Adam
smime.p7s
Description: S/MIME cryptographic signature
--- End Message ---
--- Begin Message ---
Hi all,
There is so much info on google/pnp.net etc on this but all of them seem to
work some of the time and the rest of them seem to work the rest of the
time;).
I just can't seem to find what is the most secure and correct/guaranteed way
of setting this up.
A windows 2003 server, running IIS6, and PHP 4.3.11, soon to move to php
5.0.4.
What is the correct way to setup php/iis to allow php access to run exec()
(ping.exe,cat.exe (from gnu utilities for win32), and any other command
shell stuff.) etc.
Also what is the correct way to setup folder permissions on Windows 2003 to
allow php to write a file. Is it possible to set permissions on the folder
and not the file (in case it has the file is deleted and uploaded again
etc).
I've googled and found 1000's, 10's of 1000's of options but after working
through the first half dozen and not having any luck (or most of the saying
that you open your system up to a HUGE security hole if you give IUSER_XXX
write access to cmd.exe, I'm just after the "correct"/recommended" way to do
the above.
Cheers
Adam
--- End Message ---
--- Begin Message ---
> What is the correct way to setup php/iis to allow php access to run exec()
> (ping.exe,cat.exe (from gnu utilities for win32), and any other command
> shell stuff.) etc.
access to %windir%\system32\cmd.exe is required. this is denied in a
default IIS6 installation.
--
Louis Solomon
www.SteelBytes.com
"Adam Niedzwiedzki" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi all,
>
> There is so much info on google/pnp.net etc on this but all of them seem
> to work some of the time and the rest of them seem to work the rest of the
> time;).
>
> I just can't seem to find what is the most secure and correct/guaranteed
> way of setting this up.
>
> A windows 2003 server, running IIS6, and PHP 4.3.11, soon to move to php
> 5.0.4.
> What is the correct way to setup php/iis to allow php access to run exec()
> (ping.exe,cat.exe (from gnu utilities for win32), and any other command
> shell stuff.) etc.
> Also what is the correct way to setup folder permissions on Windows 2003
> to allow php to write a file. Is it possible to set permissions on the
> folder and not the file (in case it has the file is deleted and uploaded
> again etc).
>
> I've googled and found 1000's, 10's of 1000's of options but after working
> through the first half dozen and not having any luck (or most of the
> saying that you open your system up to a HUGE security hole if you give
> IUSER_XXX write access to cmd.exe, I'm just after the
> "correct"/recommended" way to do the above.
>
> Cheers
> Adam
>
--- End Message ---
--- Begin Message ---
Hi Louis,
So is that just the case of adding IUSER_XXX to cmd.exe?
What permissions do I give IUSER on cmd.exe?
Isn't that a big risk? Is there a way to exploit that? (apart from someone
uploading php code etc), via a URL or something?
Just wanting the "correct/safest" way to do this.
Cheers
Adam
"Louis Solomon" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>> What is the correct way to setup php/iis to allow php access to run
>> exec() (ping.exe,cat.exe (from gnu utilities for win32), and any other
>> command shell stuff.) etc.
>
> access to %windir%\system32\cmd.exe is required. this is denied in a
> default IIS6 installation.
>
> --
> Louis Solomon
> www.SteelBytes.com
>
> "Adam Niedzwiedzki" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>> Hi all,
>>
>> There is so much info on google/pnp.net etc on this but all of them seem
>> to work some of the time and the rest of them seem to work the rest of
>> the time;).
>>
>> I just can't seem to find what is the most secure and correct/guaranteed
>> way of setting this up.
>>
>> A windows 2003 server, running IIS6, and PHP 4.3.11, soon to move to php
>> 5.0.4.
>> What is the correct way to setup php/iis to allow php access to run
>> exec() (ping.exe,cat.exe (from gnu utilities for win32), and any other
>> command shell stuff.) etc.
>> Also what is the correct way to setup folder permissions on Windows 2003
>> to allow php to write a file. Is it possible to set permissions on the
>> folder and not the file (in case it has the file is deleted and uploaded
>> again etc).
>>
>> I've googled and found 1000's, 10's of 1000's of options but after
>> working through the first half dozen and not having any luck (or most of
>> the saying that you open your system up to a HUGE security hole if you
>> give IUSER_XXX write access to cmd.exe, I'm just after the
>> "correct"/recommended" way to do the above.
>>
>> Cheers
>> Adam
>>
--- End Message ---
--- Begin Message ---
well the firefox group put a good portion of the effects that happen
with their browser in css
On 5/17/05, Louis Solomon [SteelBytes] <[EMAIL PROTECTED]> wrote:
> >>Does Firefox support COM objects
>
> >> ask the firefox team
>
> > theres some css for firefox you can use
>
> umm ... what does CSS have to do with COM?
>
> --
> Louis Solomon
> www.SteelBytes.com
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Shark mayhem - Bradley
--- End Message ---
--- Begin Message ---
>>>> ask the firefox team
>>
>>> theres some css for firefox you can use
>>
>> umm ... what does CSS have to do with COM?
>
>well the firefox group put a good portion of the effects that
>happen with their browser in css
ok, let's start with what is COM. COM stands for Common Object Model, and is
an architecture for communicating between different programs and models.
(see
http://msdn.microsoft.com/library/en-us/dnanchor/html/componentobjectmodelanchor.asp
for more details).
and what did the original poster want to do with COM (and had been with IE),
they had been using it to automate IE, and wanted to do the same with
FireFox. Presumably to load webpages, maybe fill out forms, submit, read
results, etc.
Now, again, where does CSS fit in?
--
Louis Solomon
www.SteelBytes.com
--- End Message ---
--- Begin Message ---
if you wrote to the file from say a PowerPC (big endian) (eg MacOSX) using I
or L, then read the file using a Intel (or AMD) (little endian) (eg Windows)
using I or L, then it would give different results.
--
Louis Solomon
www.SteelBytes.com
"Burkhard Herre" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> hello
>
> i use the function pack() and unpack()
>
> i have following question:
>
>
> $content = -2147483647;
> $binarydata = pack("V", $content);
>
> ...(fwrite in file)
> ...(fread from file)
>
> $bin_str = fread ($handle, 4);
> $ascii_array = unpack("V", $bin_str);
> $ascii_str = $ascii_array[1];
>
> it makes no difference if i use the "V", the "l" or the "L" flag !
>
> every flag works the same...output is '-2147483647'
>
> but from the php page i get this:
>
> l -- Long-Typ with sign (always 32 Bit, Byte-sequenz maschine depent)
>
> L -- Long-Typ without sign (always 32 Bit, Byte-sequenz maschine depent)
>
> V -- Long-Typ without sign (always 32 Bit, little endian)
>
>
> why is it so ?
> what happends ?
>
>
>
> thank you
>
>
>
>
>
>
>
--- End Message ---