I’ve come to that conclusion and amended alreday some of the pages
But the question remains: why is it needed (was needed) in some and not in others if the pages have basically the same code, e…g http://pintotours.net/Asia/India/India.php ?
Back to the #offset I now have to change the code in around 100 pages. I had a HD breakdown and lost a lot of information including the name of a programme that can search and replace text in a full website.
I understand that Notepad++ can do it if you have EVERY page opened in it. That means downloadingg100 files, which will be as tiresome as doing the direct changes in the cPanel.
I had a prog that did it directly on the full downloaded site. STOP!
Thinking aloud,
Is that what Notepad does? Downlaod all the site’s folders onto the computer and direct Notepad to look for what you want…
IMHO you should have a full copy of all files on your machine already.
i.e. your “development” copies that you work with and test before you upload them to the live site.
Working with live files can have disastrous results (read - “crash your site”)
It can be tricky to configure your localhost site so that it will have the same configuration as the live site. And ideally you would have some kind of version control in place so you could “roll back” if you needed to.
But in any case, having the files on your own machine is the way to do things.
I am downloading the folders to the PC and will work one folder at a time (there are 5 with an average of 20 files each) and inspect them before uploading them again.
In any case, I will do a full back up to an external drive.
All failing, I am on a 6th floor and will throw myself out! So, if you don’t hear from me for a while…
I’ve started already but now I have a doubt, that could end up in disaster!
I changed what I needed in one folder in the PC; checked that part of the code and it is fine.
My doubt now is how to upload it to the server. I have Filezilla open. The left panel shows the backup which contains 5 folders; the right panel is on public_html which shows all the folders including the one I want up load.
I assum that I drag the folder to the right without actually opening that folder, i.e. I drag the folder Asia to the right where among others I can see the folder Asia.
As long as you have checked the local code well the chances of it causing problems on the live site are reduced. And as long as you have backup copies you can put them back if you need to.
I use Filezilla, but I have never drag-dropped.
I have “local” in the left pane and “live” in the right pane.
I navigate to the folders / files I’m wanting to upload in the left side, and navigate to where I want them to go in the right side.
Then I select them, upload, and choose “over-write” when asked.
Say I have this locally
site/
index.php
site/javascripts/
slider.js
and this live
public_html/
index.php
public_html/javascripts/
slider.js
If I want to upload the entire javascripts folder, I go to site and public_html, select the javascripts folder from local and upload it.
If I want to only upload the slider.js file, I go to site/javascripts and public_html/javascripts, select the slider.js file from local and upload it.
Going by your screenshot, it looks good to me.
Most likely even if you did make a mistake choosing a folder location, the usual result is that you would have an “extra unused” folder that you could delete.