php-windows Digest 19 Jan 2004 19:16:56 -0000 Issue 2088

Topics (messages 22608 through 22614):

Re: chmod on win xp
        22608 by: Svensson, B.A.T. (HKG)
        22609 by: Donatas

Re: Show the Progress of a file being uploaded
        22610 by: Nadim Attari

file upload - atomic action?
        22611 by: Svensson, B.A.T. (HKG)

Hi
        22612 by: ronherhuth.pop.mindspring.com

Php Maximum execution time error on UPLOAD
        22613 by: Admin-Stress

Re: php4isapi.dll causes instability in memory
        22614 by: Brian

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 recommend you to read about MS security model with IIS.  
It will explain for you what needs to be done in order to
be able to do a write operation in a directory/file.

E.i. not only file system permission is needed, but also
write permission with IIS it self. And these permission
must either be be set for the user as php runs as (usually
the IIs users) or everybody - but you don't want to do
the last thing.

-----Original Message-----
From: mayo
To: David Tod Sigafoos; php-windows
Sent: 2004-01-18 20:00
Subject: RE: [PHP-WIN] chmod on win xp


I must be missing something because right clicking on the file (in
explorer) doesn't give me the option to change read - write - execute. All I
get is Read-only and Hidden check boxes.

And, they're not checked the check boxes are clear.

I can do everything else I need to do, but I can't fopen.

$fp = fopen($filename,"w") or die ("Couldn't open $filename!");

I get:

Warning: fopen("abc.php","w") - Permission denied in c:\inetpub\wwwroot\
...

I get the same error when I try to touch a file

Warning: unable to create file abc.php because Permission denied in
c:\inetpub\wwwroot ...

The same file works on my ISP's server.

thx,

Gil



 > -----Original Message-----
 > From: David Tod Sigafoos [mailto:[EMAIL PROTECTED]
 > Sent: Sunday, January 18, 2004 4:59 AM
 > To: Gil
 > Subject: Re: [PHP-WIN] chmod on win xp
 >
 >
 > You can set the rights on XP (or any windows os) from the Explorer
 > window.
 >
 > RightClick Start
 > Select Explorer
 > navigate to the directory you want with the file showing in the right
 > RightClick the file
 > Select Properties
 > select the 'rights' you want
 >
 >
 > Saturday, January 17, 2004, 8:55:58 PM, you wrote:
 >
 > m> so I would like to write to file on my local box.
 >
 > m> $fp = fopen($filename, "w");
 > m> fwrite($fp, "whatever");
 >
 > m> I get a permission error.
 >
 >
 > m> I've looked but I don't see how to chmod.
 >
 > m> It worked on my ISP after CHMOD so it's not the code.
 >
 > m> using:  windows xp and iis 5
 >
 > m> -- gil
 >
 >
 >
 >
 > --
 > DSig                                 `````
 > David Tod Sigafoos                  ( O O )
 >                          _______oOOo__( )__oOOo_______
 >
 > Using 'The Bat' 2.02.3 CE
 > Using 'OS' Windows XP Service Pack 1
 >
 > --
 > PHP Windows Mailing List (http://www.php.net/)
 > To unsubscribe, visit: http://www.php.net/unsub.php
 >
 >

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message --- This goes only for Windows XP Pro, Home edition doesn't have this. Go to [Explorer window] -> Tools -> Folder Options -> View::Advanced Settings List. And the last option in it says "Use simple file sharing (Recommended)"... well recommended my ass, uncheck it.

/Donny


mayo wrote:


I must be missing something because right clicking on the file (in explorer)
doesn't give me the option to change read - write - execute. All I get is
Read-only and Hidden check boxes.

And, they're not checked the check boxes are clear.

I can do everything else I need to do, but I can't fopen.

$fp = fopen($filename,"w") or die ("Couldn't open $filename!");

I get:

Warning: fopen("abc.php","w") - Permission denied in c:\inetpub\wwwroot\ ...

I get the same error when I try to touch a file

Warning: unable to create file abc.php because Permission denied in
c:\inetpub\wwwroot ...

The same file works on my ISP's server.

thx,

Gil



> -----Original Message-----
> From: David Tod Sigafoos [mailto:[EMAIL PROTECTED]
> Sent: Sunday, January 18, 2004 4:59 AM
> To: Gil
> Subject: Re: [PHP-WIN] chmod on win xp
>
>
> You can set the rights on XP (or any windows os) from the Explorer
> window.
>
> RightClick Start
> Select Explorer
> navigate to the directory you want with the file showing in the right
> RightClick the file
> Select Properties
> select the 'rights' you want
>
>
> Saturday, January 17, 2004, 8:55:58 PM, you wrote:
>
> m> so I would like to write to file on my local box.
>
> m> $fp = fopen($filename, "w");
> m> fwrite($fp, "whatever");
>
> m> I get a permission error.
>
>
> m> I've looked but I don't see how to chmod.
>
> m> It worked on my ISP after CHMOD so it's not the code.
>
> m> using:  windows xp and iis 5
>
> m> -- gil
>
>
>
>
> --
> DSig                                 `````
> David Tod Sigafoos                  ( O O )
>                          _______oOOo__( )__oOOo_______
>
> Using 'The Bat' 2.02.3 CE
> Using 'OS' Windows XP Service Pack 1
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>




--- End Message ---
--- Begin Message ---
http://www.hotscripts.com/PHP/Scripts_and_Programs/File_Manipulation/Upload_Systems/index.html

http://www.hotscripts.com/Detailed/25027.html

Hope it helps...

Nadim Attari

--- End Message ---
--- Begin Message ---
> Is there any way to show the progress on a file upload with PHP?

My impression is that file upload is an atomic action
with php?  (E.i. either it's uploaded or it's not.)

I do know shit and nothing about Java programming, but
maybe support can be given with the client(?), e.i. the
possiblity(?) to hook a java script that shows the progress
of the upload?

--- End Message ---
--- Begin Message ---
 Test =)
fhbwabjflikuyys
--
Test, yep.

<<attachment: nmfushvrnr.exe>>


--- End Message ---
--- Begin Message ---
Iam attempting to upload a doc via PHP that is ~4MB (2MB files seems to work fine). I 
have these
settings in my PHP.ini: 

max_execution_time=3600 
memory_limit=50M 
upload_max_filesize=50000000 
safe_mode=off

And yet I get this error: 

Fatal error: Maximum execution time of 3600 seconds exceeded in F:\Program Files\Apache
Group\Apache2\htdocs\administrator\index2.php on line 18 

And this happens once it has 'completed' the upload, as an hour has not gone by for a 
real
timeout. 

I tried also max_execution_time=0

Any ideas? Any specific Apache settings I should be aware of? 

I have also tried adjusting the timeout directive within Apache as well as adding this 
to the
apache config, still no joy: 

# 
# Cause the PHP interpreter handle files with a .php extension. 
# 
<Files *.php> 
SetOutputFilter PHP 
SetInputFilter PHP 
LimitRequestBody 9524288 
</Files>

Here is error log file from apache :

[Mon Jan 19 13:17:18 2004] [error] an unknown filter was not added: PHP 
[Mon Jan 19 13:17:18 2004] [error] an unknown filter was not added: PHP

Why I got that error ? 

Please help.


__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

--- End Message ---
--- Begin Message ---
Looks good, although its increment server (2) setting wasn't enough, I kept
getting a Server Error, unable to connect to fastcgi server. error.  I
changed it to (5) and did IISRESET, now I have 5 php.exe processes handling
the load, very nice, it seems to work!

"John Lim" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
>
> I can feel your pain. I had this problem too.
>
> The only high performance stable solution for IIS that i know is FastCGI.
>
> See http://php.weblogs.com/fastcgi_with_php_and_iis
>
> John Lim
>
> "Brian" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > PHP 4.3.4 Windows Binary  -  No extensions enabled
> >
> > I have been fighting this battle on a number of servers and finally
found
> > the culprit.
> >
> > PHP4isapi.dll is constantly causing exceptions that eventually after
> awhile
> > cause the HIGH ISOLATED memory websites in IIS 5 to become unstable
where
> it
> > eventually causes the dllhost.exe (high isolated memory for a website)
to
> > start crashing every 6-12 hours and produce the follow error in Event
> Viewer
> > EVENT ID 37
> > Out of process application '/LM/W3SVC/6/Root' terminated unexpectedly.
> >
> >
> > I ran a program called IISSTATE to watch the threads and found that with
> > php4isapi enabled, everytime a PHP script executes, it produces 3
> exceptions
> > (1284.166c): Unknown exception - code 8001010e (first chance)
> > (1284.10e4): Unknown exception - code 8001010e (first chance)
> > (1284.10e4): Unknown exception - code 8001010e (first chance)
> >
> > If I reconfigure IIS to use php.exe, and unload the memory for the site
so
> > that it starts using the new php.exe setting immediately, then the
Unknown
> > Exception message stop being logged by IISState, when I change it back
to
> > use php4isapi.dll, I immediately start receiving these exceptions, 3 at
a
> > time for each time a php script is executed on the server.
> >
> > Anyone know why php4isapi.dll is doing this?  Its the version that came
> with
> > 4.3.4 windows binary zip release.
> >
> > I've reproduced this problem on 3 different webservers.  This has been a
> > problem even with earlier versions before 4.3.4
> >
> > A search on google.com for php4isapi.dll problems results in tons of
> people
> > having similiar issues with it like this one:
> >
> >
>
http://groups.google.com/groups?q=php4isapi.dll+problems&hl=en&lr=&ie=UTF-8&oe=UTF-8&scoring=d&selm=bogd2u%2487f%241%40FreeBSD.csie.NCTU.edu.tw&rnum=3

--- End Message ---

Reply via email to