خرید بک لینک

Vote count: 0

I am using WAMP v.2.5 on a Windows10 machine. My project is a PHP project ruing off a MySQL DB. It includes numerous AJAX calls, which work fine. I have one specific call however which is giving me a 'Unexpected end of input' error.

The call is made from a View, is directed to a global ajax handler PHP script which forwards the request to the Controller, which then asks the Model for the response. The appropriate Model method is being fired. The method contains error checking and will throw exceptions for an empty result. The DB Query within is valid, and retus results when used in the console. 9 times out of 10 however, the ajax fn will complete without receiving / reading the result of the query and thus generates the above error. Sometimes it will work fine.

When placed on a live server, everything works as it should. It's almost as if the script was ruing too quickly on the local machine to wait for the DB response or for any exception to be thrown.

Can anyone tell me how to properly test what's happening, or have a solution to the above problem?

asked 40 secs ago

- - , .

برچسب: نویسنده: استخدام کار تاريخ: چهارشنبه 21 بهمن 1394 ساعت: 19:06

صفحه بندی