Welcome Guest, Not a member yet? Register   Sign In
Consistent 404 after initial success
#10

[eluser]xwero[/eluser]
syntactically it's correct yes.

Echoing is considered bad practice for any function, if it's in a class or not but sometimes you need to echo data. For instance if you do an ajax manipulation of the database and all you need to know is if the query is executed or not, you can echo 0 or 1 to let the javascript code know the execution status. I think wrapping this value in a format, json or xml, is just a waste of bandwidth.


Messages In This Thread
Consistent 404 after initial success - by El Forum - 06-16-2008, 09:50 AM
Consistent 404 after initial success - by El Forum - 06-16-2008, 10:13 AM
Consistent 404 after initial success - by El Forum - 06-16-2008, 10:30 AM
Consistent 404 after initial success - by El Forum - 06-16-2008, 04:44 PM
Consistent 404 after initial success - by El Forum - 06-16-2008, 07:31 PM
Consistent 404 after initial success - by El Forum - 06-17-2008, 03:00 AM
Consistent 404 after initial success - by El Forum - 06-17-2008, 03:03 AM
Consistent 404 after initial success - by El Forum - 06-17-2008, 03:14 AM
Consistent 404 after initial success - by El Forum - 06-17-2008, 03:46 AM
Consistent 404 after initial success - by El Forum - 06-17-2008, 04:07 AM
Consistent 404 after initial success - by El Forum - 06-17-2008, 05:53 AM



Theme © iAndrew 2016 - Forum software by © MyBB