Posted by:
RaulKing
(---.w82-123.abo.wanadoo.fr)
Thanks for your comment, but I strongly disagree since my localhost server serves to test, develop and simulate and should remain as similar to the production environment as possible. And there are quite a few cases when the command include is required with http:// and not relative path.
Here are some important behavioral differences between
include("[
website]
and
include("PathUnder/page.ext"
as you may see in the Php documentation. One of these differences is the value that vars declared in the i"ncluded file" may take.
Take a simple example : Your included file refers to var $_server[host] : Whether this var is determined in the included file, or the including file, or even a subincluded file (file included by an included file), the outcome can be different.
Other example (php doc) :
include 'http://www.example.com/file.php?foo=1&bar=2';//works
followed by
$foo=$_GET[foo];
$bar=$_GET[bar];
is equivalent to
$foo = 1;
$bar = 2;
include 'file.txt'; // Works.
include 'file.php'; // Works.
As you can guess, your included file $foo var can get mixed up with an including file var. There are many applications of this, which I have thoroughly tested.
----
Coming back to my Wamp-Vista installation problem :
I have figured out that the frames had nothing to do with it. It is just that the loading of the frames was slowed down while waiting for the timeout of 60 seconds. (if no frames reload, implying that the page must be loaded first, which could only happen after the timeout)
So, I have carefully replaced over 13000 occurences of the string "localhost" (I administer many websites) in my php programs by "127.0.0.1". All seem to work fine now; But, I am not happy with this solution.
What comes to my mind is that it should be possible to force Vista to understand that 127.0.0.1 is equivalent to localhost, no matter what the setting is.
But this goes beyond my comptetency and I find the Vista network setup and management just hard to understand. So, I 'll keep listening to this thread hoping someone will come up with an answer.
Thanks
See my <a href="[
games.nostradamila.com] games</a>