News:

The "Support Requests" forum is now viewable by guests.

Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - J-Factor

#1
Thanks, that worked.

I read on php.net that mkdir() defaults the chmod to 0777. Weird.
#2
Hi.

I was playing with the idea of making an admin php script to automate adding content to my site. However, all of the files that I upload using my script are no longer able to be modified by me (either using FTP or the FreePgs online file manager).

My FreePgs username is jfactor. Could an admin please modify the permissions of these directories (and contained files) to allow me to access them:

/dat/soul+fighter/
/dat/transition/
/dat/test/


Also, has anyone else implemented this kind of system successfully? Here's a chunk of my script:

// Create directory
mkdir("/fpgs/fpgshttpd/jfactor/dat/$dir");

// Upload zip
if (is_uploaded_file($_FILES['file_zip']['tmp_name']))
	
{
	
move_uploaded_file($_FILES['file_zip']['tmp_name'],"/fpgs/fpgshttpd/jfactor/dat/$dir/".$_FILES['file_zip']['name']);
	
}


Mostly pieced together from a few online examples and does't have any security implace (other than being placed in a password'd directory). Anything wrong with it? I assume the problem is the fact that I'm uploading to the 'root' directory, but this was the solution given to someone else in a topic I found with the search.