Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. The error tells you exactly where the problem is. What is the exact error? Even from your simple post I'm pretty sure I can see a blank line before your <?php tag.
  2. You might start here and try again. The code you so generously filled our screens with isn't even PHP, nor is it readable ince you though it a good idea to shrink the text size.
  3. You original thread was moved to misc from this forum because you obviously missed this: http://forums.phpfreaks.com/topic/150979-this-board-is-not-a-code-repository You obviously also missed reading the rules which you agreed to when you signed up as it is clearly noted that double posting is not permitted. As for why you haven't had any replies. This forum is frequented by programmers and those looking to learn how to program. Questions like "where can I find this..." are generally pretty off topic.
  4. How about you try and write it and come back when you have a specific issue? The example you posted really isn't that far off.
  5. So... have a look in the manual. I'm not going to lead you directly to the function, but if you don't find it on this page within 30 seconds there is something seriously wrong.
  6. You need to install and configure a mail server. I believe IIS comes with a very simple one, no idea how to install it though.
  7. It is possible through application logic. You need to dynamically add JOIN's and WHERE clauses to your database queries as different search criteria is chosen.
  8. Take a look at inotify and in particular incrond. See http://inotify.aiken.cz
  9. The sticky as at the top of this very board. It's pretty hard to miss.
  10. trq

    php editors

    See here: Which PHP Editor do you think is the best?.
  11. No, it definitely won't be simpler. The idea of storing concatenated data in a database designed to store data with relationships makes my hair stand on end.
  12. Classes are simple, it's just syntax. OOP on the other hand might take some time.
  13. I'm not at all impressed by Ubuntu on the Desktop or server so I don't think there phone version will impress me that much either.
  14. Did you read this? http://www.php.net/manual/en/reference.pcre.pattern.posix.php
  15. As the error suggests, the use of the ereg function is deprecated. See ereg.
  16. Firstly, this sounds more like a job for something like rsync, but anyway. Secondly, your logic is completely ass about. You will end up in an infinit loop if a file fails to copy. Thirdly, why are you using copy if you want to move the files? You need to look at rename.
  17. No, the first example makes a request to the url provided. This returns the output of the php script requested after it has already been processed. The second, actually includes the php script into your current script ready to be processed.
  18. Firstly, using the global keyword and the global variable $_GET in a function is terrible. Functions are meant to encapsulate code, doing so completely breaks that concept. Secondly, when asking for help on a help forum, it is best to post all relevant code. Can you post the actual functions in questions?
  19. Firstly, these comments are *annotations* not php docs. Secondly, a User should not be extending a Business or some *finder* utility. This design smells bad. Thirdly, we would need to know what editor your using and how this editor implements it's reading of annotations to be able to help. There is no *standard* in regards to these things.
  20. Not once you take into account all the maintenance. My workplace is 30-40 people and we switched to Google mail 18 months ago and haven't looked back. it's just way way way too easy, has a great web interface and plenty of other features for the price.
  21. Why are you creating php pages on the fly in the first place? It seems you have misinterpreted the definition of a dynamic website.
×
×
  • 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.