apache server is confusing with HTTPService responses
This is a very weird problem. I have an apache server on solaris with php. I wrote two php scripts that return values. Sometimes, when I run the php scripts urls on the same time, the apache server returns the result of one php script to the other php page.
I tried to minimize the problem by write two php script:
- hello.php - print hello
- world.php - print world
sometimes when i run them on the same time by url, the hello.php return world.
when i'm using html pages it's working just fine so i think the problem is in the php installed on the server.
I'm a flex developer and I thought that the problem is in my flex client application开发者_运维技巧 but after I just run the php scripts directly, I see that the problem is in the server itself.
somebody know this problem? thank you very much.
I am perhaps not answering your question but what if you instead of making your scripts return hello in one and world in the other instead output something a bit less static like the date and time.
script1.php
echo "Script1:".date("Y-m-d H:i:s")."<br>";
script2.php
echo "Script2:".date("Y-m-d H:i:s")."<br>";
That way you will know if this is caused by some caching.
精彩评论