Create a file in the application

Pre-sales questions for phpBB 3 forum hosting script.
Post Reply
armada2600
Posts: 1
Joined: 02 Aug 2010, 13:58

Create a file in the application

Post by armada2600 » 02 Aug 2010, 14:15

hello

Excuse the English is so bad.

I want to install the gallery in addition, have done well so far.
only create problems in the file

The folders are all created:

Code: Select all

// create directories for a forum
function hs_forum_dirs($name = false, $extended = false)
{
    $dirs = array(
    	HS_ROOT . '../cache/{FORUM}',               // for cache
        HS_ROOT . '../uploads/{FORUM}',
	    HS_ROOT . '../uploads/{FORUM}/avatars',     // avatars
	    HS_ROOT . '../uploads/{FORUM}/images',      // imageset stuff
	    HS_ROOT . '../uploads/{FORUM}/smilies',     // smilies
	    HS_ROOT . '../files/{FORUM}',               // uploads
	    HS_ROOT . '../gallery/{FORUM}',               // gallery

	);
	if($name === false)
	{
	    return $dirs;
    }

	$mask = @umask(0);
	for($i=0; $i<count($dirs); $i++)
	{
	    $dirs[$i] = str_replace('{FORUM}', $extended ? hs_forum_cache_dir($name) : $name, $dirs[$i]);
	    hs_forum_mkdir($dirs[$i], defined('HS_CACHE_CHMOD_DIRS') ? HS_CACHE_CHMOD_DIRS : 0777);
    }
	@umask($mask);
	return $dirs;
}
copy("../gallery/test.txt","../gallery/{FORUM}/test2.txt");

PHPBBHS
Posts: 1097
Joined: 30 Jun 2009, 20:15
Hosted Forums: 0

Re: Create a file in the application

Post by PHPBBHS » 02 Aug 2010, 15:37

Please post in the customer forums
http://www.phpbbhs.com/forum/viewforum.php?f=5

You can gain access to the customer forums my the user cp on phpbbhs.com you need to enter your forum username

Gingerennis
Posts: 1
Joined: 01 Oct 2019, 02:49

Re: Create a file in the application

Post by Gingerennis » 01 Oct 2019, 02:49

Create a file in the application, Some people get trouble in doing it because they just not understand what they do in this time. I just tell you the exect www.resumesservicesreview.com/resumewritingservice-biz-review meaning which is related and to show it on the page where you know how to create a file in application and how can you use it for you.

Post Reply