Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. trq

    Coding help

    Post your problematic code and a dcesription of the actual problem.
  2. Learning a good framework is defintaly a worthwhile investment as it pays off in the long run by making your code more consistent, as well as giving you a good base to build projects quickly upon. Zend frameowrk is open source and licensed to be used free of charge.
  3. Maybe you should have a nap. Your post makes absolutely no sense.
  4. Neither of these question are in the correct board. We have a board for help with editors, we also have a php help board. I suggest your in the correct locations.
  5. That is exactly what I mean. If you tell your program that it is going to receive a certain data type then give it something else what exactly would you expect to happen?
  6. This forums 'templates' are coded in php and stored on the filesystem like any other php file. Template systems are generally regarded as another layer that isn't needed. They just slow things down. Anyway, if you wanted to store 'templates' in a database, just go ahead and do so. They are in no way different to any other data. Mind telling us where exactly you are stuck?
  7. I'm not sure you read my post properly. The php scripts you use in Ajax must return valid data to Javascript and that is ALL. If you tell Javascript that is is to make a request and that it is going to get json back and you send it json + a bunch of random html its going to get confused. I suggest you organize your code accordingly.
  8. We once had an advanced forum. The problem was that most newcomers think every question is advanced, hence all posts ended up in there. Your particular question is no exception. There is nothing advanced about it.
  9. Why? The php scripts you use in Ajax must return valid data to Javascript and that is ALL.
  10. Putting your site all in one file is not going to make any difference to performance if that is your question.
  11. Your php can't echo anything but the json.
  12. Look at the html it produces then style it accordingly. This has nothing to do with Zend or PHP, its a html CSS issue.
  13. Yes. People like me. I hate smilies. Kids these days.
  14. This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=321126.0
  15. Email providers like Gmail, Hotmail Yahoo whatever all have API's that programmers can use to access data given sufficient permissions.
  16. There is a link to your own threads within your profile. http://www.phpfreaks.com/forums/profile/?area=showposts;u=108567
  17. If you where using classes I would recommend unit testing with php unit. A simpler 'debug' system that I used allot at work is FirePHP which plugs into Firefox's Firebug extension.
  18. Ive never been a fan of the Red Hat systems (this includes CentOS) and much prefer Debian based ones (this includes Ubuntu). It is however, just personal preference and what you are used to. I used Debian for servers because it is a solid OS that is considered very stable. However this also means that it can lag behind with software versions. For instance I think Lenny (current Debian stable) only has php5.1 officially. There are ways of course of getting to 5.3 (which I do) but these meens you need to stray from the official repos and risk some of your stability. You'll find allot of hosts using Red Hat based distro's too. Thjis is again, because they have always had a good foundation and are known for being stable systems. Ubuntu is a dekstop distro. Made in particular for ease of use. There is however a server version available, I've not used it, but I should imagine it wouldn't be that far off a minimal Debian system. Anyway, your best bet is to just choose one and stick with it a while. Especially if your new to Linux. It'll take a little while to get used to things. You can install the same software on any Linux so it doesn't really matter that much. Once you get used to a particular varietty, you might want to try another to see the differences. Theres also source based distro's like Gentoo around. These can teach you allot more about how GNU & Linux work together to make a complete OS. They can also cause you a few headaches if your not prepared to be patient or don't have allot of time. I use Gentoo (Funtoo) on my workstation machine. Hope this helps at least a little bit.
  19. This topic has been moved to Linux. http://www.phpfreaks.com/forums/index.php?topic=321112.0
  20. Your function doesn't return any data, it simply echos it. This means that $arr1 is empty.
  21. it could be $foo for all php cares. It's just variable name. There is no obvious reason why that code shouldn't work. The $recipient string is valid.
  22. A registry object perhaps? I've never been a fan of using a class for simple storage (though that is pretty much what a registry is too).
  23. This topic has been moved to Installation in Windows. http://www.phpfreaks.com/forums/index.php?topic=321054.0
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.