Multiple problems that previous posts haven't answered

Problems installing LinkMan?
Post Reply
ackerley1
Posts: 4
Joined: Wed Jun 07, 2006 6:17 am

Multiple problems that previous posts haven't answered

Post by ackerley1 »

Script URL: www.mls-belize.com/dir/
Version of script: 1.03
Version of PHP: latest stable of 4
Hosting company:
Have you searched THIS FORUM for your problem: yes
(if not please do before posting)
If so, what terms did you try:

Write your message below:
I am trying to install linkman to my site in a way so that the links page is: www.mls-belize.com/link_main.php as the site has a pretty intricate layout. I have set up an include to call the dir/links.php file and checked permissions for relevant files but I am returned these errors:

Warning: file(linkinfo.txt): failed to open stream: No such file or directory in /home/mlsbel/public_html/dir/links.php on line 38

Warning: Invalid argument supplied for foreach() in /home/mlsbel/public_html/dir/links.php on line 42

The suggestions from the other posts never really seemed to help me remove this error.

Any other things I can try?
ackerley1
Posts: 4
Joined: Wed Jun 07, 2006 6:17 am

Post by ackerley1 »

One more thing, I have commented out the header.txt and footer.txt but that has not had a positive or negative effect on errors I have recieved.
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Hi,

Please be specific about your problems. As you know the links file does work correctly:
http://www.mls-belize.com/dir/links.php
The problem is in your own "link_main.php" file and it is because of different folders used by links.php and link_main.php

It will probably work if you change this in
links.php:

Code: Select all

$lines=file($settings['linkfile']);
to

Code: Select all

$lines=file('/home/mlsbel/public_html/dir/'.$settings['linkfile']);
Regards
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
ackerley1
Posts: 4
Joined: Wed Jun 07, 2006 6:17 am

Post by ackerley1 »

That fixed it. Will I have similar problems with the form?
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Why don't you try it and find out :wink:
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
ackerley1
Posts: 4
Joined: Wed Jun 07, 2006 6:17 am

Post by ackerley1 »

Got it sorted.

Thanks
Post Reply