there are a few reasons like the half-baked in type-safety, haystack and needle argument positions in function calls, function names sometimes using underscores and sometimes not...
@zerkms i never said that i don't use php. though i actually don't ;) but i don't use it for a different reason, which is that i currently just have no use for php
Hi. I was hoping someone here could help me. I'm developing a C# app but I need a PHP webservice so I can talk to my Database, I have based my webservice on online tutorial (not ideal, I know!). I have a little PhP but not much and I would like to modify it further but cannot figure out how to change the following.
Ok, srry about all that, as I mentioned I got this off a (obviously bad / old) tutorial and was simply to faciliate my app. I always intend to go back and rewrite this later I just needed to see some of my data in the app.
People seem to fall back to PHP as a back-end for mobile apps as a default, it is kind of strange, but at the same time if you don't want to run the back end on Windows it does seem like a semi-sensible choice
@zerk I do intend to, ultiamtely I want to do much more than just pull out data from my database - my intention was when I build the other functionality like ability to add and modify data in the database I would do a complete re-write.
@zerkms Depends what your "app" is. If you are writing an Android-only app then Java is probably not a bad choice, in the interests of sticking with what you know.
PHP is not a bad choice, but it seems strange that people would choose to learn an entire language they don't know for the sake of a simple web service
@BenjaminGruenbaum To be compeltely honest when I started the app about 3 weeks ago I had no idea what a web service was and my inital research on how to connect a Windows Store app to a MySQl databae led me, however wrongly (!) to this solution.
I have recently discovered the observer pattern and I am now literally triggering events/signals at every corner of my application (using a class similar to Symfony's event dispatcher). I feel clever, but am I digging a hole for myself down the road?
I'm only starting to learn C# now too, I didn't want to try and learn two languages at once. I was trying to take a short cut just to pull in data. Finish the app side and then look again at the web service
@James we are not judging you - we are merely making suggestions based on our own experience. If you're learning backend for the first time and are using C# in the front end take a look at WebMatrix and asp.net web pages.
"Which is obviously just a limitation of the fact that you are really just writing JS" --- I don't think so actually. Every higher level language is based on some low level one which may not support everything
the good example here is c# and IL. The latter does not have everything built in that c# supports
Coffescript is just plain awful, IMO. Somehow they managed to take JS and make it worse. While that is an impressive achievement, it's not what I look for in a tool like that...
> November 12th, 2014. Version 1.3 of TypeScript is available and includes the protected keyword.
If that's Microsoft's idea of giving me a 30th birthday present... I'm not impressed. Where's my fucking cmd.exe with sane features like, oh, I don't know, being able to use a mouse in the same way as any other application made in the last 20 years??
I've noticed that July 26th (my birthday) is used really often in various PHP examples related to preventing http caching using Expires header, like:
http://stackoverflow.com/questions/12398714/cache-issue-with-private-networking-stream
http://stackoverflow.com/questions/2833305/how-to-expire-p...
@bwoebi Some feedback: i) you could do with an example of how to use the library :-P Even if it gets out of date rapidly, having some example in there would be good, as I have no idea what is meant to be in 'connStr' ii) utf8mb4 or gtfo iii) ConnectionConfig could really do with a named constructor - if I'm meant to be touching it iv) We probably have a philosophical difference on abbreviating variables.....but 'connStr', 'Stmt' => ewwww.