Search found 15 matches

by cnapsys
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 ...
by cnapsys
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...
by cnapsys
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...
by cnapsys
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
by cnapsys
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...
by cnapsys
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...
by cnapsys
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???
by cnapsys
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?
by cnapsys
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...
by cnapsys
Wed Nov 15, 2006 9:58 am
Forum: PHP - Code
Topic: Checking filesize
Replies: 13
Views: 697

It looks like 5.2 may have a nifty little feature based on YUI: http://progphp.com/progress.phps please excuse my blindness but what is the nifty 5.2 feature there? the nifty little feature in 5.2 is: php_rfc1867_callback From Zend Mailing lists: "php_rfc1867_callback - a callback function cal...
by cnapsys
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...
by cnapsys
Tue Nov 14, 2006 8:51 pm
Forum: PHP - Code
Topic: Checking filesize
Replies: 13
Views: 697

Ambush Commander wrote:I think you're trying to build an upload progress bar: http://www.google.com/search?q=php%20upload%20progress
I think you're right :D
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 :(
by cnapsys
Tue Nov 14, 2006 6:51 pm
Forum: PHP - Code
Topic: Checking filesize
Replies: 13
Views: 697

would there be another way (maybe using a different function)??? to get those intermediate values????
by cnapsys
Tue Nov 14, 2006 6:15 pm
Forum: PHP - Code
Topic: Checking filesize
Replies: 13
Views: 697

Hi feyd,
yeah I know how to get the initial filesize().
What I'm trying to do is get several values of the filesize of the file that is being written.
by cnapsys
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...