Here's the easy fix for working with linkinfo.txt

Problems installing LinkMan?
Post Reply
robear
Posts: 3
Joined: Sun Nov 27, 2005 11:46 am

Here's the easy fix for working with linkinfo.txt

Post by robear »

Alright, you may have noticed that if you open the linkinfo.txt with a text editor or download it to either make a back up or move to a new web host,
it wont work right with the admin page anymore.

that's because the end of each line has a return symbol (\r)

Here's my easy fix,
open index.php (the admin page)
find:

Code: Select all

if($settings['system'] == 2) {$settings['newline']="\r\n";}
elseif($settings['system'] == 3) {$settings['newline']="\r";}
else {$settings['newline']="\n";}
change to:

Code: Select all

if($settings['system'] == 2) {$settings['newline']="\n";}
elseif($settings['system'] == 3) {$settings['newline']="\n";}
else {$settings['newline']="\n";}
note that we are removing \r from the lines.

That's it! :P

:!: this works for me, use at your own risk :!:
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

I wouldn't recommend doing that. For example Mac doesn't use \n to separate lines and the entire file will be messed up.

You just need to make sure the TXT files are transferred to your server in ASCII mode and you should be ok.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply