Page 1 of 1

Multiple problems that previous posts haven't answered

Posted: Wed Jun 07, 2006 6:29 am
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?

Posted: Wed Jun 07, 2006 6:32 am
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.

Posted: Wed Jun 07, 2006 4:49 pm
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

Posted: Wed Jun 07, 2006 6:47 pm
by ackerley1
That fixed it. Will I have similar problems with the form?

Posted: Thu Jun 08, 2006 11:03 am
by Klemen
Why don't you try it and find out :wink:

Posted: Fri Jun 09, 2006 8:10 am
by ackerley1
Got it sorted.

Thanks