reset password
Author Message
Rickyl1995
Posts: 2
Posted 21:06 Oct 07, 2015 |

Hi guys i am stuck on how to put images on the server and how the folders work. I should have paid more attention in class. For the links, are they suppose to link back to a picture or something? Thanks!

4542elgh
Posts: 71
Posted 21:15 Oct 07, 2015 |

I will prefer to do it in the following order:

1. create a folder in FTP by using mkdir "your directory name" (plz remove "")

2. upload your image to ftp by using put "your image ABSOLUTE PATH" (plz remove the "")

as far as how folder work, for example you are in /public_html/css and you want to change to /public_html/javascript you can simply reference by ../javascript (relative path) OR /public_html/javascript (absolute path). Same apply in ftp, if you want to jump one folder up, do cd .. where the .. means going up one directory, cd ../.. jump up 2 directories, finally cd / will jump back to root directory.

3. for your image, in order for it to display, open your html and add <img src="absolute or relative path"> (""are necessary)

4. for links use the tag <a href="your link">give your link a name to display</a> (""are necessary) (for what it suppose to link to, i am not sure either XD)

Rickyl1995
Posts: 2
Posted 21:38 Oct 07, 2015 |

Okay so I did the MKDIR and got the OK. However, when I do the command put and my absolute path it saying unable to open. Am I doing something wrong? I renamed the image as Pumpkin. It is a GIF image. I'm completely new to CS and barely understand how to operate PSFTP :(

4542elgh
Posts: 71
Posted 21:40 Oct 07, 2015 |

https://www.facebook.com/evan.liu.581 add me on facebook

4542elgh
Posts: 71
Posted 22:08 Oct 07, 2015 |

i got it to work, please double check if your absolute path is correct, i post mine as an example, by the way, my command put C:\Users\4542elgh\Desktop\Data\image1.jpg DID NOT SPECIFIED a destination, if you want to put it anywhere other than your current directory, you need to specified it after your local machine file EX: after the image1.jpg /home/cs120s25/public_html/images will transfer my file directly to my images folder. hope that help :)