php-windows Digest 22 Aug 2013 06:33:37 -0000 Issue 4144

Topics (messages 31144 through 31150):

Folder permissions required to create/copy files in/into it during PHP 
script/code execution?
        31144 by: Jacob Kruger
        31147 by: Jacob Kruger
        31148 by: Jacob Kruger

Re: WinCache 1.3.5 release on SourceForge
        31145 by: Eric Stenson
        31146 by: Eric Stenson
        31149 by: Jan Ehrhardt
        31150 by: Tomasz Krawczyk

Administrivia:

To subscribe to the digest, e-mail:
        php-windows-digest-subscr...@lists.php.net

To unsubscribe from the digest, e-mail:
        php-windows-digest-unsubscr...@lists.php.net

To post to the list, e-mail:
        php-wind...@lists.php.net


----------------------------------------------------------------------
--- Begin Message ---
I have got a /images folder, and I want to sometimes copy uploaded files from 
the temp path - using their temp_name file names, which works for other things, 
to then copy them into this folder in the root of the website, and renaming 
them at the same time to a name based on time() . rand(1, 10), etc.

Now the file name generation works well enough, but, seems like no matter what 
permissions I set for that folder, for group, owner and public, where have even 
tried turning on all 3 of read, write and execute, using fileZilla - current 
permissions value ends up rendering as 766 - am guessing that 6 = rwe, but not 
ownership? - but, can't copy the files in there at runtime, and when also tried 
creating a test script, to just create a text file in that folder, and write to 
it, get same error message in server log:

PHP Warning:  copy(../images/13770956916.png): failed to open stream: 
Permission denied

and

failed to open stream: Permission denied

Is this possibly to do with it being a linux server, running Apache 2.0, or, 
the name of the folder /images, or am I missing something 'obvious' here?

TIA, for any thoughts/ideas on what to try change

Jacob Kruger
Blind Biker
Skype: BlindZA
'...fate had broken his body, but not his spirit...'

--- End Message ---
--- Begin Message --- Ok, might have now fixed this - firstly set folder permissions to 777, but, then, again, turned off public execute permissions, which seemed to revert permissions to 776, but, creating the text file, using the test script still worked - but, still just wondering what the specific permission difference/recommendation is/should be?

Stay well

Jacob Kruger
Blind Biker
Skype: BlindZA
'...fate had broken his body, but not his spirit...'

----- Original Message ----- From: "Jacob Kruger" <ja...@blindza.co.za>
To: <php-wind...@lists.php.net>
Sent: Wednesday, August 21, 2013 5:05 PM
Subject: [PHP-WIN] Folder permissions required to create/copy files in/into it during PHP script/code execution?


I have got a /images folder, and I want to sometimes copy uploaded files from the temp path - using their temp_name file names, which works for other things, to then copy them into this folder in the root of the website, and renaming them at the same time to a name based on time() . rand(1, 10), etc.

Now the file name generation works well enough, but, seems like no matter what permissions I set for that folder, for group, owner and public, where have even tried turning on all 3 of read, write and execute, using fileZilla - current permissions value ends up rendering as 766 - am guessing that 6 = rwe, but not ownership? - but, can't copy the files in there at runtime, and when also tried creating a test script, to just create a text file in that folder, and write to it, get same error message in server log:

PHP Warning: copy(../images/13770956916.png): failed to open stream: Permission denied

and

failed to open stream: Permission denied

Is this possibly to do with it being a linux server, running Apache 2.0, or, the name of the folder /images, or am I missing something 'obvious' here?

TIA, for any thoughts/ideas on what to try change

Jacob Kruger
Blind Biker
Skype: BlindZA
'...fate had broken his body, but not his spirit...'


--- End Message ---
--- Begin Message ---
And, from the following page:
http://www.zzee.com/solutions/linux-permissions.shtml

0 All types of access are denied
1 Execute access is allowed only
2Write access is allowed only
3 Write and execute access are allowed
4 Read access is allowed only
5 Read and execute access are allowed
6 Read and write access are allowed
7 Everything is allowed

Jacob Kruger
Blind Biker
Skype: BlindZA
'...fate had broken his body, but not his spirit...'

----- Original Message ----- From: "Jacob Kruger" <ja...@blindza.co.za>
To: <php-wind...@lists.php.net>
Sent: Wednesday, August 21, 2013 5:34 PM
Subject: Re: [PHP-WIN] Folder permissions required to create/copy files in/into it during PHP script/code execution?


Ok, might have now fixed this - firstly set folder permissions to 777, but, then, again, turned off public execute permissions, which seemed to revert permissions to 776, but, creating the text file, using the test script still worked - but, still just wondering what the specific permission difference/recommendation is/should be?

Stay well

Jacob Kruger
Blind Biker
Skype: BlindZA
'...fate had broken his body, but not his spirit...'

----- Original Message ----- From: "Jacob Kruger" <ja...@blindza.co.za>
To: <php-wind...@lists.php.net>
Sent: Wednesday, August 21, 2013 5:05 PM
Subject: [PHP-WIN] Folder permissions required to create/copy files in/into it during PHP script/code execution?


I have got a /images folder, and I want to sometimes copy uploaded files from the temp path - using their temp_name file names, which works for other things, to then copy them into this folder in the root of the website, and renaming them at the same time to a name based on time() . rand(1, 10), etc.

Now the file name generation works well enough, but, seems like no matter what permissions I set for that folder, for group, owner and public, where have even tried turning on all 3 of read, write and execute, using fileZilla - current permissions value ends up rendering as 766 - am guessing that 6 = rwe, but not ownership? - but, can't copy the files in there at runtime, and when also tried creating a test script, to just create a text file in that folder, and write to it, get same error message in server log:

PHP Warning: copy(../images/13770956916.png): failed to open stream: Permission denied

and

failed to open stream: Permission denied

Is this possibly to do with it being a linux server, running Apache 2.0, or, the name of the folder /images, or am I missing something 'obvious' here?

TIA, for any thoughts/ideas on what to try change

Jacob Kruger
Blind Biker
Skype: BlindZA
'...fate had broken his body, but not his spirit...'


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




--- End Message ---
--- Begin Message ---
From: Pierre Joye [mailto:pierre....@gmail.com] 
>
> What's about pecl? The repository
> (http://svn.php.net/viewvc/pecl/wincache) and the web
> part misses updates, package releases and tags, etc. 
> http://pecl.php.net/pecl. Any plan to sync them? Feel
>  free to ping me on lync if you need help here 
> :)

Ah, I'd just done all the work in 'trunk'.  I'll have to 
review my notes and remember how to make a tag in SVN, 
and how to make the *.tgz for http://pecl.php.net/package/WinCache.

If you have notes handy on how to do these tasks, please send 
them to me (directly) and I'll take care of it shortly.

Thx!
    --E.


--- End Message ---
--- Begin Message ---
-----Original Message-----
From: Tomasz Krawczyk [mailto:tomkr...@gmail.com] 
>
> Can you tell when sources will be available on the 
> http://pecl.php.net/package/wincache?

Yeah, as soon as I remember how to do this, I'll take care of it.  ^_^

>
> Another question. Are you planing to make x64 version?
> PHP 5.5 is ready for x64 and a lot of people is interested in.

We do not have an official build of x64 at this time.  I'm not
at liberty to discuss forward looking statements regarding x64
support.  We are aware that there is keen interest from customers
regarding x64 support, and we are evaluating the required effort
to add x64 support to WinCache.

Thank you for your interest!

    --E. 

--- End Message ---
--- Begin Message ---
Tomasz Krawczyk in php.windows (Wed, 21 Aug 2013 08:55:01 +0200):
>Another question. Are you planing to make x64 version? PHP 5.5 is ready 
>for x64 and a lot of people is interested in.

Just try it:
http://www.apachelounge.com/viewtopic.php?t=5520

The NTS x64 version contains php_wincache.dll. If you really need it I
can compile it with a ucachesize of up to 2046MB, And, no that 2046 is
no typo.

Jan

--- End Message ---
--- Begin Message ---
W dniu 2013-08-21 17:11, Eric Stenson pisze:
-----Original Message-----

     --E.

Eric,

thanks for an answer.

You wrote Zend Opcache has to be enabled in PHP 5.5 so, it is an extension, not part of the PHP core, but it is bundled with PHP 5.5.

I have no experience with Zend Opcache. About 2 years ago I made some tests on IIS6 & FastCGI and WinCache was the fastest PHP accelerator. Faster than APC, eAccelarator and XCache. Are you sure you will have to remove opcode cache from WinCache in the future?

Tomek


--- End Message ---

Reply via email to