View Full Version : FTP, uploading etc.


Preacher_X
08-12-04, 07:16 PM
...

Stryder
08-13-04, 07:57 AM
When working with HTML and HREF/SRC locations (URLS or images) you have to understand how they are written.

There are two types, Relative and [/b]Absolute[/b].

Relative as the name sake suggests, is where the location is relative to the position of the page you're coding it to. for instance:


/public_html
/logs
/logs/log.html
/images
/images/test.gif
index.html

above is a example layout of how your website might be, you might have a public_html folder where your index.html page exists and a few other folders like images and logs.

Firstly, most servers will set your public_html folder as your root folder. This means folders below that should not be viewable by the public through the server.

[Note: public_html is used with webspace providers that have multiple users, single user webspaces that people purchase might not have one and even on occasion the multiple user webspaces might not. However all will have a root folder which folders below it in heirarchy can't be seen by the public.]

Now dealing with generating a Relative image link that points to an image (in this case test.gif) you would write the anchor as < IMG SRC="images/test.gif" >.

This broken down is saying "From root goto the images folder and load test.gif with what ever the servers MIME type is. (Mime types are set by the server to identify what format a file is in by it's extension. Your home PC will have something similar running too, however using the server one it can work out if the image in this case should be treated like a downloadable/served file or if it should be parsed by the servers configuration and show as an image.)

Another Relative Example would be if /logs/log.html wants to create either a view of the test.gif image or a link back to index.

< HREF="../index.html" > would be used in log.html to point to index, notice it uses .. to "drop" down a folder level. Theses ..'s can actually be stacked for multiple folder levels... ../../../index.html etc.

< IMG SRC="../images/test.gif" > would get the image to show from the log.html page, notice that first .. drops down a folder, then the images folder is choosed with finally the file test.gif.



An Absolute path, is the relative path plus the servers domain information, if you domain was www.foo.bar, the image tag would be < IMG SRC="http://www.foo.bar/images/test.gif" > notice that the domain opens straight into the root folder.

[Note: Most servers are setup to use index.htm or index.html as a page that exists in the root folder that is the first to be Indexed. Index pages go back to the older structure of networks and protocols like Archie and Gophers. As an Index suggests, they were used to identify a sites overall contents on one page to allow the sites to be "Spidered".]

FTP
----------
Ftp is File transfer protocol, it's basically another server setup to deal with file transfers to a folder on a different port to that of HTTP. (HTTP is the protocol used to show you most webpages and resides on port 80, where FTP runs on port 21. They do open up other ports, since they "Listen" on the ports mentioned, and when they are accessed they open up other ports to do the data transfers so that the mention ports can go back to listening for other connections.)

You can get FTP programs to shift files/alter/update about, even Internet Explorer has the capacity of working with the FTP protocol (although some people prefer not to use it).

[Note: FTP uses a plain text transfer of login data, which means it's not secure to packet sniffers (This is where Hackers could listen in to your data flow and Identify your login information if they know how to). If you want security for file transfers then you would be looking at either using an FTP server with an SSL tunnel or using an SSH server to tunnel both a commandline interface with the server and file transfers.]

It is possible to get .com domains and a package from a webspace provider to allow you to have access to an FTP server to upload files, perhaps even their own brand of logging information about who views your page.

You should note thought to check out the history of your provider, Alot of defacements of websites in the past have been down to the provider being circumnavigated security wise and allowing the Hacker to gain access to all websites served by it.

(This overall post probably contains too much information and written badly but hopefully you'll get the jist of what you ask. I'm sure others will happily post their favourite webspace providers, domain registrars and FTP programs etc)

Stryder
08-13-04, 11:46 AM
It is possible to make a whole site in publisher, however Publisher places alot of junk data like white spaces into the overall code bloating the HTML.

Most people would recommend something like Dreamweaver 4 (or higher) for creating a webpage, since it allows you to generate the webcode just as (if not as easily as publisher) however dreamweaver doesn't have a built in publish method (I think).

It is possible to use publishers built in method but it's just FTP at the end of the day, which programs like WS_FTP can do just as easily, or even the IE browser.

Preacher_X
08-13-04, 05:47 PM
are the white spaces a problem if you use FTP?

and so it is possible to upload a site completely from Publisher?

thanks

Stryder
08-13-04, 05:58 PM
Well the white spaces aren't too much of a problem unless your on a dialup. If your uploading via dialup or reading a site via dialup, then you want the HTML pages to be very simple and not bloated with code otherwise they take time to download.

http://support.microsoft.com/default.aspx?kbid=307261
http://pubs.logicalexpressions.com/Pub0009/LPMArticle.asp?ID=324
http://office.microsoft.com/assistance/preview.aspx?AssetID=HP030661591033&CTT=4&Origin=CH063577001033

Kunax
08-14-04, 04:06 AM
does anyone use dialup anylonger :)

Preacher_X
08-14-04, 08:23 AM
this is new century, kunax,

olnly jokin, i did untill a few weeks ago, i got 512k modem now

andrewsmith1986
08-15-04, 04:54 PM
how do you use ftp (i live in a small town no one in a 50 mile radius ccould help)
what programs do ya'll use for them

Kunax
08-16-04, 01:31 AM
get a free ftp client here ttp://www.tucows.com/ add the connection info(host, user/pwd),
transfer files. thats pretty much it