Re: [PHP] upload via FTP

2004-11-09 Thread raditha dissanayake
Alessandro Rosa wrote:
That's even more confusing. You run php scripts off a
web server and not an FTP server.
   

Ok ... the server I'm dealing with works for both services.
But let me re-explain the question in new terms.
I have a bunch of php scripts on a web server.
I just wanted to know if it is possible to deny access
permissions for some of such scripts to a public user
but not to other scripts staying on the same server.
 

I see. In that case though this is not a php problem. This is a problem 
about setting the right permissions on your file system - for which you 
will need to refer to the documentation for chown and chmod. Your FTP 
server may also have what is known as a 'chroot'  mode where users will 
be prevented from browsing outside their home folder.

Having said all that we had a big discussion about a month ago on 
protecting scripts on a shared server and the generall consensus was 
that there is always a loop hole.

Alessandro Rosa
 


--
Raditha Dissanayake.

http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload
Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
Graphical User Inteface. Just 128 KB | with progress bar.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] upload via FTP

2004-11-09 Thread Jason Wong
On Tuesday 09 November 2004 11:10, Alessandro Rosa wrote:
> > That's even more confusing. You run php scripts off a
> > web server and not an FTP server.
>
> Ok ... the server I'm dealing with works for both services.
> But let me re-explain the question in new terms.
>
> I have a bunch of php scripts on a web server.
> I just wanted to know if it is possible to deny access
> permissions for some of such scripts to a public user
> but not to other scripts staying on the same server.

It's still not clear what you are describing/asking.

I'll assume that by 'public user' you mean via FTP. If so then most ftp 
servers will allow you to restrict access to specified directories.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
I have a terrible headache,  I was putting on toilet water and the lid fell.
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] upload via FTP

2004-11-09 Thread Alessandro Rosa
> That's even more confusing. You run php scripts off a
> web server and not an FTP server.

Ok ... the server I'm dealing with works for both services.
But let me re-explain the question in new terms.

I have a bunch of php scripts on a web server.
I just wanted to know if it is possible to deny access
permissions for some of such scripts to a public user
but not to other scripts staying on the same server.

Alessandro Rosa

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] upload via FTP

2004-11-09 Thread raditha dissanayake
Alessandro Rosa wrote:
Your question is not very clear. Do you mean to say you only want your 
FTP server to be accessible by your php scripts? If so the trick is to 
listen only on localhost and not on the public ip.

   

No, only some of the scripts shall be
accessible by other scripts in the FTP server.
 

That's even more confusing. You run php scripts off a web server and not 
an FTP server.

Alessandro Rosa
 


--
Raditha Dissanayake.

http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload
Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
Graphical User Inteface. Just 128 KB | with progress bar.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] upload via FTP

2004-11-09 Thread Alessandro Rosa
> Your question is not very clear. Do you mean to say you only want your 
> FTP server to be accessible by your php scripts? If so the trick is to 
> listen only on localhost and not on the public ip.
> 

No, only some of the scripts shall be
accessible by other scripts in the FTP server.

Alessandro Rosa

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] upload via FTP

2004-11-08 Thread raditha dissanayake
Alessandro Rosa wrote:
Dear all subscribers,
I'm coding a send-mail form, also including
edit boxes keeping the path of files to be uploaded
from the remote host onto an FTP server.
Is there the possibility (and if so, which ones) to
manage FTP permissions to have a file including
the variable with ID and PSW (for FTP access)
and which is usable
by the code running on the server exclusively but
cannot be accessed by any other user?
Alessandro
 

Your question is not very clear. Do you mean to say you only want your 
FTP server to be accessible by your php scripts? If so the trick is to 
listen only on localhost and not on the public ip.


--
Raditha Dissanayake.

http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload
Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
Graphical User Inteface. Just 128 KB | with progress bar.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] upload via FTP

2004-11-08 Thread Alessandro Rosa
Dear all subscribers,

I'm coding a send-mail form, also including
edit boxes keeping the path of files to be uploaded
from the remote host onto an FTP server.

Is there the possibility (and if so, which ones) to
manage FTP permissions to have a file including
the variable with ID and PSW (for FTP access)
and which is usable
by the code running on the server exclusively but
cannot be accessed by any other user?

Alessandro