473,406 Members | 2,371 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,406 software developers and data experts.

mkdir() in safe_mode

Hy,
i encountered a weird problem on a server running php5, and apache.
Seems like i cannot create folders that end with "/".
for example:
mkdir("test/") will fail
mkdir("test") will work

Is there any issue with mkdir that i don`t know about? or safe_mode
affects this in any way?
The problem is that mkdir is called in lots of different places in the
application, and i`d prefer not to make another function just to strip
the last "/" from the paths...
Feb 25 '08 #1
2 1978
On 25 Feb, 14:29, "_q_u_a_m_i_s's" <qua...@gmail.comwrote:
Hy,
i encountered a weird problem on a server running php5, and apache.
Seems like i cannot create folders that end with "/".
for example:
mkdir("test/") will fail
mkdir("test") will work

Is there any issue with mkdir that i don`t know about? or safe_mode
affects this in any way?
The problem is that mkdir is called in lots of different places in the
application, and i`d prefer not to make another function just to strip
the last "/" from the paths...
Did you think of putting
safe mode mkdir slash
into Google and clicking "I'm Feeling Lucky"?
Feb 25 '08 #2
On Feb 25, 4:47 pm, Captain Paralytic <paul_laut...@yahoo.comwrote:
On 25 Feb, 14:29, "_q_u_a_m_i_s's" <qua...@gmail.comwrote:
Hy,
i encountered a weird problem on a server running php5, and apache.
Seems like i cannot create folders that end with "/".
for example:
mkdir("test/") will fail
mkdir("test") will work
Is there any issue with mkdir that i don`t know about? or safe_mode
affects this in any way?
The problem is that mkdir is called in lots of different places in the
application, and i`d prefer not to make another function just to strip
the last "/" from the paths...

Did you think of putting
safe mode mkdir slash
into Google and clicking "I'm Feeling Lucky"?
thx:) i only looked over the manual , and seemed pretty weird as
mkdir() always worked on the test server.. :D
Feb 25 '08 #3

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

Similar topics

1
by: Henrik Oddershede | last post by:
Hi. I am having a problem with safe_mode in PHP-4.3.2. I was running an Apache-1.3.27 web server on solaris8 with PHP-4.3.1 with safe_mode on - and everything was working fine. Yesterday, I...
0
by: Gerrit Kuilder | last post by:
Hello All, I have the following question: a hosting provider has turned local safe_mode off and the master safe_mode is on. This prevents an application/php script to work. The provider...
1
by: David Ruiz | last post by:
Hi all, I've tried to compile PHP-4.3.3 for a HORDE installation and it requires that PHP is compiled with safe_mode disabled. I compiled it like this: --disable-safe_mode...
2
by: Salmo Bytes | last post by:
I have a script that wants to mirror a directory structure, reading from location1 and writing (mkdir) at location2. This code works fine on a my own desktop test box. But fails at 'mkdir' when...
1
by: Felix Natter | last post by:
hi, I would like to upload a file (via a form), then read that (temporary) file and write the contents into a database. The first problem is that open_basedir=/home/CUSTOMER so I can't just read...
0
by: bedek | last post by:
Hello How to set BASH variable form PHP which is working in "safe_mode" ? .... and to check if it's set for sure ? I find out that I should create directory for binaries in home direcotry of...
1
by: ramc18 | last post by:
My PHP.INI configuration have safe_mode = Off but in local execution it get On. I noticed this strange behaviour with a script that shows an error in move_uploaded_file. I write a minimal script...
30
by: MikeC | last post by:
Good People, I'm writing a backup utility that uses a chdir() to go into the source directory (in which the files reside that I want to back up), so I don't want to use chdir() to get into the...
0
by: Zeilkman | last post by:
Hi everybody, I'm runing LAMP on a Fedora 7 + Plesk server. PHP Version 5.0.4 Apache 2.0 Handler The "local value" of Safe Mode is ON and the "master value" is OFF I try to change the...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.