The free forums are no longer in use. It remains available as read-only archive.
The forums are currently locked and only available for read only access
Topic RSS
Site Cloning domain name references missed
December 30, 2010
5:14 pm
5:14 pm
Guest
Guests
When I clone a site, I find burrined in various plug-ins domain name referenecs that missed inheriting the new domain name during the Clone restore.
Is there a process I can follow to open the tar ball and locate all of these and replace with some kind of tag, then remake the tarball so the clone will work correctly in the future?
December 30, 2010
8:19 pm
8:19 pm
Guest
Guests
I know very little php..
Am I on the right track?
function split_sql($sql) {
$ret = array();
$sql = str_replace("n) ", "n) ;n#n#", $sql);
$sql = str_replace("n–n","n#n",$sql);
$sql = str_replace("n– ","n# ",$sql);
$sql = str_replace("n/*","n#/*",$sql);
$sql = str_replace("old-domain-name.tld","new-domain-name.tld",$sql);
$sql = ereg_replace("#n", "#;n", $sql);
December 31, 2010
12:16 am
12:16 am
Ovidiu Liuta
Admin
Forum Posts: 2484
Member Since:
September 26, 2010
September 26, 2010
Offline
Forum Timezone: America/Chicago
Most Users Ever Online: 867
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
1 Guest(s)
Top Posters:
mlguru: 30
Django29: 29
Andy: 21
D: 21
Marcus: 20
Jamie F: 19
Member Stats:
Guest Posters: 738
Members: 10030
Moderators: 2
Admins: 3
Forum Stats:
Groups: 3
Forums: 7
Topics: 2397
Posts: 8236
Newest Members:
Omar VeraModerators: TriP: 0, Steve Burge: 0
Administrators: Ovidiu Liuta: 2484, Victor Drover: 1, Valentin Barbu: 0
© Simple:Press —