Search found 15 matches
- Fri Sep 23, 2011 4:46 pm
- Forum: Linux
- Topic: php permissions
- Replies: 3
- Views: 5845
Re: php permissions
Hey chris, thanks for taking the time to post. I'm still a bit confused though. Isn't the whole idea of running php as fascgi to make php scripts run as the domainadmin and not as an apache module? Or are you just saying I should drop that idea and continue to use it as an apache module and add the ...
- Fri Sep 23, 2011 2:20 pm
- Forum: Linux
- Topic: php permissions
- Replies: 3
- Views: 5845
php permissions
Hey all, I may have posted this in the wrong section at first... I'm having a bit of a problem trying to set up a custom php script. Here's what's going on: I have an upload script that allows registered users to upload files to a temp /upload/ directory. Upon review from admins the files need to be...
- Thu Sep 22, 2011 3:10 pm
- Forum: PHP - Security
- Topic: php permissions
- Replies: 5
- Views: 4996
Re: php permissions
after further digging and troubleshooting I'm even more confused... the script file copy.php is owned by 'domainadmin' and the group is 'psacln' chmod 644 the dest folder is owned by 'domainadmin' and the group: 'psacln' chmod 755 I switched php from apache module to fastcgi. restarted apache and tr...
- Thu Sep 22, 2011 1:15 pm
- Forum: PHP - Security
- Topic: php permissions
- Replies: 5
- Views: 4996
Re: php permissions
hey greg,
so how do I set apache/php as the owner of that /dest/ directory?
would this work even if that directory is above the web root? will php still be able to read/write to that directory???
thanks for your help
c
so how do I set apache/php as the owner of that /dest/ directory?
would this work even if that directory is above the web root? will php still be able to read/write to that directory???
thanks for your help
c
- Wed Sep 21, 2011 4:33 pm
- Forum: PHP - Security
- Topic: php permissions
- Replies: 5
- Views: 4996
Re: php permissions
hey Greg thanks for your quick reply. setup is: dedicated box running RHEL with Plesk. Plesk creates and manages vhosts from my understanding. each new account is created with and controlled by plesk. each file uploaded thru ftp is owned by the domain admin used and the group is called 'psacln'. the...
- Wed Sep 21, 2011 3:53 pm
- Forum: PHP - Security
- Topic: php permissions
- Replies: 5
- Views: 4996
php permissions
Hey all, I'm having a bit of a problem trying to set up a custom php script. Here's what's going on: I have an upload script that allows registered users to upload files to a temp /upload/ directory. Upon review from admins the jpegs need to be copied to another folder. At first I had a problem with...
- Thu Aug 25, 2011 12:54 am
- Forum: PHP - Code
- Topic: move file from domain to subdomain
- Replies: 3
- Views: 315
Re: move file from domain to subdomain
after further digging it seems to be an open_basedir restriction.
is there a way to get around this without having to disable open_basedir???
is there a way to get around this without having to disable open_basedir???
- Wed Aug 24, 2011 7:52 pm
- Forum: PHP - Code
- Topic: move file from domain to subdomain
- Replies: 3
- Views: 315
Re: move file from domain to subdomain
it returns a 2047... no clue what that is... any ideas?
- Wed Aug 24, 2011 4:49 pm
- Forum: PHP - Code
- Topic: move file from domain to subdomain
- Replies: 3
- Views: 315
move file from domain to subdomain
Hey all, can anyone give me any pointers on how can I move a file from the main domain to a subdomain. I've tried copy() and it didn't work. I thought it was just a folder permission thing but after setting the destination folder to chmod 777 it still didnt work. error reporting is turned off so I c...
- Wed Nov 15, 2006 9:58 am
- Forum: PHP - Code
- Topic: Checking filesize
- Replies: 13
- Views: 697
- Tue Nov 14, 2006 9:47 pm
- Forum: PHP - Code
- Topic: Checking filesize
- Replies: 13
- Views: 697
The way you're trying to do it, the file has already finished uploading in its entirety. trust me feyd. I got that from your first reply regarding the move_uploaded_file :) I was just trying some work arounds and then I tried the curent progress meters found on google, but I'm not happy with any of...
- Tue Nov 14, 2006 8:51 pm
- Forum: PHP - Code
- Topic: Checking filesize
- Replies: 13
- Views: 697
I think you're rightAmbush Commander wrote:I think you're trying to build an upload progress bar: http://www.google.com/search?q=php%20upload%20progress

however, I was trying to do it somewhat different from what's out there.
At this point anything would be helpful.
iframes/javascript/ anything

I give up

- Tue Nov 14, 2006 6:51 pm
- Forum: PHP - Code
- Topic: Checking filesize
- Replies: 13
- Views: 697
- Tue Nov 14, 2006 6:15 pm
- Forum: PHP - Code
- Topic: Checking filesize
- Replies: 13
- Views: 697
- Tue Nov 14, 2006 6:09 pm
- Forum: PHP - Code
- Topic: Checking filesize
- Replies: 13
- Views: 697
Checking filesize
Hi guys, I'm having trouble building this script. I'm trying to check the file size of the temp file multiple times. Here's what I've tried so far: if(move_uploaded_file($_FILES['userfile']['tmp_name'], $target_path)) { for($i=0; $i<=10; $i++) { $cksize = filesize($_FILES['userfile']['tmp_name']); e...