Hi!
I resently hit a problem that honestly pised me off.
I have a program with a simple network request. It has been working for a long time. But sudenly it started to act stupid.
I havn’t changed anything so I have no idea why the (i realy wanna swear here) it is not working.
local function networkListener( event ) if ( event.isError ) then print("Network error!") else print("Shouldn't ¤%&/ be here if the server is not running!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!") . . . end network.request( "http://127.0.0.1/firstMidle.php", "GET", networkListener )
the php script is on a server with xampp. The server can no longer be started. I have no ide why I cant start it anymore. But that doesn’t belong here.
If I change the name of the url to something that doesnt exist I still get in the else statement. What ever I do I get to the else statement.
Before I had to start heidiSQL and xampp and start the server then my program did what it whas supose to. If I didnt start the server it said “Network error!”.
Now it never says “Network error!” but goes in the else statement and tries to do stuff which it will fail becasue it is dependant on the answer from the php script.
Please can someone explain when the the is.Error is true or somehitng?
Sad regards!