Jump to content

trq

Staff Alumni
  • Posts

    30,999
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by trq

  1. date("F j, Y", strtotime('+1 day'));
  2. Template engine create an extra layer that isn't necessary. This layer not only slows down execution but creates a new 'language' that users must learn in order to edit your templates. Mixing PHP and HTML isn't bad as long as your not mixing the bulk of your logic into it, and using small amounts of php within html means that users will only need to know a small subset of php to be able to edit your templates. I am a professional PHP developer and would never consider a template engine.
  3. Most template engines (including Smarty) are overkill IMO. You can easily create your own simple methods which will allow your business logic to be separated from your design. A little php amongst your HTML is harmless and is in fact quite a bit more efficient than any of the templating engines. See http://www.phpfreaks.com/forums/index.php?topic=320371.msg1510211#msg1510211 for a simple example.
  4. This topic has been moved to Other. http://www.phpfreaks.com/forums/index.php?topic=326598.0
  5. This topic has been moved to mod_rewrite. http://www.phpfreaks.com/forums/index.php?topic=326525.0
  6. Have you installed PHP as fast-cgi, cgi or an isapi module? Fast-cgi is the preferred method, though from my experience PHP is always slower on IIS compared to Apache.
  7. Indeed, you need a web server configured to execute PHP.
  8. The error states pretty clearly that you are sending output to the browser on line 1 of your login.php page. You cannot send output to the browser and then call the header() function. This has nothing to do with either Smarty of Zend.
  9. See http://www.phpfreaks.com/forums/index.php?topic=277416.0 See http://www.phpfreaks.com/forums/index.php?topic=325743.0
  10. You'll want to look at the mysqli manual. http://php.net/mysqli
  11. It does. What error are you getting when you execute this?
  12. This topic has been moved to Ajax Help. http://www.phpfreaks.com/forums/index.php?topic=326455.0
  13. This topic has been moved to PHP Coding Help. http://www.phpfreaks.com/forums/index.php?topic=326491.0
  14. db_connect() is not a native php function, where have you defined it?
  15. This topic has been moved to PHPFreaks.com Questions, Comments, & Suggestions. http://www.phpfreaks.com/forums/index.php?topic=326493.0
  16. Without decent hosting you might not be able to fetch this content, you could try curl. (http://php.net/curl). What kind of hosting do you have? Do you have access to change the url_fopen setting?
  17. You could try.... include 'http://www.aardvarkmap.net/maps/D3A46MB4'; It disappeared when the board was upgraded. Use tags for now.
  18. This topic has been moved to Third Party PHP Scripts. http://www.phpfreaks.com/forums/index.php?topic=326412.0
  19. This topic has been moved to Application Design. http://www.phpfreaks.com/forums/index.php?topic=326408.0
  20. This topic has been moved to Application Frameworks. http://www.phpfreaks.com/forums/index.php?topic=326397.0
  21. I'm afraid your going to need to be allot more specific.
  22. Can you explain why that is the case?
  23. Sorry, what is the problem?
  24. This topic has been moved to Ajax Help. http://www.phpfreaks.com/forums/index.php?topic=326310.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.