![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
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
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
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!
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
There can be only one
Industry Role:
Join Date: Aug 2001
Location: Somewhere else
Posts: 39,075
|
DWMX 04: Find & Replace
__________________
SIG TOO BIG |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
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 ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 | |
Confirmed User
Join Date: Dec 2003
Location: Victoria, BC, Canada
Posts: 726
|
Quote:
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! |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
ICQ 1 6 7 8 5 3 4 9 2
Join Date: Feb 2003
Posts: 13,098
|
Oh, figured it out....THANX EVERYONE!
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 | |
There can be only one
Industry Role:
Join Date: Aug 2001
Location: Somewhere else
Posts: 39,075
|
Quote:
done in seconds.
__________________
SIG TOO BIG |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 | |
Confirmed User
Join Date: Jan 2002
Location: SoCal
Posts: 696
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 |
Confirmed User
Join Date: Feb 2003
Location: EU
Posts: 1,252
|
Dreamveawer
![]() And try to use SSI next time ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 |
Join The Royal Family
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#14 |
Confirmed User
Join Date: May 2003
Location: Texas
Posts: 4,429
|
bk search and replace on the server
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#15 |
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:
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#16 |
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#17 | |
Confirmed User
Join Date: Jan 2002
Location: SoCal
Posts: 696
|
Quote:
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. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#18 |
Confirmed User
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! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#19 | |
Confirmed User
Industry Role:
Join Date: Jun 2002
Location: cloud number 9
Posts: 4,396
|
Quote:
__________________
SEO Mogul | ICQ: 163671223 |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#20 |
Confirmed User
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#21 |
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
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#22 |
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#23 |
Confirmed User
Join Date: May 2003
Location: chicago
Posts: 376
|
__________________
promote our original content 30 niche site package with ccbill: www.gashflash.com/affiliates/ |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#24 |
Confirmed User
Join Date: Aug 2002
Location: East Coast.
Posts: 2,251
|
Perl can do it. Search google for "perl find and replace"
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#25 |
Registered User
Join Date: Apr 2003
Posts: 569
|
Multi Replace, by Martin Holmes.
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#26 |
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#27 |
[----------------------]
Join Date: Aug 2001
Posts: 14,486
|
best one is BKMReplace or something
its free |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#28 |
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#29 |
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! |
![]() |
![]() ![]() ![]() ![]() ![]() |