mahdi_20 Posted July 17, 2008 Share Posted July 17, 2008 hi, all i have a form in my php code, that i send this form fields to server with ajax. an i have server page(php) for get response text the server page include some php code that one of this code is : Require_once("class/customer"); this cause my http.status refer 500 when the line of code deleted, my http.status refer 400 and i have not any problem what is solve way? ??? thanX in advance. Quote Link to comment Share on other sites More sharing options...
Sulman Posted July 17, 2008 Share Posted July 17, 2008 Have you missed the extension off the end? Require_once("class/customer.php"); Quote Link to comment Share on other sites More sharing options...
mahdi_20 Posted July 17, 2008 Author Share Posted July 17, 2008 oh, sorry this line is: Require_once("class/customer.php"); Quote Link to comment Share on other sites More sharing options...
mahdi_20 Posted July 17, 2008 Author Share Posted July 17, 2008 the server page include a class code: <? class customer{ ... } ?> Quote Link to comment Share on other sites More sharing options...
Sulman Posted July 17, 2008 Share Posted July 17, 2008 Try running then ajax server page through the browser (i.e. bypassing the ajax page). There may be errors in there that will not show up because it runs in the background. Quote Link to comment Share on other sites More sharing options...
toivo Posted July 22, 2008 Share Posted July 22, 2008 If you run PHP 5 and have not enabled short open tags, you need to use the normal open tag: <?php Quote Link to comment Share on other sites More sharing options...
LemonInflux Posted July 22, 2008 Share Posted July 22, 2008 Have you done anything with that class? If you don't initialize it or anything, it won't return anything because nothing happens. ---------------- Now playing: Get Cape. Wear Cape. Fly - Waiting For The Monster To Drown via FoxyTunes Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.