SunQuest
 
           General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
  #1  
Old January 28th, 2003, 02:01 AM
truedos truedos is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Posts: 4 truedos User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
FTP or File functions.

Hi all.

I am working in a small WEB Content Management System (an application that let you work on files online without using any WYSIWYG or FTP client) but the browser.

I don't know which way should I follow, FTP functions or the File functions. Or should I depend on both.?

FTP function in PHP can't do everything. For example, there is no FTP function that do change mode (chmod). On the other hand, if you choose to work with the file functions, you have choosen the harder way.

Can anybody guide me?

Thx.

Last edited by truedos : January 28th, 2003 at 02:11 AM.

Reply With Quote
  #2  
Old January 28th, 2003, 09:15 AM
Taelo Taelo is offline
5B's
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Location: PC, FL
Posts: 364 Taelo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 48 m 26 sec
Reputation Power: 6
$_FILE[] = hard???

copy($path, $file);



man that was hard,...
__________________
-- Jason

Reply With Quote
  #3  
Old January 28th, 2003, 03:10 PM
ramz ramz is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Location: Juiz de Fora - MG- Brazil
Posts: 93 ramz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Send a message via ICQ to ramz Send a message via MSN to ramz
Hi!
You can use the file mode (I've included a class that I've made for handling files...) but I suggest you to keep the content in a database, like MySQL, PostgreSQL, MS-SQL... By doing this you will have a more organized structure and will need to look in just one place...
__________________
Regards,
Ramiro Varandas Jr.

Reply With Quote
  #4  
Old January 29th, 2003, 12:48 AM
truedos truedos is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Posts: 4 truedos User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
thx,

I think I don't need to store the files information in the database since this is realy hard if somebody has more than 5000 files in his site (I am doing a public application CMS). It is possible in MySQL but this will reduce the load time of the site...

One more thing, is there is any disadvantages or security holes for using the FTP functions? I think if I do authintication, everything would be secure, right?

Thank you..

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > FTP or File functions.


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 | 
  
 

Iron Speed




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