LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 03-13-2005, 10:30 AM   #1
collen
Member
 
Registered: Jun 2003
Location: /
Distribution: Fedora/Debian
Posts: 86

Rep: Reputation: 15
php/ftp overwriting files.. prob.


i'm setting up an intranet with a php-ftp connection to up and download files.
it works fine, except for the following:

the idea is not to beable to overwrite files..
so how can i setup an ftp connection, witch probit overwriting files.?
but will be able to write new files..

i use vsftpd and php 4.3.8.
now i do a simple 'ftp_put' to upload the files..

i didn't find anny good intel on howto disable overwriting.
it doen't matter to disable it on ftp-server or with php, both are ok?
does someone know how to pull this off..?

Thx
Collen.
 
Old 03-14-2005, 04:56 AM   #2
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,607

Rep: Reputation: 135Reputation: 135
You could set the permission of the files to read only with
PHP Code:
ftp_site($conn'CHMOD 0444 /path/to/file'); 
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
php 4.2 - 4.3 update prob globeTrotter Programming 2 12-10-2004 04:22 AM
PHP +Mysql prob Master Fox Linux - Software 2 10-31-2004 07:43 AM
PHP -- How to execute a shell script from PHP using FTP functions?? zoonalex Programming 3 07-29-2004 11:51 AM
ftp up/download permission prob Stex Linux - Networking 6 10-03-2003 01:23 PM
how can I restrict ftp users listing files from a pure-ftp server adrianmak Linux - Networking 2 12-31-2002 08:23 AM


All times are GMT -5. The time now is 11:48 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration