FTP Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationFTP Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
  #1  
Old March 10th, 2004, 09:24 AM
aepstar aepstar is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 12 aepstar User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 53 sec
Reputation Power: 0
mkdir nor ftp api can change the chmod

I have a shared account on unix server. safe_mod is on, whatever it may be...

if u need phpinfo.php let me know. i dont know if it is safe to display it???

okay heres the problem. all my files and folders have chmod 644. if i alter 1 dir the all dir chmods are altered. lets say that i altered chmod to 755. when i log out and login then all the dirs are 644 again?

now via php/browser

PHP Code:
 umask(0);
mkdir("dir1"0755); 


it does not work. the chmod is 644 when i check it via ftp client.

okay then lets try via php ftp api:

PHP Code:
// create directory through FTP connection
$path "/var/www/html/";
$server='ftp.mysite.com'// ftp server
$connection ftp_connect($server); // connection
$user "login";
$pass "pass1234";
$result ftp_login($connection$user$pass); 


ftp_chdir($connection$path); // go to destination dir
ftp_mkdir($connection$folder);
if (
ftp_site($connection"CHMOD 777 $path/$folder")) { echo "yes"; } 
else { echo 
"no"; } 

// yes is printed so the chmod is set succesfully
ftp_close($connection); // close connection 


then i go to my site through ftp and i see that the dir that i created seconds ago with php ftp api has the chmod of 644

i am really desperate.

seems like problem is that when i log in via ftp client to my site that all the dirs are set to 644.

help

Reply With Quote
  #2  
Old March 10th, 2004, 09:32 AM
aepstar aepstar is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 12 aepstar User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 53 sec
Reputation Power: 0
Seems like the WS_FTP lite was the problem maker.

Downloaded Cute FTP, and now "everything works".

Yet, I would like to now why WS FTP lite messed it up?

Reply With Quote
  #3  
Old March 10th, 2004, 09:34 AM
lnxgeek lnxgeek is offline
I AM A GOLDEN GOD
Dev Shed God (5000 - 5499 posts)
 
Join Date: Apr 2003
Location: cannot find symbol: method showLocation()
Posts: 5,394 lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level)lnxgeek User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 1 Month 3 Days 10 h 33 m 58 sec
Reputation Power: 685
Quote:
safe_mod is on, whatever it may be...

Well, you could actually read about it in the PHP manual...
__________________
BookMooch.com : Give books away. Get books you want.

Reply With Quote
  #4  
Old March 10th, 2004, 09:50 AM
aepstar aepstar is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 12 aepstar User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 53 sec
Reputation Power: 0
I know the difference between WS FTP lite and Cute FTP.

When u right click on folder in ws ftp and then select chmod, what u see are not the actual chmod settings, they are just default setings. to see the real settings u have to use dir info button


WHEREAS in Cute FTP if u right click on a folder and then select chmod u will see a window popping up where then CHMOD settings DO REPRESENT the current chmod settings of the folder.

guess thats why on download.com Cute FTP is number one ftp client.

but i still like ws ftp...

amen

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationFTP Help > mkdir nor ftp api can change the chmod


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway