473,405 Members | 2,373 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Restrictions using "rename"

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!

Apr 7 '07 #1
3 1824
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.
js*******@attglobal.net
==================
Apr 7 '07 #2

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.netwrote:
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
==================

Apr 8 '07 #3
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.netwrote:
>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.
js*******@attglobal.net
==================
Apr 8 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Hugz | last post by:
Hello, And Thank you for taking time to help me.Myself Hugz.I am new to perl and want to write my own Scripts.But i can't understand how perl "rename" function and "file locking" works. ...
1
by: Dentharg | last post by:
Hi! How can I rename this tab in Crystal Report Viewer from "Main Report" to something else? Thanks!
4
by: Russell Warren | last post by:
I've been having a hard time tracking down a very intermittent problem where I get a "permission denied" error when trying to rename a file to something that has just been deleted (on win32). ...
5
by: Matt S. | last post by:
I have been using C# 2005 Express to make class libraries for use in another software program. Each version of this software has a different .NET API, so maintaining multiple solutions of the same...
6
by: shuaishuaiyes | last post by:
Hello everyone... I'm a Chinese student and my English is very poor...So excuse me if I make grammar mistake. I want to ask some questions about "rename". I'm a beginner, so my C ..... :) I...
2
by: Ole Mercano | last post by:
When I create in Designer a new button on my Form it is automatically named e.g. "button1". When I doubleclick on it I am directed to the Form.cs where the following procedure is automatcially...
5
by: Nathan Sokalski | last post by:
I have an ASP.NET application which is giving the following JavaScript error: 'theForm' is undefined However, when I do a View Source one of the <scriptelements is as follows: <script...
92
by: ureuffyrtu955 | last post by:
Python is a good programming language, but "Python" is not a good name. First, python also means snake, Monty Python. If we search "python" in google, emule, many results are not programming...
2
by: dstork | last post by:
Anyone know how to rename the "Exit Access" command at the bottom of the Office menu. I'd like to rename it to "Exit" as I had done in previous versions of Access. I know I can disable it with ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.