473,795 Members | 2,861 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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_based ir" 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 1847
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_based ir" 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*******@attgl obal.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...@attg lobal.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_based ir" 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...@attgl obal.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...@attg lobal.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...@attg lobal.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*******@attgl obal.net
=============== ===
Apr 8 '07 #4

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

Similar topics

3
3776
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. Actually i am running a WinME with ActivePerl 5.8.0, what i want to know is 1.What do you mean by "file creation (and deletion) is not atomic over NFS" ?
1
3322
by: Dentharg | last post by:
Hi! How can I rename this tab in Crystal Report Viewer from "Main Report" to something else? Thanks!
4
9811
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). The code snippet that gets repeatedly called is here: ... if os.path.exists(oldPath): os.remove(oldPath) os.rename(newPath, oldPath)
5
5913
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 project for each version of the software is neccessary. How can I do a save as of the entier project? THe option seems to exist to save as the .sln file, but that doesn't bring all the resources, source files, and other files with it. ...
6
2534
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 want to rename a batch of files..Such as I want to rename"1.avi,2.avi" to "Prison BreakS1E1.avi,Prison BreakS1E2.avi" in the same folder..How can I do?
2
2377
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 generated: private void button1_Click(Object sender, EventArgs e) { } To improve readability I want to rename now "button1" to "but_change_set".
5
10809
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 type="text/javascript"> <!-- var theForm = document.forms;
92
3981
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 resource. If we search PHP, all results are programming resource. Second, python also means snake, snake is not a good thing in western culture. Many people dislike any things relevant to snake. We must have high regard for the custom.
2
4005
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 <commands> <command idMso="FileExit" enabled="false"/> </commands> .... but what about renaming it?
0
10216
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10002
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9044
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7543
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6783
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5437
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5565
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3728
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.