moving .php files and the page designs.....

General discussions about WebYep
Post Reply
pelsar
Rank 1
Rank 1
Posts: 23
Joined: Sat May 03, 2008 3:59 pm
Location: Israel

moving .php files and the page designs.....

Post by pelsar » Mon Aug 18, 2008 4:26 pm

i've got this semi developed webyeb website online...with content. I've now noticed that some of my pages need to be changed. So i download the entire site to my local php/server/ xampp

...open the various pages....and no content is there. This is no good because if i change the page design and upload i'll lose all the content that has already been placed.

so...where is the content? and why doesnt it show up "locally"?

johannes
Objective Development
Objective Development
Posts: 815
Joined: Fri Nov 10, 2006 4:39 pm
Contact:

Post by johannes » Tue Aug 19, 2008 8:09 am

When you transfer a site from one server to another you simply need to also transfer the webyep-system folder including its data subfolder and the WebYep content should show up - you just might need to set the data subfolder's permissions on the new server, so WebYep (PHP) can write to it.

But: Often when you move the site from one server to another, you also move it to/from some subfolder. So a page that before was addressed via
http://www.oldserver.example/somepage.php
is now addressed via
http://www.newserver.example/subfolder/somepage.php

So the path changes from "/somepage.php" to "/subfolder/somepage.php".

WebYep recognizes the pages by their path. The connection from a page to its WebYep data is created by a unique document ID and this document ID is assigned to the path of the page.

If the path changes, the document ID changes and thus its a new page for WebYep - with new (empty) data.

But this path-to-document-ID relation can be edited easily: Open the file webyep-system/data/documents in some text editor. It contains lines with pairs of path and document ID.

Simply edit the path of each page to reflect the new location and the WebYep data will re-appear.

pelsar
Rank 1
Rank 1
Posts: 23
Joined: Sat May 03, 2008 3:59 pm
Location: Israel

makes sense..but which folder...

Post by pelsar » Thu Aug 21, 2008 2:19 am

But: Often when you move the site from one server to another, you also move it to/from some subfolder. So a page that before was addressed via
http://www.oldserver.example/somepage.php
is now addressed via
http://www.newserver.example/subfolder/somepage.php

So the path changes from "/somepage.php" to "/subfolder/somepage.php".

WebYep recognizes the pages by their path. The connection from a page to its WebYep data is created by a unique document ID and this document ID is assigned to the path of the page.

If the path changes, the document ID changes and thus its a new page for WebYep - with new (empty) data.

But this path-to-document-ID relation can be edited easily: Open the file webyep-system/data/documents in some text editor. It contains lines with pairs of path and document ID.

Simply edit the path of each page to reflect the new location and the WebYep data will re-appear.


makes sense..but i cant seem to find the specific folder with all of those links. I've downloaded the entire site...in fact on my computer (local) its finding the older files....i'm guessing that the older content is probably still within the data folder, but that still doesnt explain why downloading the entire site would cause that to happen....

johannes
Objective Development
Objective Development
Posts: 815
Joined: Fri Nov 10, 2006 4:39 pm
Contact:

Post by johannes » Thu Aug 21, 2008 4:53 pm

Please state the exact URLs you are accessing a page on the server and on your local machine.

wetam
Posts: 1
Joined: Wed Feb 27, 2019 1:39 pm

Re: moving .php files and the page designs.....

Post by wetam » Wed Feb 27, 2019 1:40 pm

Forums of the new data base are calculated for the indication of the terms. The route of the success and bestessay uk ase approved for the people. The judgment is spent for the formation of the quite good items for the humans and agents of the current department.

Post Reply