The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
make directory
Hi,
I'm looking for something that can check to see if a directory exists titled $bbuserinfo['username'] and if not create a directory named $bbuserinfo['username'] after the currently browsing user. I'm okay with php but I've never worked with directories before. At least not creating them. I'm reviewing php.net on it but if someone could give me some helpful tips I'd appreciate it. The directories will simply store images. |
#2
|
|||
|
|||
Hello,
I'm doing the same thing with vbspace, some functions that may help you are 1.) opendir() - much like fopen, it returns a directory handle 2.) mkdir() - has two parameters, the path to the new directory, and two the permissions it will take. mkdir is a difficult functions, sometimes I set permissions and I get a completely different permisson. I'm currently trying to figure out exactly what im doing wrong. Hope that helps... |
#3
|
|||
|
|||
I think you can also use if_exists() to check if it ....exists.
|
#4
|
|||
|
|||
You can also test if opendir() returns false, and if it does, run mkdir().
That's how I do it atleast.. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|