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:
  #1  
Old April 14th, 2002, 05:53 PM
teknoart teknoart is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2002
Posts: 50 teknoart User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
ftp question

What is the best way, to find out the directory, where web documents stored, on a .nix web server?
I need that, because I want to install my application files on clients web server directly and automatically from my web server using ftp.

Reply With Quote
  #2  
Old April 14th, 2002, 07:29 PM
AlCapone's Avatar
AlCapone AlCapone is offline
Mobbing Gangster
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Sep 2001
Location: "Best City" 2002 and 2003- Melbourne, Australia
Posts: 4,913 AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 5 h 36 m 31 sec
Reputation Power: 17
Send a message via ICQ to AlCapone Send a message via AIM to AlCapone Send a message via Yahoo to AlCapone
You'll need to connect manually and look some something like 'public_html' or 'htdocs' or something that'll resemble web files folder. Of course, you could write script to do that, but you can't really think of all the possibilities there're to name web folder.
__________________
And you know I mean that.

Reply With Quote
  #3  
Old April 15th, 2002, 06:43 AM
teknoart teknoart is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2002
Posts: 50 teknoart User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
thanks

Thanks AlCapone,

Calling the web site with the domain name, like www.someweb.com and finding out the exact location of the served page, say index.html. That was my plan. Better to explain, some function what ftp_pwd while using ftp does. Is it not possible?

Reply With Quote
  #4  
Old April 15th, 2002, 11:19 AM
AlCapone's Avatar
AlCapone AlCapone is offline
Mobbing Gangster
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Sep 2001
Location: "Best City" 2002 and 2003- Melbourne, Australia
Posts: 4,913 AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level)AlCapone User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 5 h 36 m 31 sec
Reputation Power: 17
Send a message via ICQ to AlCapone Send a message via AIM to AlCapone Send a message via Yahoo to AlCapone
Is this possible? yes. Is it reliable? no.
It depends strictly on ftp server whether or not to show full path to the dir (or use ftp root dir as / for ftp users). However, it is possible to see full path name for http files, just use __FILE__ in php. But again, that will require you to upload file through ftp, and how is that different from connecting and checking manually.

Reply With Quote
  #5  
Old April 15th, 2002, 05:54 PM
teknoart teknoart is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2002
Posts: 50 teknoart User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Hi again AlCapone,

I have decided to do the followings,

I have created a spioner file, which includes
getenv("DOCUMENT_ROOT");
and send the path to my installation manager file.
I will ask the customer to send it to his/her web server manually, and run that to begin the installation.
Than I will be able to ftp upload application files automatically to the web folder.

So the solution is half automatically.

Thanks for your help.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationFTP Help > ftp question


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 6 hosted by Hostway