You are here: Re: Restrictions using "rename" « PHP Programming Language « IT news, forums, messages
Re: Restrictions using "rename"

Posted by Jerry Stuckle on 04/08/07 03:23

Luciano wrote:
> I use Windows. Despite my interest in using Linux, it has not been
> possible up to now. I am blind and softwares for blinds in Linux don't
> reach the same level yet.
>
> I don't know if Windows is restricting the access for that folder. In
> respect to Apache, I don't know. How Could I verify the its settings?
> In Apache, how could I give the permission for the Apache user?
>
> "Perhaps, I'm not acquainted with this page, for that reason, I am not
> sure if I pasted the message in the right place. I hope yes!"
>
> Luciano de Souza
>
>
>
> On 7 abr, 16:25, Jerry Stuckle <jstuck...@attglobal.net> wrote:
>> Luciano wrote:
>>> I have been programing in PHP recently. For this reason, I have lots
>>> of basic doubts. Let's see one of then. I'm developing in the
>>> localhost, so safety issues are not important. I have a script trying
>>> to rename some local files, however, PHP reports an error. I don't
>>> have permission to access that folder, therefore, it's not possible
>>> to do this task.
>>> I'm using pHP as a module of Apache (Apache2Triad). The variable
>>> "open_basedir" in PHP.INI is empty. I don't know what to do to get the
>>> permission.
>>> By the way, I would like to have the power of doing everything with
>>> PHP, without the safety restrictions. however, I don't know which
>>> lines I should change.
>>> If someone can help me, thanks very much!
>> This generally means the OS security is restricting access, not PHP.
>> What OS are you using? And does the Apache user have access to the
>> directories and files in question?
>>
>> --
>> ==================
>> Remove the "x" from my email address
>> Jerry Stuckle
>> JDS Computer Training Corp.
>> jstuck...@attglobal.net
>> ==================
>
>

Luciano,

Apache doesn't set the permissions. Your operating system (Windows)
does, and it's all based on user id's.

You said Windows - but there are at least 4 versions of windows current.
And each one is different in some respects.

But if this is the problem (and it's where I would start looking), it's
a Windows admin problem - and you need to be asking in a Windows admin
group. In this case PHP isn't the "problem" - it's only suffering the
effects.

Of course, other things are always possible, and I'm not saying they
aren't. But my experience indicates a high proportion of them are
because people don't understand the security features of the OS they are
using.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация