TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   General (http://www.talkphp.com/general/)
-   -   mkdir() error (http://www.talkphp.com/general/2885-mkdir-error.html)

Jmz 06-03-2008 12:23 PM

mkdir() error
 
I'm trying to create a folder using a php script but I'm getting an error saying:

Quote:

Warning: mkdir() [function.mkdir]: open_basedir restriction in effect. File(/users/22) is not within the allowed path(s): (/home/jmz360:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp) in /home/jmz360/public_html/play/photo/activate.php on line 65
The code I'm using to create the folder is:
PHP Code:

mkdir("/users/".$UserID.""0777); 

Am I doing something wrong?

Jmz 06-03-2008 12:27 PM

Scrap that lol. The first "/" before users was the problem. Silly me.

sarmenhb 06-17-2008 02:45 AM

you can also do


<?php

system("mkdir foldername");

?>


All times are GMT. The time now is 08:59 AM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0