SMF Support > SMF 2.0.x Support

I want to edit the index.css file on localhost but want to know how to upload it back to host

<< < (3/4) > >>

Storman™:

--- Quote ---Now will I download index.css from the live host or from the forum maintenance panel
--- End quote ---

You could probably do either but probably best if you spend some time learning how FTP works (as per the wiki link) because you will need to use it quite a lot in the future for other tasks.


--- Quote ---I back the files up yesterday but it cant open in the laptop.

Is it bcos its in the .gz format.
--- End quote ---

A utility like 7Zip will unzip that for you.

oloyede JAMIU:
thank you sir,

I know how ftp works cos I develop websites,

But I want to be sure of where I will download the index.css file,

Is it from the host cpanel or forum maintenance.

Thanks for the 7zip I have downloaded it.

I will try those back ups out.

Then can I get the index.css file in the forum backup I made.

Am waiting.

MrPhil:
You sound very, very, confused. OK, so you have a "live" copy of your site on a server. You have a "sandbox" or "test/play" copy on your laptop, what you're calling "localhost". Don't use the term "localhost" for that -- it has a very specific meaning in web sites and your usage confuses others. You want to make changes on the sandbox copy and try them out before changing the live copy, right? That's good.

On any of the systems, make a backup copy of any file you're going to manually change, before doing any editing. On your live host, there should be a "control panel" of some sort, which includes a "file manager" which lets you copy, rename, delete, and even edit any of your files. If you're going to edit a live file, be sure to make a backup of that file first (e.g., copy index.css to index.css.backup). That way, if it goes disastrously wrong, it's easy and quick to restore the original file.

You use "FTP" to copy files from your live site to a PC for editing (download) or from your PC to the live site (upload). You can edit on your live site, using the control panel and file manager, or you can FTP the file to a PC (not necessarily the "sandbox" one), edit it there, and FTP it back up. Either way works. Just make sure you have a backup of the original file on at least one of those machines.

A PC installation (WAMPP, XAMPP, etc.) usually doesn't include a control panel and file manager.  You just use your regular PC editor to edit files. Again, make a backup of the file(s) first, in case you screw up and need to restore to your original state. There's no FTP involved here.

Finally, be careful to keep your files in sync between the live and sandbox sites, and carefully identify anything that you want left different. You don't want to modify a file on the live site via a mod installation, edit its original (unmodified) on the sandbox, and upload to the live site. You'll have lost the mod's changes. You would want to download the file first from the live site to the sandbox. In fact, you should download all of the live site to the sandbox, so that you are starting your modifications on an identical version. Just keep track of your changes and whether the copy on the live system is the same as the copy on the sandbox (or if the sandbox's version is still under test, and not on the live system, don't forget what's been changed).

тнє נя.:
MrPhil, I honestly don't think that using the term 'localhost' for XAMPP or WAMP is misleading or confusing. Sure, it may not be the most politically accurate, but it's used somewhat frequently and with a little bit of reading the original post, it's not difficult to understand this.

oloyede JAMIU, I'm going to be fairly blunt. Just because you 'develop websites' doesn't mean you understand FTP and even if you do somewhat, it doesn't mean you know it well. Based on your posts, it honestly seems like you don't understand it as well as you may think you do.

MrPhil:
"localhost" is frequently used to refer to the MySQL server's location, as in $db_server = 'localhost';. That's why it's not a good idea to refer to a WAMPP or XAMPP installation as a "localhost".

I agree that @JAMIU's skill level is far from that at which someone can call themselves a "web developer". It sounds like his experience is only with Dreamweaver or Expression Web. That's a start, but that's like entering the Tour de France with training wheels on your bicycle!

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version