PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.php > mkdir() in safe_mode
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
mkdir() in safe_mode

Réponse
 
LinkBack Outils de la discussion
Vieux 25/02/2008, 14h29   #1
_q_u_a_m_i_s's
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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...
  Réponse avec citation
Vieux 25/02/2008, 14h47   #2
Captain Paralytic
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: mkdir() in safe_mode

On 25 Feb, 14:29, "_q_u_a_m_i_s's" <qua...@gmail.com> wrote:
> 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"?
  Réponse avec citation
Vieux 25/02/2008, 14h55   #3
_q_u_a_m_i_s's
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: mkdir() in safe_mode

On Feb 25, 4:47 pm, Captain Paralytic <paul_laut...@yahoo.com> wrote:
> On 25 Feb, 14:29, "_q_u_a_m_i_s's" <qua...@gmail.com> wrote:
>
> > 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..
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 12h48.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,08114 seconds with 11 queries