Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 01-12-2004, 01:34 AM   #1
flashfire
ICQ 1 6 7 8 5 3 4 9 2
 
Join Date: Feb 2003
Posts: 13,098
Changing a link on hundreds of html pages

Okay I have to change all the links on tons of html pages from one url to another...is there a fast way or doing this...any scripts or programs?? thanx
flashfire is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-12-2004, 01:37 AM   #2
Mishi
Confirmed User
 
Join Date: Feb 2002
Location: Scottsdale, AZ
Posts: 1,054
UltraEdit has a "change in files" option. So do several other proggies...I'm sure someone will be along shortly with a better suggestion...
__________________
Looking for PHP/MySQL solutions? Check out Cyboriginal - custom scripts, installation services and more.
Mishi is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-12-2004, 01:37 AM   #3
Brad Xtremepay
So Fucking Banned
 
Join Date: Dec 2003
Location: Canada
Posts: 2,000
Try using include files. SSI or php includes. Whatever you have to work with. Split every page up into sections. Use templates!
Brad Xtremepay is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-12-2004, 01:37 AM   #4
Amputate Your Head
There can be only one
 
Amputate Your Head's Avatar
 
Industry Role:
Join Date: Aug 2001
Location: Somewhere else
Posts: 39,075
DWMX 04: Find & Replace
__________________
SIG TOO BIG
Amputate Your Head is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-12-2004, 01:40 AM   #5
flashfire
ICQ 1 6 7 8 5 3 4 9 2
 
Join Date: Feb 2003
Posts: 13,098
Hey amp with DWMX dont I have to open all the files?? Can you give me some more info?

Thanx Guys
flashfire is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-12-2004, 01:40 AM   #6
Ben-MensNiche
Confirmed User
 
Join Date: Dec 2003
Location: Victoria, BC, Canada
Posts: 726
Quote:
Originally posted by Brad Xtremepay
Try using include files. SSI or php includes. Whatever you have to work with. Split every page up into sections. Use templates!
What he said - I use SSI all the time in my own pages, it saves a HEAP of time in administration.

It also means that you can write a template, that has an SSI banner, sidebar, copyright and then you can use PHP to generate your page content - meaning that you only have administer a very small amount of pages instead of 1000s of them.

I remember my first website which I started supporting for a company, it was written in straight html, and had 64,000 pages. Can I say PAIN IN THE ASS?! After I changed to ASP, they had 1 database, 1 template and 5 asp files. Way easier to manage. I would definitely recommend this route!
__________________

ICQ: 310539245
Email: [email protected]
Ben-MensNiche is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-12-2004, 01:41 AM   #7
flashfire
ICQ 1 6 7 8 5 3 4 9 2
 
Join Date: Feb 2003
Posts: 13,098
Oh, figured it out....THANX EVERYONE!
flashfire is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-12-2004, 01:42 AM   #8
Amputate Your Head
There can be only one
 
Amputate Your Head's Avatar
 
Industry Role:
Join Date: Aug 2001
Location: Somewhere else
Posts: 39,075
Quote:
Originally posted by flashfire
Hey amp with DWMX dont I have to open all the files?? Can you give me some more info?

Thanx Guys
nope.... just open up one file. Find the string you wanna replace, open up Find & Replace, select Source Code, put in the string to find, and the string to replace it with, and select either, This Doc, Specify a folder, or Entire Site.

done in seconds.
__________________
SIG TOO BIG
Amputate Your Head is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-12-2004, 01:54 AM   #9
flashfreak
Confirmed User
 
Industry Role:
Join Date: Jun 2002
Location: cloud number 9
Posts: 4,396
if you plan to do it on your computer dreamweaver or homesite can do it.
here's what I'm using if I want to modify links on a server :

find . -type f | xargs perl -pi.bak -e 's/old_string/new_string/g'

it works recursivelly on the folders and makes a backup file too (.bak) which you can skip of course if you don't want it.
__________________
SEO Mogul | ICQ: 163671223
flashfreak is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-12-2004, 01:58 AM   #10
Baal
Confirmed User
 
Join Date: Jan 2002
Location: SoCal
Posts: 696
Quote:
Originally posted by Amputate Your Head


nope.... just open up one file. Find the string you wanna replace, open up Find & Replace, select Source Code, put in the string to find, and the string to replace it with, and select either, This Doc, Specify a folder, or Entire Site.

done in seconds.
Does DWMX do this on remote files as well? Or just local files? Remote would be slow as shit (assuming it would have to use FTP, as opposed to opening a Telnet or SSH session, which I doubt it can do), but even via FTP, remote search & replace might have it's uses in some cases for me.
Baal is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-12-2004, 01:59 AM   #11
MadCap
Confirmed User
 
Join Date: Aug 2002
Location: 137771650 Minneapolis MN
Posts: 2,357
all i got was people trying to sell me shit



dw is good but i was lookin for something to do it on the fly
MadCap is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-12-2004, 02:00 AM   #12
Adulter
Confirmed User
 
Join Date: Feb 2003
Location: EU
Posts: 1,252
Dreamveawer


And try to use SSI next time
__________________
Adulter is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-12-2004, 02:00 AM   #13
VeriSexy
Join The Royal Family
 
VeriSexy's Avatar
 
Join Date: Apr 2002
Posts: 25,463
Search and replace 98 can do it. It's free
__________________
Looking for a KICK ASS TEEN SPONSOR? Check out ROYAL CASH - THE KING OF TEEN!
Incredible webmaster tools FHGs, Morphing Blog and RSS Feeds, Embedded FLV & WMV Videos
.
With TOP RATIO Sites like


ATMovs.com | iTeenVideo.com |
TeenSexMovs.com | TeenSexMania.com


VeriSexy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-12-2004, 02:01 AM   #14
leg4
Confirmed User
 
Join Date: May 2003
Location: Texas
Posts: 4,429
bk search and replace on the server
leg4 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-12-2004, 03:36 AM   #15
gin
Confirmed User
 
Join Date: Sep 2003
Posts: 672
do it right.. so you can change it all anytime you want..
make a text file and put the url into it..

PHP Code:
 $filename = ('../url.txt');
 $info = file($filename);
 $url= $info[0];


<?=$url;?> anywhere needed..
might be ghetto but it works
gin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-12-2004, 03:38 AM   #16
xxxoutsourcing
Confirmed User
 
Join Date: Oct 2003
Posts: 3,888
You can use a stream editor like sed that will do it a breeeeze
__________________

xxxoutsourcing.com
ICQ:119936 | Aim:xxxoutsourcing | MSN:msn@ xxxoutsourcing.com | Yahoo:xxxoutsourcing
Submitters, Designers, Programmers, Cartoonist, Creative Writers, Video & Photo Editors
Convert your Paysite into a cartoon site convert2toons.com
xxxoutsourcing is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-12-2004, 03:58 AM   #17
Baal
Confirmed User
 
Join Date: Jan 2002
Location: SoCal
Posts: 696
Quote:
Originally posted by leg4
bk search and replace on the server
Damn, I remember this tool from *years* ago! Do they offer S&R on the various Unix servers?
Gotta love Regular Expressions!

BTW, of course PERL, PHP, Python, shell, even C++ or even C could do it. It's just a matter of what's easiest to do it in.
Baal is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-12-2004, 04:18 AM   #18
Toni
Confirmed User
 
Toni's Avatar
 
Join Date: Oct 2001
Posts: 2,697
The best program to do that is TextPipe Pro!
__________________


$25-$50 Per Signup, 60%-70% Rev Share, 125+ Sites, Exclusive Sites, tons of free content
70,000+ FHG's, Free Domain Hosting, 10,000+ Hosted FLV's - Need Live Cams? Check out ItsLive.com
Fetish Hits paying affiliates since 2001 - Every time on time!
Toni is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-12-2004, 04:26 AM   #19
flashfreak
Confirmed User
 
Industry Role:
Join Date: Jun 2002
Location: cloud number 9
Posts: 4,396
Quote:
Originally posted by gin
do it right.. so you can change it all anytime you want..
make a text file and put the url into it..

PHP Code:
 $filename = ('../url.txt');
 $info = file($filename);
 $url= $info[0];


<?=$url;?> anywhere needed..
might be ghetto but it works
the only prob is you have to have php files, so you can't do it for galleries.
__________________
SEO Mogul | ICQ: 163671223
flashfreak is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-12-2004, 04:27 AM   #20
lock
Confirmed User
 
lock's Avatar
 
Industry Role:
Join Date: Jul 2003
Location: Australia
Posts: 5,065
Textpad do em all in find replace 1 press
__________________
Traffic.Tools - 40+ Free Tools
Free.Marketing - 150+ Free Tools
Submission.Tools
- 20+ Free Tools
lock is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-12-2004, 04:43 AM   #21
Krille
Confirmed User
 
Join Date: Mar 2002
Location: Bangkok
Posts: 2,436
i use bk replace em for these kind of things, works like a charm, fast and easy
Krille is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-12-2004, 04:47 AM   #22
kenny
Confirmed User
 
Industry Role:
Join Date: Mar 2002
Posts: 7,245
Here is the way I do it in server shell:


find directory -name '*.html' -exec perl -pi -e 's/http:\/\/www.oldlink.com/http:\/\/www.newlink.com/g' {} \;
__________________
7
kenny is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-12-2004, 04:58 AM   #23
uptheyingyang
Confirmed User
 
Join Date: May 2003
Location: chicago
Posts: 376
multiupdate



http://www.ksware.com/mu.shtml
__________________
promote our original content 30 niche site package with ccbill:
www.gashflash.com/affiliates/
uptheyingyang is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-12-2004, 05:01 AM   #24
Dusen
Confirmed User
 
Join Date: Aug 2002
Location: East Coast.
Posts: 2,251
Perl can do it. Search google for "perl find and replace"
__________________
Penis Pill Sponsor List and Reviews:
http://www.pillsponsors.com
Dusen is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-12-2004, 05:04 AM   #25
DanielS
Registered User
 
Join Date: Apr 2003
Posts: 569
Multi Replace, by Martin Holmes.
DanielS is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-12-2004, 05:07 AM   #26
WebDork
Confirmed User
 
Join Date: Jan 2002
Location: Sydney, Australia
Posts: 402
If you want to do it on your desktop, there are shitloads of programs out there.

If you want to do it on your server you can do it via PHP or PERL using regex (regular expressions).

Might cost you $10-$20 for someone to code it if you cant do it yourself.
__________________
Video Ipod Porn Site with Affiliate Program. http://www.podies.com
Free 1:1 Adult Webmaster Banner Exchange.
WebDork is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-12-2004, 06:08 AM   #27
Trax
[----------------------]
 
Join Date: Aug 2001
Posts: 14,486
best one is BKMReplace or something
its free
Trax is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-12-2004, 06:22 AM   #28
mikeeee
Registered User
 
Join Date: Jun 2003
Posts: 481
format c

why do you have a hundreds of pages? Use SSI or php includes going forward and you only have to change one file.
mikeeee is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-12-2004, 07:23 AM   #29
Zappu
Confirmed User
 
Join Date: Jul 2002
Posts: 1,556
With the best editor around: Homesite it's an easy job
__________________
Zappu (ICQ: 23141467)
European Erotik Content Archive

CONTENT4FREE = CONTENT4CLICKS X JOIN NOW!
Zappu is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.