Hi there,

not sure if this is best place to direct it, but for those working on the website: Please be careful about how you use the PHP "include" command, and related commands.

In this specific case, the hostlogo.inc file was included incorrectly: namely, just like this:
  include "hostlogo.inc";
That works fine as long as the CWD is set to the right location. Often, it isn't, leading to nasty PHP errors messages visible to visitors of our web site. With the PDB, this was very visible, I usually see it every time I use the PDB. Well, not anymore, since I just fixed this particular case: You have to specify a full path to the file, then it works (see headers.inc for an example).

However, I think many more places use "include" incorrectly. E.g. I just reloaded the Fink front page (http://fink.sourceforge.net), and instead of the news, I see a PHP file not found error for news.inc ! Bad bad bad...

Now, I could go through all those cases myself and fix 'em, but I am afraid they'll just pop up again as other people make changes, so I figured it's better to point out the problem and then let the people who maintain the website fix it properly :-)


Cheers,

Max



-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
Fink-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to